# YouTube Data API v3 — card for AI agents

Search YouTube videos, channels and playlists and read metadata, comments and stats.

Maker: Google · category: Web search APIs

## Price (official page)
- Free tier: Default quota: 10,000 units per day, plus 100 search.list calls and 100 videos.insert calls per day
- Free tier terms: free allowance · daily (read from the wording above and the pricing page; empty = not stated)
- Usage price: search.list: 1 quota per call (100/day); videos.list: 1 unit
- Pricing page: https://developers.google.com/youtube/v3/determine_quota_cost (checked 2026-10-09)
- Note: Quota-based, no paid tier listed; more quota requires a Quota extension request form.

## Connect
- npm: `npm install googleapis`
- PyPI: `pip install google-api-python-client`
- Repository: https://github.com/googleapis/google-api-python-client

## For AI agents on Google's own site (AgentGid check 2026-11-13: 2 of 6)
- llms.txt: none found
- OpenAPI description: none found at the usual places
- Official MCP server: no · official SDK: yes · status page: no
- robots.txt lets AI assistants (ChatGPT-User, Claude-User) read the site: yes

## Price history in AgentGid's catalog (since 2026-10-10)
- Changes recorded: 0 (a vendor price change or an editor's correction; the evidence archive keeps the pricing page of each date)

## Other APIs in this category
- Serply: https://agentgid.com/apis/serply/agent.md
- SERP House: https://agentgid.com/apis/serp-house/agent.md
- Parallel: https://agentgid.com/apis/parallel/agent.md
- Serper: https://agentgid.com/apis/serper/agent.md
- Value SERP: https://agentgid.com/apis/valueserp/agent.md

## Links
- AgentGid page: https://agentgid.com/apis/youtube-data-api/


## YouTube Data API: search and read YouTube from your app

The YouTube Data API is Google's official way for your app to work with YouTube. It can search videos, read titles, view counts and comments, and, with the channel owner's permission, upload videos or change playlists. There is no price list; instead each project gets a free daily allowance of requests.

### Where to use it
- Video search on your site: Let visitors search YouTube from your page, for example cooking videos for a recipe, and show the results as a list.
- Show view and like counts: Display up-to-date views, likes and duration next to the videos you feature, such as your own course videos.
- Read comments under a video: Collect the comments on your videos to answer questions, spot common requests or flag spam.
- Upload videos from your app: Publish videos and set thumbnails on a channel from your own tool, after the channel owner signs in and allows it.
- A channel's videos on your website: List the latest videos of your channel or a playlist on your homepage, updated automatically. (idea, not from the official pages)
- Weekly stats for your channel: Send yourself a short weekly summary of views and comments on your newest videos. (idea, not from the official pages)

### How to start
- Create a project in the Google Cloud console and enable the YouTube Data API v3.
- Create an API key for public data and restrict it before production; reading private data or uploading needs an OAuth client instead.
- Install the Google client library for your language and make a first read request.

```
pip install --upgrade google-api-python-client
```


### License
The service is free to use within its daily allowance, under YouTube's terms and developer policies. You may sell an app that uses it, but you may not download YouTube videos or resell the service.

### Good to know
- Search is the scarce part; by default only 100 searches a day, so look up known videos by ID instead when you can.
- Every request counts against the allowance, even one that fails.
- Data you save from YouTube must be refreshed or deleted after 30 days.
- Your app needs a privacy policy that mentions YouTube and links to Google's privacy policy.
- More allowance is free but needs an application and a compliance review.

Checked 2026-11-10 against: https://developers.google.com/youtube/v3, https://developers.google.com/youtube/v3/getting-started, https://developers.google.com/youtube/v3/determine_quota_cost, https://developers.google.com/youtube/v3/docs/search/list, https://developers.google.com/youtube/v3/docs/videos/list, https://developers.google.com/youtube/v3/docs/commentThreads/list, https://developers.google.com/youtube/v3/docs/errors, https://developers.google.com/youtube/registering_an_application, https://developers.google.com/youtube/v3/quickstart/python, https://developers.google.com/youtube/v3/libraries, https://developers.google.com/youtube/terms/api-services-terms-of-service, https://developers.google.com/youtube/terms/developer-policies, https://pypi.org/pypi/google-api-python-client/json, https://registry.npmjs.org/googleapis/latest

### Mistakes to avoid
- Don't: Calling search.list for every page view or to look up videos you already know. → Do: Cache search results and use videos.list or playlistItems.list with known IDs (1 unit each, from the large daily pool). (Search has its own small pool of 100 calls a day, and every extra results page costs another call.)
- Don't: Keeping view or subscriber counts in your database for months. → Do: Refresh or delete stored YouTube data within 30 days. (The developer policies forbid keeping such statistics longer than 30 days without the owner's authorization.)
- Don't: Trying to upload or edit with only an API key. → Do: Use an OAuth 2.0 client and let the channel owner sign in and grant access. (Insert, update and delete always need the user's authorization.)
- Don't: Downloading videos or audio to process or replay them. → Do: Embed the YouTube player and work only with the metadata the API returns. (The policies forbid downloading or storing copies of YouTube content without written approval.)
- Don't: Shipping an unrestricted API key in a public web page. → Do: Call the API from your server, or at least restrict the key to your site and to the YouTube Data API. (Anyone who copies the key can use up your project's daily quota.)

### Questions
- Does it cost money? The docs list no prices; each project gets a daily allowance, and more can be requested through a form and review.
- Do I need users to sign in with Google? Not for public data such as search results and video details; an API key is enough. Uploads, edits and private data need the user's sign-in.
- Can I save videos for offline viewing? No. The policies forbid downloading or storing copies of YouTube videos and offering offline playback without YouTube's written approval.
- When does the daily allowance reset? At midnight Pacific Time.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
