{"id":20298940,"url":"https://github.com/dofy/youtube-caption-fox","last_synced_at":"2026-01-30T05:05:23.608Z","repository":{"id":253151081,"uuid":"842625500","full_name":"dofy/youtube-caption-fox","owner":"dofy","description":"A simple Node.js library for fetching YouTube video captions with ease.","archived":false,"fork":false,"pushed_at":"2024-08-29T10:00:15.000Z","size":931,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T03:51:52.075Z","etag":null,"topics":["captions","subtitles","typescript","video","youtube"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@dofy/youtube-caption-fox","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dofy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T18:21:36.000Z","updated_at":"2024-08-29T10:00:18.000Z","dependencies_parsed_at":"2024-08-14T20:02:57.961Z","dependency_job_id":"8653b0ea-ac51-4332-a559-4d355764e813","html_url":"https://github.com/dofy/youtube-caption-fox","commit_stats":null,"previous_names":["dofy/youtube-caption-fox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2Fyoutube-caption-fox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2Fyoutube-caption-fox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2Fyoutube-caption-fox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2Fyoutube-caption-fox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dofy","download_url":"https://codeload.github.com/dofy/youtube-caption-fox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224650411,"owners_count":17346962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["captions","subtitles","typescript","video","youtube"],"created_at":"2024-11-14T16:12:52.576Z","updated_at":"2026-01-30T05:05:18.571Z","avatar_url":"https://github.com/dofy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dofy/youtube-caption-fox\n\n`@dofy/youtube-caption-fox` is a simple Node.js library for fetching YouTube video captions with ease. Whether you need to extract subtitles for processing, analysis, or translation, this package provides a straightforward API to retrieve captions in different languages.\n\n## Features\n\n- Fetch captions from YouTube videos by video ID\n- Support for multiple languages\n- Simple and easy-to-use API\n- Handles proxy configuration for restricted environments\n\n## Installation\n\nYou can install the package using npm:\n\n```bash\nnpm install @dofy/youtube-caption-fox\n```\n\n## Usage\n\n### Basic Usage\n\nHere's an example of how to use `@dofy/youtube-caption-fox` to fetch captions for a YouTube video:\n\n```javascript\nimport { getCaptions } from '@dofy/youtube-caption-fox'\n\nconst videoId = 'your-video-id'\n\ngetCaptions(videoId)\n  .then(({ captions }) =\u003e {\n    console.log('Captions:', captions)\n  })\n  .catch((error) =\u003e {\n    console.error('Error fetching captions:', error)\n  })\n```\n\n### Proxy Support\n\nIf you are behind a proxy, you can configure the library to use it:\n\n```javascript\nimport { getCaptions } from '@dofy/youtube-caption-fox'\n\nconst videoId = 'your-video-id'\n\nconst options = {\n  proxy: {\n    host: 'proxy-server-address',\n    port: 8080,\n    protocol: 'http',\n    auth: {\n      username: 'your-username',\n      password: 'your-password',\n    },\n  },\n}\n\ngetCaptions(videoId, options)\n  .then(({ captions }) =\u003e {\n    console.log('Captions:', captions)\n  })\n  .catch((error) =\u003e {\n    console.error('Error fetching captions:', error)\n  })\n```\n\n## API\n\n### `getCaptions(videoId, [options])`\n\n- **videoId** (String) - The ID of the YouTube video for which to fetch captions.\n- **options** (Object) - Optional. Configuration options, such as proxy settings.\n\nReturns a promise that resolves with the captions data or rejects with an error.\n\n## Example\n\n```javascript\nimport { getCaptions } from '@dofy/youtube-caption-fox'\n\nconst videoId = 'your-video-id'\n\ngetCaptions(videoId)\n  .then(({ captions }) =\u003e {\n    console.log(captions) // Captions data in JSON format\n  })\n  .catch((error) =\u003e {\n    console.error(error)\n  })\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please submit a pull request or open an issue to discuss potential changes.\n\n## Issues\n\nIf you encounter any issues or have feature requests, please feel free to [open an issue](https://github.com/dofy/youtube-caption-fox/issues) on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdofy%2Fyoutube-caption-fox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdofy%2Fyoutube-caption-fox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdofy%2Fyoutube-caption-fox/lists"}