Scraperize
YouTube

YouTube Video API

To get a YouTube video's or Short's details, call GET /v1/youtube/video?url=… with your API key. You get clean JSON back.

GET/v1/youtube/video
curl "https://api.scraperize.com/v1/youtube/video?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  -H "x-api-key: YOUR_API_KEY"
Cost
1 credit / call
Only successful calls are charged. Errors are free.
Pagination
Single response
Everything comes back in one call.
Caching
0 credits
Set cache_max_age to reuse a recent result for free.
Rate limit
Per team / minute
Over the limit: 429 with a Retry-After header.

Parameters

urlRequired
A YouTube video or Short URL: youtube.com/watch?v=<id>, youtu.be/<id>, youtube.com/shorts/<id>, /live/<id> or /embed/<id>.
cache_max_ageOptional
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.

Send your key in the x-api-key header. Full API reference

Example response

200 OK · application/json
{
  "data": {
    "video": {
      "id": "dQw4w9WgXcQ",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "isShort": false,
      "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
      "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this lin…",
      "descriptionLinks": [
        {
          "text": "https://linktr.ee/rickastleynever",
          "url": "https://linktr.ee/rickastleynever"
        }
      ],
      "hashtags": [
        "RickAstleyNever",
        "RickAstley",
        "NeverGonnaGiveYouUp"
      ],
      "keywords": [
        "rick astley",
        "Never Gonna Give You Up",
        "nggyu"
      ],
      "category": "Music",
      "durationSeconds": 213,
      "publishedAt": "2009-10-25T06:57:33.000Z",
      "uploadedAt": "2009-10-25T06:57:33.000Z",
      "viewCount": 1833364812,
      "likeCount": 19492147,
      "commentCount": 2461279,
      "commentCountApproximate": false,
      "commentsDisabled": false,
      "channel": {
        "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
        "name": "Rick Astley",
        "handle": "RickAstleyYT",
        "url": "https://www.youtube.com/@RickAstleyYT",
        "avatarUrl": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVxnYtahADfRTVLtuVQ=s176-c-k-c0x00ffffff-no…",
        "isVerified": true,
        "isOfficialArtist": true,
        "subscriberCount": 4560000,
        "subscriberCountText": "4.56M subscribers"
      },
      "collaborators": [],
      "thumbnailUrl": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
      "thumbnails": [
        {
          "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
          "width": 1920,
          "height": 1080
        }
      ],
      "embedUrl": "https://www.youtube.com/embed/dQw4w9WgXcQ",
      "isEmbeddable": true,
      "hasPaidPromotion": false,
      "isMembersOnly": false,
      "isFamilySafe": true,
      "isUnlisted": false,
      "isPrivate": false,
      "allowRatings": true,
      "playabilityStatus": "OK",
      "unplayableReason": null,
      "availableCountryCount": 249,
      "isLive": false,
      "isUpcoming": false,
      "wasLive": false,
      "liveStartedAt": null,
      "liveEndedAt": null,
      "concurrentViewers": null,
      "chapters": [],
      "chaptersSource": null,
      "heatmap": {
        "segments": [
          {
            "startSeconds": 0,
            "durationSeconds": 2.14,
            "intensity": 1
          }
        ],
        "mostReplayed": [
          {
            "startSeconds": 0,
            "endSeconds": 6.42,
            "peakSeconds": 2.14
          }
        ]
      },
      "aiSummary": null,
      "music": [
        {
          "song": "Never Gonna Give You Up (7\" Mix)",
          "artist": "Rick Astley",
          "album": "Whenever You Need Somebody",
          "imageUrl": "https://yt3.googleusercontent.com/eC9DfRcYSk4FE-fvDCJSu_4xsKdVMKxwmFTYFZwP8OqB7R4TKxAjKoR-Kp1lXeRi2WddPFYulSte4eW-",
          "credits": {
            "Song": "Never Gonna Give You Up (7\" Mix)",
            "Artist": "Rick Astley",
            "Album": "Whenever You Need Somebody",
            "Writers": "Pete Waterman, Mike Stock, Matt Aitken"
          }
        }
      ],
      "attributes": [],
      "merchandise": [],
      "series": null,
      "captions": [
        {
          "languageCode": "en",
          "name": "English",
          "isAutoGenerated": false,
          "isTranslatable": true
        }
      ],
      "hasTranscript": true,
      "audioTracks": [],
      "formats": {
        "qualities": [
          "2160p",
          "1440p",
          "1080p"
        ],
        "maxQuality": "2160p",
        "maxFps": 25,
        "hasHdr": false,
        "is360": false
      },
      "endscreen": [
        {
          "type": "CHANNEL",
          "title": "Rick Astley",
          "videoId": null,
          "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
          "playlistId": null,
          "url": null,
          "startSeconds": 201.45,
          "endSeconds": 212.04
        }
      ],
      "relatedVideos": [
        {
          "id": "KMX8gl_kJcw",
          "url": "https://www.youtube.com/watch?v=KMX8gl_kJcw",
          "title": "The lazy twin | Full movie ",
          "channelName": "GuiltyVibes Tv",
          "channelId": null,
          "channelHandle": null,
          "isChannelVerified": false,
          "viewCount": 305000,
          "viewCountText": "305K",
          "publishedText": "3 days ago",
          "durationSeconds": 2279,
          "thumbnailUrl": "https://i.ytimg.com/vi/KMX8gl_kJcw/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC9KfUYQMB…"
        }
      ]
    },
    "fetchedAt": "2026-11-03T17:36:32.394Z"
  },
  "meta": {
    "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
    "creditsCharged": 1,
    "creditsRemaining": 4999,
    "cached": false
  }
}

A real response, shortened to one item per list.

FAQ

YouTube Video API questions

How much does the YouTube Video API cost?

1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.

Do I need a YouTube account or API key?

No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No YouTube login or developer app is needed.

How fresh is the data?

Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.

Where are the full parameters and response fields?

In the API reference, with every parameter, field and error.

Try the YouTube Video API

Grab your key and 100 free credits, no card required, and run this call in minutes.