Versions in this module Expand all Collapse all v0 v0.1.0 Dec 2, 2026 Changes in this version + const DefaultBaseURL + const DefaultMaxRetries + const DefaultTimeout + const Version + func Bool(v bool) *bool + func Int(v int) *int + type AccountService struct + func (s *AccountService) Usage(ctx context.Context) (*Usage, error) + type Batch struct + Counts BatchCounts + CreatedAt string + ID string + Lang string + Name string + SourceType string + Status string + TotalCredits int + UpdatedAt string + type BatchCounts struct + Failed int + Pending int + Success int + Total int + type BatchCreateOptions struct + Channel string + Items []string + Language string + Limit int + Name string + Playlist string + type BatchDetail struct + Batch Batch + Items []BatchItem + NextPageToken string + type BatchExportOptions struct + Files string + Format string + Timestamps *bool + type BatchGetOptions struct + MaxResults int + PageToken string + type BatchItem struct + Channel string + DurationSec int + Error string + ExternalID string + ID string + Lang string + Platform string + SourceURL string + Status string + Title string + Words int + type BatchLimits struct + ItemsPerJob int + type BatchRetryResult struct + Batch Batch + Credits int + Retried int + type BatchWaitOptions struct + PollInterval time.Duration + Timeout time.Duration + type BatchesService struct + func (s *BatchesService) Create(ctx context.Context, opts *BatchCreateOptions) (*Batch, error) + func (s *BatchesService) Delete(ctx context.Context, batchID string) (*Removed, error) + func (s *BatchesService) Export(ctx context.Context, batchID string, opts *BatchExportOptions) ([]byte, error) + func (s *BatchesService) Get(ctx context.Context, batchID string, opts *BatchGetOptions) (*BatchDetail, error) + func (s *BatchesService) Retry(ctx context.Context, batchID string) (*BatchRetryResult, error) + func (s *BatchesService) Wait(ctx context.Context, batchID string, opts *BatchWaitOptions) (*BatchDetail, error) + type CaptionTrack struct + AutoGenerated bool + Lang string + type Chapter struct + Start float64 + Title string + type Client struct + Account *AccountService + Batches *BatchesService + Transcripts *TranscriptsService + func NewClient(opts ...Option) (*Client, error) + type Credits struct + Available int + Balance int + FreeToday FreeCredits + HasPurchased bool + type DeleteOptions struct + Language string + type DownloadOptions struct + Format string + Language string + type Error struct + Code string + Details map[string]any + JobID string + Message string + RequestID string + RetryAfter time.Duration + Retryable bool + Status int + func (e *Error) Error() string + func (e *Error) Unwrap() error + type FreeCredits struct + Limit int + Remaining int + ResetsAt string + Used int + type GetOptions struct + ConfirmCredits *bool + Format string + IncludeTimestamp *bool + Language string + PollInterval time.Duration + SendMetadata *bool + Timeout time.Duration + type JobError struct + Code string + Message string + type LibraryItem struct + Channel string + CreatedAt string + DurationSec int + ExternalID string + ID string + Lang string + Origin string + Platform string + SourceURL string + Starred bool + ThumbnailURL string + Title string + Words int + type Limits struct + ActiveTasks int + TaskConcurrency int + type ListOptions struct + Lang string + Page int + PageSize int + Q string + Sort string + type Option func(*config) + func WithAPIKey(key string) Option + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithMaxRetries(n int) Option + func WithTimeout(d time.Duration) Option + type Removed struct + Removed bool + type Segment struct + Duration float64 + Start float64 + Text string + type SubmitOptions struct + ConfirmCredits *bool + Format string + IncludeTimestamp *bool + Language string + SendMetadata *bool + WaitMs *int + type Transcript struct + Channel string + CreatedAt string + DurationSec int + ExternalID string + ID string + Lang string + Origin string + Platform string + PublishedAt string + Segments []Segment + SourceURL string + ThumbnailURL string + Title string + type TranscriptList struct + Langs []string + Page int + PageSize int + Total int + Transcripts []LibraryItem + type TranscriptResult struct + Cached bool + Error *JobError + Format string + JobID string + Language string + LengthSeconds int + LengthText string + Metadata *VideoMetadata + MetadataStatus string + Raw json.RawMessage + Stage string + Status string + Text string + Transcript *Transcript + func (r *TranscriptResult) Done() bool + type TranscriptsService struct + func (s *TranscriptsService) Delete(ctx context.Context, videoID string, opts *DeleteOptions) (*Removed, error) + func (s *TranscriptsService) Download(ctx context.Context, videoID string, opts *DownloadOptions) (string, error) + func (s *TranscriptsService) Get(ctx context.Context, video string, opts *GetOptions) (*TranscriptResult, error) + func (s *TranscriptsService) Info(ctx context.Context, video string) (*VideoInfo, error) + func (s *TranscriptsService) Job(ctx context.Context, jobID string) (*TranscriptResult, error) + func (s *TranscriptsService) List(ctx context.Context, opts *ListOptions) (*TranscriptList, error) + func (s *TranscriptsService) Submit(ctx context.Context, video string, opts *SubmitOptions) (*TranscriptResult, error) + type Usage struct + Batch BatchLimits + Credits Credits + Limits Limits + Raw json.RawMessage + type VideoInfo struct + AvailableLanguages []string + CaptionTracks []CaptionTrack + Channel string + ChannelID string + Chapters []Chapter + Description string + ExternalID string + LengthSeconds int + LengthText string + Platform string + PublishedAt string + SourceURL string + ThumbnailURL string + Title string + type VideoMetadata struct + Channel string + ExternalID string + Language string + LengthSeconds int + Platform string + PublishedAt string + SourceURL string + ThumbnailURL string + Title string