YouTube API — FetchLayer Docs

YouTube API v1

Independent YouTube API with 5 REST endpoints. Extract comments, replies, and transcripts from any YouTube video. All requests go to https://api.fetchlayer.dev/youtube/{endpoint} with a JSON body and Bearer auth header.

OpenAPI JSON

YouTube API at a glance

This is the reference: every endpoint, its parameters and the fields it returns. The essentials first.

Returns
Video comments, as typed JSON.
Endpoints
5 endpoints, grouped as Comments, Transcript and Videos and channels. See them all
Request
POST https://api.fetchlayer.dev/youtube/<endpoint> with a JSON body.
Auth
Your FetchLayer API key as a Bearer token. One key works for every platform we support. Authentication
Cost
1 credit per page of results a call returns; the exact figure is on every response. Credits are $1.99 per 1,000 pay-as-you-go, plans start at $25 a month, and new accounts get 30 free requests.
MCP
Also on our MCP server for AI agents, with the same key and the same billing. Connect an agent

What teams use it for, with worked examples: YouTube API

Available endpoints by category

Quick reference

Product overview YouTube API: what it returns, pricing and use cases