Platforms · YouTube

YouTube Video Thumbnails Scraper API

Returns the thumbnail image files for a YouTube video at every available size: each with a direct image url, dimensions (width/height), aspect ratio, and image format (webp / jpg).

GET /api/v1/data/youtube/video-thumbnails · 1 credit per call · Every call fetches the data afresh.

Inputs

  • url (required): Full URL of the YouTube video.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].format (string): The image format, such as `webp` or `jpg`.
  • items[].height (integer): The image height in pixels.
  • items[].id (string): The thumbnail's size name, such as `default` or `maxres`.
  • items[].ratio (string): The aspect ratio, such as `4:3`.
  • items[].url (string): A direct link to the image.
  • items[].width (integer): The image width in pixels.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • Every call fetches the data afresh.

Example call

GET /api/v1/data/youtube/video-thumbnails?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ

Questions

How much does the YouTube Video Thumbnails API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

Every call fetches the data afresh.

Do I need a YouTube account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related YouTube endpoints

  • Video: Get YouTube video details. 1 credit a call
  • Video Audio: Get a YouTube video's audio file streams. 5 credits a call
  • Video Comment Replies: List YouTube comment replies. 1 credit a page
  • Video Files: Get a YouTube video's video file streams. 5 credits a call
  • Video Related: Get videos related to a YouTube video. 1 credit a call
  • Video Sponsors: Detect sponsors of a YouTube video. 10 credits a call
  • Video Subtitles: Get a YouTube video's subtitle files. 1 credit a call
  • Video Transcript: Get YouTube video transcript. 3 credits a call

More YouTube scraper APIs