YouTube Video Details API
YouTube Video Details. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
YouTube Video Details. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
Open product page and API TesterEndpoint and authentication
POST https://api.goanyapi.com/api/v1/youtube/video/detailSynchronous response, without tasks or polling. Use an API Key or supported OAuth Bearer credential. No Path or Query parameters.
Input parameters
| Parameter | Location | Type | Required | Default | Constraints and meaning |
|---|---|---|---|---|---|
| Authorization | Header | string | Yes | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | Yes | application/json | application/json |
| url | JSON body | string | Yes | — | YouTube HTTPS resource URL (preferred) or resource ID. Channel URLs accept @handle, /channel/, /c/, /user/; video URLs accept watch?v=, youtu.be/, /shorts/, /embed/, /live/, /v/. pattern: ^(?:[A-Za-z0-9_-]{11}|https://(?:(?:www.|m.)?youtube.com/(?:watch?[^\s]v=[A-Za-z0-9_-]{11}[^\s]|(?:shorts|embed|live|v)/[A-Za-z0-9_-]{11}/?(?:[?#][^\s])?)|(?:www.)?youtu.be/[A-Za-z0-9_-]{11}/?(?:[?#][^\s])?))$ minLength: 1 |
Output fields
| Field | Type | Meaning |
|---|---|---|
| code | string | ok on success; public error code on failure |
| message | string | Status message |
| data.result | object / null | Public result; null, empty and absent values are preserved |
| data.creditsUsed | integer | Actual configured charge; zero for empty results |
| data.remainingCredits | number | Balance after settlement |
| data.result.videoId | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.title | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.description | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.playabilityStatus | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.duration | number | Video duration in seconds |
| data.result.viewCount | number | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.publishDate | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.likeCount | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.keywords | array | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.isLive | boolean | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.channel | object | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.channel.id | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.channel.name | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.thumbnail | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
This endpoint does not accept a cursor or support pagination. List length is the number returned by this request, not a total.
Request example
curl -X POST 'https://api.goanyapi.com/api/v1/youtube/video/detail' -H 'Authorization: Bearer YOUR_API_KEY' -H 'Content-Type: application/json' --data '{"url":"https://www.youtube.com/watch?v=Y334D183ofE"}'Real response example
Captured from a real request. Only live data.creditsUsed and data.remainingCredits are omitted. Media and caption URLs may have expired.
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"videoId": "Y334D183ofE",
"title": "Jensen Huang: The Man Behind NVIDIA (April 2026)",
"description": "Jensen Huang spent 33 years building Nvidia into one of the most valuable companies of all time. But when Guy Raz asked whether he'd do it all over again, his answer was surprising: no.\n\nIn this unusually personal conversation, recorded in April 2026, Jensen opens up about the family moments he missed, the stress and \"humiliation\" of building Nvidia, and why he finds it painful to look back on his life. He also reflects on his childhood, his demanding approach to leadership, the enormous gamble that put Nvidia at the center of the AI revolution, his disagreements with those warning about AI's dangers, and the possibility of conflict between China and Taiwan.\n\nNote: This interview was recorded before revelations involving Jensen's personal life and national security concerns emerged. Jensen resigned Nvidia's CEO in November 2026. Those developments are not discussed here.\n\nSubscribe to How I Built This: / @howibuiltthis \n\n00:00:00 - Introduction\n00:01:17 - Why Jensen wouldn't build NVIDIA again\n00:06:15 - The personal cost of success: family and sacrifice\n00:12:58 - Jensen's childhood and journey to America\n00:24:50 - Taking the leap to start NVIDIA\n00:30:35 - NVIDIA's early failures and near-collapse\n00:36:53 - The gamble on CUDA and the rise of AI\n01:09:03 - Jensen on AI fears and the future of work\n01:18:42 - China, Taiwan, and the risk of conflict\n\n#HowIBuiltThis #JensenHuang #Nvidia #GuyRaz #AI #ArtificialIntelligence #Entrepreneurship #BusinessPodcast\n\nABOUT HOW I BUILT THIS\nOn How I Built This, Guy Raz interviews the world's best-known entrepreneurs to learn how they built their iconic brands.\nSubscribe to the channel for more conversations with the founders behind the world's most successful companies.\n\nLISTEN TO HOW I BUILT THIS\nApple Podcasts: https://podcasts.apple.com/us/podcast...\nSpotify: https://open.spotify.com/show/6E709HR...\n\nFOLLOW HOW I BUILT THIS\nInstagram: / howibuiltthis \nFacebook: / howibuiltthis \nX: https://x.com/howibuiltthis\n\nFOLLOW GUY RAZ\nInstagram: / guy.raz \nWebsite: https://guyraz.com/\n\nHow I Built This is produced by Podcast Pointman and part of the Vox Media Podcast Network.",
"playabilityStatus": "UNPLAYABLE",
"duration": 5239,
"viewCount": 117783,
"publishDate": "2026-11-12",
"likeCount": "1.1K",
"keywords": [
"How I Built This",
"How I Built This with Guy Raz",
"Guy Raz",
"Guy Roz",
"Guy Rass",
"HIBT",
"How I Build This",
"business podcast",
"entrepreneur podcast",
"entrepreneurship",
"founder stories",
"founder interview",
"startup stories",
"how to start a business",
"how to grow a business"
],
"isLive": false,
"channel": {
"id": "UCpgddymxIIzX914mF6BnzzQ",
"name": "How I Built This"
},
"thumbnail": "https://i.ytimg.com/vi/Y334D183ofE/hqdefault.jpg"
}
}
}Billing and status codes
…
Each endpoint uses its own database-configured price. Only nonempty successful results are charged; empty results and failures are free. Pages are billed separately. Missing optional titles or descriptions do not invalidate a record. Media results are empty when both video and captions are empty.
| HTTP | Meaning |
|---|---|
| 200 | Query completed; may be empty |
| 400 | Invalid JSON or parameters |
| 401 | Authentication failed |
| 402 | Insufficient credits |
| 429 | Rate limited; honor Retry-After |
| 502 | Data request failed |
| 503 | API or pricing not configured |