search
Find YouTube API methods, schemas, metrics, and quota costs by running JavaScript; no network, auth, or quota needed.
Instructions
Explore the YouTube API specs by running a JavaScript async function body. No network, no auth, no quota.
A global spec holds:
spec.youtube: Data API v3 Discovery doc. Methods live at spec.youtube.resources..methods., with httpMethod, parameters (description, required, repeated, enum), and request/response $ref schemas in spec.youtube.schemas.
spec.analytics: YouTube Analytics v2 Discovery doc (reports.query, groups, groupItems).
spec.analyticsFields: { metrics, dimensions } with descriptions, since the Analytics Discovery doc does not list them.
spec.reporting: YouTube Reporting v1 Discovery doc.
spec.quotaCosts: { "youtube.videos.list": { bucket, cost }, ... }.
Return only what you need. Examples: return Object.entries(spec.youtube.resources.videos.methods).map(([k, m]) => ({ k, params: Object.keys(m.parameters ?? {}) })) return spec.youtube.schemas.VideoSnippet.properties return Object.keys(spec.analyticsFields.metrics).filter((m) => /revenue/i.test(m))
Method ids found here map 1:1 to execute(): spec.youtube.resources.videos.methods.list is yt.data.videos.list(params).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Async function body. Use return. |