Platforms · YouTube

YouTube Video Scraper API

Returns detailed information about a specific YouTube video including title, view count, like count, comment count, description, tags, duration, channel info, and publish date.

GET /api/v1/data/youtube/video · 1 credit per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • url (required): Full URL of the YouTube video
  • 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.
  • hl: Preferred response language for localized text (ISO 639-1, e.g. 'en', 'es', 'fr').

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • source_data.computed.save_rate (number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.
  • source_data.post.author.avatar_url (string): URL to author profile picture
  • source_data.post.author.display_name (string): Author display name
  • source_data.post.author.username (string): Author username
  • source_data.post.author.verified (boolean): Whether the author account is verified
  • source_data.post.content.duration_seconds (number): Video/clip duration in seconds (null for non-video posts)
  • source_data.post.content.media_urls (any): URL(s) of the primary media. Single string for video/photo posts; array of strings for carousels.
  • source_data.post.content.text (string): Post caption, description, or text content
  • source_data.post.content.thumbnail_url (string): URL to thumbnail image
  • source_data.post.engagement.comments (number): Comment count. Both land on this same field.
  • source_data.post.engagement.likes (number): Like / reaction count
  • source_data.post.engagement.saves (number): Save / bookmark count. `null` on Instagram: the save count is platform-private and Instagram exposes no numeric save metric on any surface (never fabricated).
  • source_data.post.engagement.shares (number): Share / repost / retweet count.
  • source_data.post.engagement.views (number): View count (if available). For Instagram video/reels this is the play count: the headline 'Views' the IG app shows. Note: since mid-July 2026 Instagram's play count is Instagram-only. It no longer includes Facebook crosspost views (Meta-side change; the app UI changed identically).
  • source_data.post.ext.caption (string): Whether the video has captions, as the string true or false. YouTube only.
  • source_data.post.ext.categoryId (string): YouTube's category id, for example 10.
  • source_data.post.ext.categoryTitle (string): Name of the YouTube category.
  • source_data.post.ext.channel_id (string): The 24 character YouTube channel id (starts with UC). Used because these rows carry no handle.
  • source_data.post.ext.content_type (string): YouTube format: video, short, live, channel or playlist.
  • source_data.post.ext.defaultAudioLanguage (string): Language of the video's audio track as a BCP 47 code.
  • source_data.post.ext.default_language (string): Default language of the video's metadata as a BCP 47 code.
  • source_data.post.ext.description (string)
  • source_data.post.ext.duration (string): Video length as an ISO 8601 duration, for example PT3M33S.
  • source_data.post.ext.hasPaidProductPlacement (boolean): Whether the video discloses a paid product placement. YouTube only.
  • source_data.post.ext.hashtags (array): Hashtags parsed from the caption, lower cased without the #, each listed once in order.
  • source_data.post.ext.license (string): Licence the video is published under, for example youtube or creativeCommon.
  • source_data.post.ext.madeForKids (boolean): Whether the video is marked as made for kids. YouTube only.
  • source_data.post.ext.mentions (array): Handles mentioned in the caption, lower cased with the @, each listed once in order.
  • source_data.post.ext.playback_availability (object): Where and to whom the video plays, and its live state.
  • source_data.post.ext.tags (array): Video tags set by the creator. YouTube only.
  • source_data.post.ext.topicCategories (array): Wikipedia URLs for the video's topics. YouTube only.
  • source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • source_data.post.flags.nsfw (boolean): NSFW flag (null when platform does not surface)
  • source_data.post.flags.pinned (boolean): Pinned-to-profile flag (null when platform does not surface)
  • source_data.post.flags.spoiler (boolean): Spoiler flag (null when platform does not surface)
  • source_data.post.id (string)
  • source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • source_data.post.url (string)
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 1 credit to 2 credits.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Example call

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

Questions

How much does the YouTube Video API cost?

Each call costs 1 to 2 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. 2 more inputs are optional: language and hl. 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?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

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

More YouTube scraper APIs