YouTube video detail API
Get YouTube video detail via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 3 implementations (ScrapeCreators and TikHub), pass parameters such as language, url, and retrieve structured data including identifier, title, name, returned base url field, and returned is translatable field for content research and account lookup, and integration reference.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 2 / 3
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
YouTube video detail API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
YouTube — Video/Short Details API
Retrieve video/Short Details with the YouTube API. Provide url in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: url, language, cache_max_age |
| Selected implementation | scrapecreators · YouTube — Video/Short Details |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
id |
Identifier |
title |
Title |
captionTracks[].name |
Name |
captionTracks[].baseUrl |
Returned base url field |
captionTracks[].isTranslatable |
Returned is translatable field |
captionTracks[].kind |
Returned kind field |
captionTracks[].languageCode |
Returned language code field |
captionTracks[].trackName |
Returned track name field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video?language=en&url=https%3A%2F%2Fyoutu.be%2FgTCi7PaOPLY' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published YouTube — Video/Short Details API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
Current YouTube — Video/Short Details · GET · View API reference | $0.00188 / call | 1 | 100.00%successP502.94s | |
| Get video information · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get video information V2 · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00188
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0.188
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
url | URL query parametersquery | string | Yes | YouTube video or short URL |
language | URL query parametersquery | string | No | Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc. |
cache_max_age | URL query parametersquery | string | No | 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) enum: "1d", "3d", "7d", "14d", "30d" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
captionTracksobject[]baseUrlstringisTranslatablebooleankindstringlanguageCodestringnameobjectsimpleTextstring
trackNamestringvssIdstring
channelobjecthandlestringidstringtitlestringurlstring
chaptersunknown[]collaboratorsunknown[]commentCountIntintegercommentCountTextstringcredits_chargedintegercredits_remainingintegerdescriptionnulldescriptionLinksunknown[]durationFormattedstringdurationMsintegergenrestringidstringisPaidPromotionbooleankeywordsunknown[]likeCountIntintegerlikeCountTextstringmost_replayednullpublishDatestringpublishDateTextstringsuccessbooleanthumbnailstringtitlestringtypestringurlstringviewCountIntintegerviewCountTextstringwatchNextVideosobject[]channelobjecthandlestringidstringtitlestringurlstring
idstringlengthInSecondsintegerlengthTextstringpublishDatestringpublishDateTextstringpublishedTimestringpublishedTimeTextstringthumbnailstringtitlestringvideoUrlstringviewCountIntintegerviewCountTextstring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 3
Review these request fields before running. Keep the published provider and request method unchanged.
url- YouTube video or short URL
language- Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc.
cache_max_age- 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)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video?language=en&url=https%3A%2F%2Fyoutu.be%2FgTCi7PaOPLY' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
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" } ] }