Skip to content

youtube-data-api

Use when working with YouTube Data API v3 - video management, channel data, playlists, comments, search, or upload operations. Also use when querying YouTube analytics or managing live streams.

ModelSource
sonnetpack: google-apis
Full Reference

┏━ πŸ”§ youtube-data-api ━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with YouTube Data API v3 - vi… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

YouTube Data API v3 for CRUD operations on videos, channels, playlists, comments, and captions. Separate YouTube Analytics API for metrics. Quota-based (10,000 units/day default).


ItemValue
Base URLhttps://www.googleapis.com/youtube/v3
AuthOAuth 2.0 (write/private) or API Key (read public)
Pythonpip install google-api-python-client google-auth-oauthlib
Node.jsnpm install googleapis google-auth-library
Daily Quota10,000 units (default)
Quota ResetMidnight Pacific Time
API Versionv3 (current as of February 2026)

FileWhat’s inside
reference/auth.mdProject setup, API Key vs OAuth 2.0, scopes, flow types, Python + Node.js client init
reference/quota.mdFull quota cost table, optimization tips, all resource endpoints, error codes
reference/search.mdsearch.list parameters, video filters, topic IDs, Python + Node.js search examples
reference/videos.mdvideos.list/insert/update/rate/delete, part values, JSON schema, Python + Node.js examples
reference/channels.mdchannels.list, part values, filter params, get stats + handle lookup examples
reference/playlists.mdplaylists.list/insert, playlistItems.list/insert, pagination, create + add video examples
reference/comments.mdcommentThreads, comments, subscriptions β€” list, insert, reply examples
reference/pagination.mdToken-based pagination, generic paginators, fields partial responses
reference/analytics.mdYouTube Analytics API, metrics, dimensions, reports.query, Reporting API
reference/changelog.mdBreaking changes, deprecations, recent API updates

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.