Platforms · YouTube

YouTube Channel Scraper API

Returns public channel information for a YouTube channel including subscriber count, total video count, total view count, channel description, banner URL, and avatar URL. author.followers is YouTube's publicly published subscriber figure. Above 1,000 subscribers YouTube rounds that figure to three significant figures, and author.ext.followers_approximate is true. When the channel publishes a contact email in its public description, it is returned as author.ext.public_email; otherwise that leaf is null.

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

Inputs

  • channelId: YouTube channel ID. Can pass a channelId, handle or url
  • handle: YouTube channel handle without the @ symbol
  • url: YouTube channel URL. Can pass a channelId, handle or url
  • hl: Preferred response language for localized text (ISO 639-1, e.g. 'en', 'es', 'fr').
  • forUsername: Legacy YouTube username (pre-handle) to look up.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.author.avatar_url (string): URL to profile picture
  • source_data.author.bio (string): Profile biography or description
  • source_data.author.display_name (string): Display name or full name
  • source_data.author.ext.bannerExternalUrl (string): URL of the channel banner image. YouTube only.
  • source_data.author.ext.business_hours (array)
  • source_data.author.ext.contact_email (string): When the bio lists two or more email addresses, the one the creator gives for contacting them personally, copied verbatim. Null when there is one address or none, when every address belongs to a manager, agency or brand, or when the choice was not confident. `author.ext.public_email` (the first address in the bio) is unchanged.
  • source_data.author.ext.country (string): Account country as an ISO 3166-1 alpha-2 code, or null when the profile does not name a single country.
  • source_data.author.ext.followers_approximate (boolean): True when `author.followers` is a published or rounded figure rather than an unrounded census: LinkedIn people-list display buckets, TikTok `stats.followerCount` when the exact sibling is absent, and YouTube subscriber counts at or above 1,000. Null or absent on exact counts.
  • source_data.author.ext.hiddenSubscriberCount (boolean): Whether the channel hides its subscriber count. YouTube only.
  • source_data.author.ext.joined_at_timestamp (string): Full ISO 8601 creation time of the channel or account.
  • source_data.author.ext.keywords (string): Channel keywords as one space separated string. YouTube only.
  • source_data.author.ext.links (array): Links the profile lists. On linktree/page each is `{ id, type, title, url }`. On X profiles each is one of the destination URLs written in the bio, in order. On facebook/profile they are the outbound links the page lists in its About tab.
  • source_data.author.ext.madeForKids (boolean): Whether the channel is marked as made for kids. YouTube only.
  • source_data.author.ext.products (array): Null when it lists none.
  • source_data.author.ext.public_email (string): The public contact address the account publishes, or null. On instagram/profile/about it is the address on the account's contact panel, and the first address in the bio only when the panel has none. On instagram/profile it is the first address in the bio.
  • source_data.author.ext.related_playlists.likes (string): Id of the liked-videos playlist. Empty when it is private.
  • source_data.author.ext.related_playlists.uploads (string): Id of the playlist holding every upload.
  • source_data.author.ext.topicCategories (array): Wikipedia URLs for the channel's topics. YouTube only.
  • source_data.author.ext.topic_ids (array): Freebase topic ids for the channel. YouTube only.
  • source_data.author.ext.total_views (number): Lifetime view count of the channel. YouTube only.
  • source_data.author.ext.unsubscribed_trailer (string): Video id of the channel trailer shown to people who have not subscribed. YouTube only.
  • source_data.author.ext.website (string): The company, page or member's own website, not the profile permalink.
  • source_data.author.followers (number): Follower or subscriber count as an integer. YouTube above 1,000 subscribers is YouTube's published three-significant-figure figure. When the integer is a published/rounded value, `author.ext.followers_approximate` is true.
  • source_data.author.following (number): Number of accounts followed
  • source_data.author.id (string): Platform-specific user ID (always a string; platform-specific prefixes like `did:`, `spotify:artist:`, `t2_` are stripped)
  • source_data.author.joined_at (string): When the account was created, as an ISO 8601 date (YYYY-MM-DD).
  • source_data.author.posts_count (number): Total number of posts / videos / tracks / episodes
  • source_data.author.private (boolean): Whether the account is private.
  • source_data.author.url (string): Direct URL to the profile page
  • source_data.author.username (string): User handle or username
  • source_data.author.verified (boolean): Whether the account is verified
  • 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)
  • source_data.computed.save_rate (number)
  • 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.
  • The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.
  • Send one of: channelId, handle, url.

Example call

GET /api/v1/data/youtube/channel?handle=MrBeast

Questions

How much does the YouTube Channel API cost?

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

What do I send?

Give one of channelId, handle and url. 5 more inputs are optional: channelId, handle, url, hl and forUsername. 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 15 minutes may get the same answer, so data can be up to 15 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