{"id":30811669,"url":"https://github.com/valian/youtube-captions","last_synced_at":"2026-02-23T21:08:01.825Z","repository":{"id":212088286,"uuid":"730706844","full_name":"Valian/youtube-captions","owner":"Valian","description":"An Elixir library for fetching youtube captions without an API key","archived":false,"fork":false,"pushed_at":"2023-12-12T16:07:37.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T22:48:44.087Z","etag":null,"topics":["elixir","elixir-library","youtube-captions-scraper"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/youtube_captions/readme.html","language":"Elixir","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/Valian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-12T13:56:30.000Z","updated_at":"2024-08-10T12:19:09.000Z","dependencies_parsed_at":"2023-12-12T18:29:37.952Z","dependency_job_id":"75c5d4ff-5fb1-4bf0-8628-ab1c6e586d7d","html_url":"https://github.com/Valian/youtube-captions","commit_stats":null,"previous_names":["valian/youtube_captions","valian/youtube-captions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Valian/youtube-captions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valian%2Fyoutube-captions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valian%2Fyoutube-captions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valian%2Fyoutube-captions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valian%2Fyoutube-captions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valian","download_url":"https://codeload.github.com/Valian/youtube-captions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valian%2Fyoutube-captions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27672261,"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","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elixir","elixir-library","youtube-captions-scraper"],"created_at":"2025-09-06T06:47:49.247Z","updated_at":"2025-12-11T23:41:24.858Z","avatar_url":"https://github.com/Valian.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YoutubeCaptions\n[![Module Version](https://img.shields.io/hexpm/v/youtube_captions.svg)](https://hex.pm/packages/youtube_captions)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/youtube_captions/)\n[![Total Download](https://img.shields.io/hexpm/dt/youtube_captions.svg)](https://hex.pm/packages/youtube_captions)\n[![License](https://img.shields.io/hexpm/l/youtube_captions.svg)](https://github.com/Valian/youtube-captions/blob/main/LICENSE.md)\n\nAn elixir library for fetching Youtube Captions without API key. Uses [Req](https://github.com/wojtekmach/req) under the hood.\n\n## Installation\n\nThe package can be installed by adding `youtube_captions` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:youtube_captions, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nAnd run `mix deps.get`.\n\n## Usage\n\nFirst find video identifier. You can find it in the YouTube URL `?v=VIDEO_ID`.\n\nThen you can download captions by calling `YoutubeCaptions.get_subtitles(video_id, language)`. Language is optional and defaults to `en`. \n\nIf successfull, you'll get list of subtitles in format `%{start: float(), duration: float(), text: String.t()}`\n\n### Examples\n\n```elixir\nYoutubeCaptions.get_subtitles(\"JvBT4XBdoUE\", \"en\")\n\n#=\u003e {:ok,\n#=\u003e   [\n#=\u003e     %{start: 0.99, text: \"[Music]\", duration: 6.87},\n#=\u003e     %{start: 14.42, text: \"thank you so hello everyone and thank\", duration: 3.66},\n#=\u003e     ...\n#=\u003e   ]}\n\n# You can customize Req options by passing third parameter\nYoutubeCaptions.get_subtitles(\"JvBT4XBdoUE\", \"en\", receive_timeout: 10_000)\n\n```\n\n## Credits\n\nHeavily inspired by [youtube-captions-scraper](https://github.com/algolia/youtube-captions-scraper).\n\n## License\n\n    Copyright © 2023-present Jakub Skałecki\n\n    This work is free. You can redistribute it and/or modify it under the\n    terms of the MIT License. See the LICENSE.md file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalian%2Fyoutube-captions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalian%2Fyoutube-captions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalian%2Fyoutube-captions/lists"}