Platforms · YouTube

YouTube Videos Scraper API

Body: { ids: string[], include_localizations?: boolean }.

GET /api/v1/data/youtube/videos · 5 credits per call · Every call fetches the data afresh.

Inputs

  • ids (required): JSON array of BARE YouTube video ids (11 characters each, e.g. 'dQw4w9WgXcQ'), 1 to 1000 per request.
  • include_localizations: When true, adds post.ext.localizations to each item: a map from language code to the localized { title, description }. Present only on videos whose owner localized them.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • count (integer): How many posts this answer holds.
  • posts[].id (string): The item's ID on the platform.
  • posts[].url (string): Link to it on the platform.
  • posts[].text (string): Its text.
  • posts[].published_at (string): When it was published (ISO 8601).
  • posts[].language (string): Its language code.
  • posts[].deleted (boolean): Whether it was deleted.
  • posts[].author_username (string): The author's username.
  • posts[].author_name (string): The author's display name.
  • posts[].author_verified (boolean): Whether the author is verified.
  • posts[].author_avatar_url (string): The author's picture.
  • posts[].like_count (number): Likes.
  • posts[].comments_count (number): Comments.
  • posts[].share_count (number): Shares or reposts.
  • posts[].save_count (number): Saves.
  • posts[].view_count (number): Views.
  • posts[].hashtags (array): Hashtags in it.
  • posts[].mentions (array): Accounts it mentions.
  • posts[].media[].url (string): Its media.
  • posts[].media[].thumbnail_url (string): Its media's thumbnail.
  • posts[].media[].duration_seconds (number): Its video's length in seconds.
  • posts[].content_type (string): What it is: post.
  • posts[].platform (string): The platform's name.
  • posts[].source_data (object): Everything the platform sent for this row, as it came.
  • posts[].source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • posts[].source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • posts[].source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • posts[].source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • posts[].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.
  • posts[].source_data.post.author.avatar_url (string): URL to author profile picture
  • posts[].source_data.post.author.display_name (string): Author display name
  • posts[].source_data.post.author.username (string): Author username
  • posts[].source_data.post.author.verified (boolean): Whether the author account is verified
  • posts[].source_data.post.content.duration_seconds (number): Video/clip duration in seconds (null for non-video posts)
  • 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.
  • posts[].source_data.post.content.text (string): Post caption, description, or text content
  • posts[].source_data.post.content.thumbnail_url (string): URL to thumbnail image
  • posts[].source_data.post.engagement.comments (number): Comment count. Both land on this same field.
  • posts[].source_data.post.engagement.likes (number): Like / reaction count
  • posts[].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).
  • posts[].source_data.post.engagement.shares (number): Share / repost / retweet count.
  • posts[].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).
  • posts[].source_data.post.ext.caption (string): Whether the video has captions, as the string true or false. YouTube only.
  • posts[].source_data.post.ext.categoryId (string): YouTube's category id, for example 10.
  • posts[].source_data.post.ext.categoryTitle (string): Name of the YouTube category.
  • posts[].source_data.post.ext.channel_id (string): The 24 character YouTube channel id (starts with UC). Used because these rows carry no handle.
  • posts[].source_data.post.ext.defaultAudioLanguage (string): Language of the video's audio track as a BCP 47 code.
  • posts[].source_data.post.ext.default_language (string): Default language of the video's metadata as a BCP 47 code.
  • posts[].source_data.post.ext.description (string)
  • posts[].source_data.post.ext.duration (string): Video length as an ISO 8601 duration, for example PT3M33S.
  • posts[].source_data.post.ext.hasPaidProductPlacement (boolean): Whether the video discloses a paid product placement. YouTube only.
  • posts[].source_data.post.ext.hashtags (array): Hashtags parsed from the caption, lower cased without the #, each listed once in order.
  • posts[].source_data.post.ext.license (string): Licence the video is published under, for example youtube or creativeCommon.
  • posts[].source_data.post.ext.madeForKids (boolean): Whether the video is marked as made for kids. YouTube only.
  • posts[].source_data.post.ext.mentions (array): Handles mentioned in the caption, lower cased with the @, each listed once in order.
  • posts[].source_data.post.ext.tags (array): Video tags set by the creator. YouTube only.
  • posts[].source_data.post.ext.topicCategories (array): Wikipedia URLs for the video's topics. YouTube only.
  • posts[].source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • posts[].source_data.post.flags.nsfw (boolean): NSFW flag (null when platform does not surface)
  • posts[].source_data.post.flags.pinned (boolean): Pinned-to-profile flag (null when platform does not surface)
  • posts[].source_data.post.flags.spoiler (boolean): Spoiler flag (null when platform does not surface)
  • posts[].source_data.post.id (string)
  • posts[].source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • posts[].source_data.post.url (string)

Good to know

  • The price depends on what the call returns: from 5 credits to 100 credits.
  • Every call fetches the data afresh.

Example call

GET /api/v1/data/youtube/videos

Questions

How much does the YouTube Videos API cost?

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

What do I send?

You must send ids. 1 more input is optional: include_localizations. 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 Thumbnails: Get a YouTube video's thumbnail files. 1 credit a call

More YouTube scraper APIs