YouTube video detail

Retrieve video detail with the YouTube API. Input fields and response shapes depend on the selected implementation. Use it in a video discovery or content monitoring workflow. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.

Selected price
$0.00188 / callPublished pricing
Sellers / implementations
2 / 3
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
YouTube video or short URL
Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc.
If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)

Sample response

{
  "captionTracks": [
    {
      "baseUrl": "https://www.youtube.com/api/timedtext?v=Y2Ah_DFr8cw&ei=s5Bqab0gu8yS5w_pvOLIDw&caps=asr&opi=112496729&xoaf=5&xowf=1&hl=en&ip=0.0.0.0&ipbits=0&expire=1768616739&sparams=ip,ipbits,expire,v,ei,caps,opi,xoaf&signature=306A57ADE14FECC84B0DB13190761BCCC922AC9B.5C321C4FE7086F7AF851CA8463326E1869EE5255&key=yt8&kind=asr&lang=en",
      "isTranslatable": true,
      "kind": "asr",
      "languageCode": "en",
      "name": {
        "simpleText": "English (auto-generated)"
      },
      "trackName": "",
      "vssId": "a.en"
    }
  ],
  "channel": {
    "handle": "afroballer8906",
    "id": "UCWH3hing1Qb4LnkRfQdxsxQ",
    "title": "Afroballer",
    "url": "https://www.youtube.com/@afroballer8906"
  },
  "chapters": [],
  "collaborators": [],
  "commentCountInt": 358,
  "commentCountText": "358",
  "credits_charged": 1,
  "credits_remaining": 33851527,
  "description": null,
  "descriptionLinks": [],
  "durationFormatted": "00:05:48",
  "durationMs": 348000,
  "genre": "People & Blogs",
  "id": "Y2Ah_DFr8cw",
  "isPaidPromotion": false,
  "keywords": [],
  "likeCountInt": 4043,
  "likeCountText": "4043",
  "most_replayed": null,
  "publishDate": "2019-02-22T03:19:54-08:00",
  "publishDateText": "Feb 22, 2019",
  "success": true,
  "thumbnail": "https://img.youtube.com/vi/Y2Ah_DFr8cw/maxresdefault.jpg",
  "title": "Inside the NBA: Chuck Trolls Jussie Smollett \"Do not commit crimes with checks, use cash!\"",
  "type": "video",
  "url": "https://www.youtube.com/watch?v=Y2Ah_DFr8cw",
  "viewCountInt": 372864,
  "viewCountText": "372,864",
  "watchNextVideos": [
    {
      "channel": {
        "handle": "SkyHooked",
        "id": "UCrX8GD5f_O-Cu5Y2vQuSSvw",
        "title": "SkyHooked",
        "url": "https://www.youtube.com/@SkyHooked"
      },
      "id": "lzDTK5kEdkM",
      "lengthInSeconds": 1081,
      "lengthText": "18:01",
      "publishDate": "2025-02-16T19:25:39.493Z",
      "publishDateText": "11 months ago",
      "publishedTime": "2025-02-16T19:25:39.493Z",
      "publishedTimeText": "11 months ago",
      "thumbnail": "https://i.ytimg.com/vi/lzDTK5kEdkM/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLAq_osvQnsGV3A7uz4L1CPTaLqppg",
      "title": "Charles Barkley and Shaq FUNNIEST MOMENTS",
      "videoUrl": "https://www.youtube.com/watch?v=lzDTK5kEdkM",
      "viewCountInt": 1800000,
      "viewCountText": "1.8M views"
    }
  ]
}

Response result

Response structure

Inferred from examples
  • captionTracksobject[]
    • baseUrlstring
    • isTranslatableboolean
    • kindstring
    • languageCodestring
    • nameobject
      • simpleTextstring
    • trackNamestring
    • vssIdstring
  • channelobject
    • handlestring
    • idstring
    • titlestring
    • urlstring
  • chaptersunknown[]
  • collaboratorsunknown[]
  • commentCountIntinteger
  • commentCountTextstring
  • credits_chargedinteger
  • credits_remaininginteger
  • descriptionnull
  • descriptionLinksunknown[]
  • durationFormattedstring
  • durationMsinteger
  • genrestring
  • idstring
  • isPaidPromotionboolean
  • keywordsunknown[]
  • likeCountIntinteger
  • likeCountTextstring
  • most_replayednull
  • publishDatestring
  • publishDateTextstring
  • successboolean
  • thumbnailstring
  • titlestring
  • typestring
  • urlstring
  • viewCountIntinteger
  • viewCountTextstring
  • watchNextVideosobject[]
    • channelobject
      • handlestring
      • idstring
      • titlestring
      • urlstring
    • idstring
    • lengthInSecondsinteger
    • lengthTextstring
    • publishDatestring
    • publishDateTextstring
    • publishedTimestring
    • publishedTimeTextstring
    • thumbnailstring
    • titlestring
    • videoUrlstring
    • viewCountIntinteger
    • viewCountTextstring

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use YouTube video detail with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.