{"id":22484872,"url":"https://github.com/algolia/youtube-captions-scraper","last_synced_at":"2025-06-19T15:42:10.540Z","repository":{"id":39001050,"uuid":"111663828","full_name":"algolia/youtube-captions-scraper","owner":"algolia","description":"Fetch youtube user submitted or fallback to auto-generated captions","archived":false,"fork":false,"pushed_at":"2024-02-28T08:20:51.000Z","size":162,"stargazers_count":296,"open_issues_count":13,"forks_count":70,"subscribers_count":65,"default_branch":"master","last_synced_at":"2025-06-02T22:40:03.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/algolia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2017-11-22T09:32:33.000Z","updated_at":"2025-05-29T14:44:10.000Z","dependencies_parsed_at":"2024-01-29T15:29:35.456Z","dependency_job_id":"c47d65dc-5212-44d9-a5cd-0a04cef27cc6","html_url":"https://github.com/algolia/youtube-captions-scraper","commit_stats":{"total_commits":18,"total_committers":6,"mean_commits":3.0,"dds":0.6666666666666667,"last_synced_commit":"9dd01b53616dd14f89d7fe19e7cd247e4023cdcd"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/algolia/youtube-captions-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Fyoutube-captions-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Fyoutube-captions-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Fyoutube-captions-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Fyoutube-captions-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/algolia","download_url":"https://codeload.github.com/algolia/youtube-captions-scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Fyoutube-captions-scraper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260781387,"owners_count":23062231,"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":[],"created_at":"2024-12-06T17:11:40.816Z","updated_at":"2025-06-19T15:42:05.527Z","avatar_url":"https://github.com/algolia.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Youtube Captions scraper\n\n\u003e Fetch youtube user submitted or fallback to auto-generated captions\n\n## Installation\n\n* `\u003e npm install -S youtube-captions-scraper` OR\n* `\u003e yarn add youtube-captions-scraper`\n\n## Usage\n\n```js\n// ES6 / TypeScript\nimport { getSubtitles } from 'youtube-captions-scraper';\n\ngetSubtitles({\n  videoID: 'XXXXX', // youtube video id\n  lang: 'fr' // default: `en`\n}).then(captions =\u003e {\n  console.log(captions);\n});\n\n// ES5\nvar getSubtitles = require('youtube-captions-scraper').getSubtitles;\n\ngetSubtitles({\n  videoID: 'XXXXX', // youtube video id\n  lang: 'fr' // default: `en`\n}).then(function(captions) {\n  console.log(captions);\n});\n```\n\nCaptions will be an array of object of this format:\n\n```js\n{\n  \"start\": Number,\n  \"dur\": Number,\n  \"text\": String\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Fyoutube-captions-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falgolia%2Fyoutube-captions-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Fyoutube-captions-scraper/lists"}