Docs / Platforms / YouTube23 operations / 10 live / 13 mapped

YouTube

YouTube is exposed through 10 live operations covering transcripts and captions, public profiles and creator metadata, comments and reviews, posts, videos and catalog records. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What YouTube data is for.

Live YouTube capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 23

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 10

ready
GET

YouTube transcript

/v1/youtube/transcript
15 creditsPaid only1d cache
NameTypeRequiredDescription
urlstringnoYouTube watch, Shorts or youtu.be URL.
vstringnoVideo ID when url is omitted.
Request
curl -s "https://api.cleanfetch.dev/v1/youtube/transcript?v=dQw4w9WgXcQ" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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

platformvideoIdurllanguagelanguageCodeisGenerateddurationSecondssnippetstexttimestamped

Input 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.
GET

YouTube channel feed

/v1/youtube/channels/feed
1 credits3/day free0.16666666666666666h cache
NameTypeRequiredDescription
channelIdstringyesYouTube channel id, starting with UC.
Request
curl -s "https://api.cleanfetch.dev/v1/youtube/channels/feed?channelId=example" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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.
GET

YouTube channel

/v1/youtube/channel
35 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
limitstringnoMaximum records to return, from 1 to 20.
Request
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"
Response
{
  "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

platformidusernamenameurlfollowersdescription

Input 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 comments

/v1/youtube/comments
25 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
limitstringnoMaximum records to return, from 1 to 20.
Request
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"
Response
{
  "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[].createdAt

Input 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 video metadata

/v1/youtube/oembed
1 credits3/day free1d cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
Request
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"
Response
{
  "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[].createdAt

Input 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.
GET

List YouTube channel videos

/v1/youtube/channels/videos
15 creditsPaid only6h cache
NameTypeRequiredDescription
channelIdstringnoYouTube channel id, starting with UC.
handlestringnoPublic handle or username.
sortBystringnoLookup parameter.
cursorstringnoLookup parameter.
includeExtrasstringnoLookup parameter.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/youtube/channels/videos" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get YouTube search suggestions

/v1/youtube/search/suggestions
10 credits1/day free6h cache
NameTypeRequiredDescription
querystringyesSearch query or keyword.
Request
curl -s "https://api.cleanfetch.dev/v1/youtube/search/suggestions?query=nike" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get YouTube video

/v1/youtube/videos
15 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
languagestringnoLookup parameter.
Request
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"
Response
{
  "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[].createdAt

Input 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

List YouTube video comments

/v1/youtube/videos/comments
15 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
cursorstringnoLookup parameter.
orderstringnoLookup parameter.
labelsstringnoLookup parameter.
Request
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"
Response
{
  "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[].createdAt

Input 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 credits
GET

List YouTube channel community posts

/v1/youtube/channels/community-posts

503 upstream_not_configured · 0 credits
GET

List YouTube channel live streams

/v1/youtube/channels/live-streams

503 upstream_not_configured · 0 credits
GET

List YouTube channel playlists

/v1/youtube/channels/playlists

503 upstream_not_configured · 0 credits
GET

List YouTube channel shorts

/v1/youtube/channels/shorts

503 upstream_not_configured · 0 credits
GET

Get YouTube community post

/v1/youtube/community-posts

503 upstream_not_configured · 0 credits
GET

Get YouTube playlist

/v1/youtube/playlists

503 upstream_not_configured · 0 credits
GET

Search YouTube by hashtag

/v1/youtube/search/hashtags

503 upstream_not_configured · 0 credits
GET

Analyze YouTube video comments

/v1/youtube/videos/comments/analysis

503 upstream_not_configured · 0 credits
GET

List YouTube comment replies

/v1/youtube/videos/comments/replies

503 upstream_not_configured · 0 credits
GET

Get YouTube video sponsors

/v1/youtube/videos/sponsors

503 upstream_not_configured · 0 credits
GET

Get YouTube video transcript

/v1/youtube/videos/transcript

503 upstream_not_configured · 0 credits
FAQ / YouTube

Common YouTube API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready