YouTube
What YouTube data is for.
Use YouTube when you need transcripts and captions, public profiles and creator metadata, comments and reviews, posts, videos and catalog records without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
10
Paid only
7
Price floor
1 cr
Use cases
YouTube transcript
Call /v1/youtube/transcript when you need a normalized youtube transcript response with the same credit and cache rules as the rest of the catalog.
YouTube channel feed
Call /v1/youtube/channels/feed when you need a normalized youtube channel feed response with the same credit and cache rules as the rest of the catalog.
YouTube channel
Call /v1/youtube/channel when you need a normalized youtube channel response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
13 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 10
readyYouTube transcript
/v1/youtube/transcript| Name | Type | Required | Description |
|---|---|---|---|
| url | string | no | YouTube watch, Shorts or youtu.be URL. |
| v | string | no | Video ID when url is omitted. |
curl -s "https://api.cleanfetch.dev/v1/youtube/transcript?v=dQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"videoId": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"language": "English",
"languageCode": "en",
"isGenerated": true,
"durationSeconds": 212,
"snippets": 84,
"text": "First caption line. Second caption line.",
"timestamped": "[00:00] First caption line."
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformvideoIdurllanguagelanguageCodeisGenerateddurationSecondssnippetstexttimestampedInput notes
- • Provide url or v; a missing video identifier returns 400.
- • Videos with captions disabled return not_found and are billed once.
- • Paid-only; one request costs 15 credits.
YouTube channel feed
/v1/youtube/channels/feed| Name | Type | Required | Description |
|---|---|---|---|
| channelId | string | yes | YouTube channel id, starting with UC. |
curl -s "https://api.cleanfetch.dev/v1/youtube/channels/feed?channelId=example" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 0.16666666666666666h.
- • A public record that does not exist returns not_found and is charged once.
YouTube channel
/v1/youtube/channel| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/youtube/channel?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"id": "123456",
"username": "nasa",
"name": "NASA",
"url": "https://example.com/nasa",
"followers": 12500000,
"description": "Public profile record normalized by CleanFetch."
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 35,
"cached": false
}
}Returns
platformidusernamenameurlfollowersdescriptionInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
YouTube comments
/v1/youtube/comments| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/youtube/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 25,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
YouTube video metadata
/v1/youtube/oembed| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
curl -s "https://api.cleanfetch.dev/v1/youtube/oembed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 1d.
- • A public record that does not exist returns not_found and is charged once.
List YouTube channel videos
/v1/youtube/channels/videos| Name | Type | Required | Description |
|---|---|---|---|
| channelId | string | no | YouTube channel id, starting with UC. |
| handle | string | no | Public handle or username. |
| sortBy | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| includeExtras | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/youtube/channels/videos" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Search YouTube
/v1/youtube/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| uploadDate | string | no | Lookup parameter. |
| sortBy | string | no | Lookup parameter. |
| type | string | no | Lookup parameter. |
| duration | string | no | Lookup parameter. |
| region | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| includeExtras | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/youtube/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 29,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get YouTube search suggestions
/v1/youtube/search/suggestions| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
curl -s "https://api.cleanfetch.dev/v1/youtube/search/suggestions?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 10,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 1 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get YouTube video
/v1/youtube/videos| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| language | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/youtube/videos?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List YouTube video comments
/v1/youtube/videos/comments| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| cursor | string | no | Lookup parameter. |
| order | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/youtube/videos/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "youtube",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 13
503 · 0 creditsList YouTube channel community posts
/v1/youtube/channels/community-posts
List YouTube channel live streams
/v1/youtube/channels/live-streams
List YouTube channel playlists
/v1/youtube/channels/playlists
Search inside a YouTube channel
/v1/youtube/channels/search
List YouTube channel shorts
/v1/youtube/channels/shorts
Get YouTube community post
/v1/youtube/community-posts
Get YouTube playlist
/v1/youtube/playlists
List trending YouTube Shorts
/v1/youtube/shorts/trending
Analyze YouTube video comments
/v1/youtube/videos/comments/analysis
List YouTube comment replies
/v1/youtube/videos/comments/replies
Get YouTube video sponsors
/v1/youtube/videos/sponsors
Get YouTube video transcript
/v1/youtube/videos/transcript
Common YouTube API questions
How many YouTube operations are live?
10 of 23 cataloged operations are live. 13 mapped operations return 503 upstream_not_configured and cost 0 credits.
What does a YouTube call cost?
Live operations range from 1 to 35 credits. 3 are available on the free daily cap and 7 are paid-only. Cache hits cost 0 credits.
Are YouTube responses cached?
Successful responses are cached between 0.16666666666666666h and 1d. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate YouTube requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.