{"id":22343095,"url":"https://github.com/brandonbothell/popyt","last_synced_at":"2026-04-28T06:01:07.462Z","repository":{"id":40294557,"uuid":"143616917","full_name":"brandonbothell/popyt","owner":"brandonbothell","description":"A very easy to use Youtube Data v3 API library.","archived":false,"fork":false,"pushed_at":"2026-04-25T09:23:30.000Z","size":392350,"stargazers_count":45,"open_issues_count":8,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-25T09:25:06.342Z","etag":null,"topics":["api-wrapper","promise","simple-api","typescript","video","wrapper","youtube","youtube-api","youtube-data","youtube-data-api"],"latest_commit_sha":null,"homepage":"https://popyt.brandonsbench.net/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonbothell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["brandonbothell"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2018-08-05T13:52:32.000Z","updated_at":"2026-04-25T09:21:35.000Z","dependencies_parsed_at":"2025-05-04T03:23:50.796Z","dependency_job_id":"04897627-8c94-41b4-b161-1a3f86d1a4b5","html_url":"https://github.com/brandonbothell/popyt","commit_stats":{"total_commits":983,"total_committers":10,"mean_commits":98.3,"dds":0.6032553407934893,"last_synced_commit":"672c7554b15a834df858d0567ba9793942ab6085"},"previous_names":["jasonhaxstuff/popyt","jasonhaxstuff/better-youtube-api"],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/brandonbothell/popyt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbothell%2Fpopyt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbothell%2Fpopyt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbothell%2Fpopyt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbothell%2Fpopyt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonbothell","download_url":"https://codeload.github.com/brandonbothell/popyt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbothell%2Fpopyt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32368534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","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":["api-wrapper","promise","simple-api","typescript","video","wrapper","youtube","youtube-api","youtube-data","youtube-data-api"],"created_at":"2024-12-04T08:14:46.561Z","updated_at":"2026-04-28T06:01:07.395Z","avatar_url":"https://github.com/brandonbothell.png","language":"TypeScript","funding_links":["https://github.com/sponsors/brandonbothell"],"categories":[],"sub_categories":[],"readme":"# Popyt\nWant to access data from the YouTube Data v3 API? Want a Node.js YouTube API wrapper with typings, promises, and caching? No problem! We've got ya covered. `npm i popyt`\n\n[![40+ stars on GitHub](https://img.shields.io/github/stars/brandonbothell/popyt)](https://github.com/brandonbothell/popyt/stargazers)\n[![0 dependencies](https://badgen.brandonsbench.net/static/dependencies/0/blue)](https://bundlephobia.com/package/popyt)\n[![Permissive license](https://badgen.brandonsbench.net/npm/license/popyt?icon=unlicense\u0026label=)](https://github.com/brandonbothell/popyt/blob/master/LICENSE)\n[![Open an issue on GitHub](https://badgen.brandonsbench.net/github/open-issues/brandonbothell/popyt?icon=github)](https://github.com/brandonbothell/popyt/issues)\n[![Automated testing](https://github.com/brandonbothell/popyt/workflows/Development/badge.svg)](https://github.com/brandonbothell/popyt/actions)\n[![90%+ test coverage](https://badgen.brandonsbench.net/codecov/github/brandonbothell/popyt/release?icon=codecov\u0026v=1)](https://app.codecov.io/gh/brandonbothell/popyt/tree/release)\n[![DeepScan grade: good](https://badgen.brandonsbench.net/deepscan/grade/team/21522/project/24946/branch/772144?icon=deepscan)](https://deepscan.io/dashboard#view=project\u0026tid=21522\u0026pid=24946\u0026bid=772144)\n[![Trending on NPM](https://badgen.brandonsbench.net/npm/dw/popyt?icon=npm)](https://www.npmjs.com/package/popyt)\n[![Available on NPM](https://badgen.brandonsbench.net/npm/v/popyt?icon=npm\u0026label=)](https://www.npmjs.com/package/popyt)\n[![Less than 500 kilobytes (100kB minified)](https://badgen.brandonsbench.net/packagephobia/install/popyt?label=size)](https://bundlephobia.com/package/popyt)\n[![200+ packages use Popyt to access the YouTube API](https://badgen.brandonsbench.net/github/dependents-repo/brandonbothell/popyt?label=projects%20using%20popyt)](https://github.com/brandonbothell/popyt/network/dependents)\n[![5000 lines of code and counting](https://badgen.brandonsbench.net/deepscan/lines/team/21522/project/24946/branch/772144?label=lines%20of%20code)](https://ghloc.vercel.app/brandonbothell/popyt?branch=master\u0026locsPath=%5B%22src%22%5D)\n[![Written in TypeScript](https://badgen.brandonsbench.net/npm/types/popyt?icon=typescript)](https://popyt.brandonsbench.net/docs/api/Library-Exports/classes/YouTube)\n\n## Ask the AI assistant on the [documentation site](https://popyt.brandonsbench.net/docs/api), try out the [5-minute tutorial](https://popyt.brandonsbench.net/docs/tutorial/intro), or clone the [example project](https://github.com/brandonbothell/popyt-example).\n### What you'll need\n\n- A [YouTube Data v3](https://developers.google.com/youtube/v3/getting-started) API key:\n  - Complete steps 1-4 on the page linked above and copy your API key.\n\n### Here are some basic methods ([try it on CodeSandbox](https://codesandbox.io/p/sandbox/fetch-videos-from-youtube-jmqlfq)):\n\nInstantiate the object:\n\n```js\nconst { YouTube } = require('popyt')\nconst youtube = new YouTube(apiKey)\n```\n\nInstantiate the object without caching:\n\n```js\nconst { YouTube } = require('popyt')\nconst youtube = new YouTube(apiKey, undefined, { cache: false })\n```\n\nGet a video by ID:\n\n```js\nconst video = await youtube.getVideo('dQw4w9WgXcQ')\nconsole.log(video)\n```\n\nYou can do the same thing with playlists, channels, and comments by replacing `Video` with any of them.  \n\nGet a video by URL:\n\n```js\nconst video = await youtube.getVideo('https://youtube.com/watch?v=dQw4w9WgXcQ')\nconsole.log(video)\n```\n\nGet a video by title (or similar title):\n\n```js\nconst video = await youtube.getVideo('never gonna give you up')\nconsole.log(video)\n```\n\nSearch videos:\n\n```js\nconst search = await youtube.searchVideos('never gonna give you up')\nconsole.log(search.items.map(v =\u003e v.title).join('\\n')) // titles of 50 beautiful videos\n```\n\nNote: This wrapper does not implement every feature of the YouTube API. If you would like anything added, feel free to open a PR or an issue. The limits imposed by the wrapper are not imposed by YouTube.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbothell%2Fpopyt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonbothell%2Fpopyt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbothell%2Fpopyt/lists"}