YouTube Videos Trending Scraper API
Returns the most popular (trending) YouTube videos for a region and category (title, thumbnail, duration, view/like/comment counts, channel, and publish time) plus a cursor when more results are available. Filter by region (ISO country) and category (YouTube category id); forward cursor for subsequent pages.
GET /api/v1/data/youtube/videos-trending · 1 credit per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
Inputs
region: ISO 3166-1 alpha-2 country code (e.g. US, GB, KR).category: YouTube video category id (e.g. 10 = Music, 20 = Gaming), or a name: music, gaming, sports, news. The chart weights the category rather than filtering strictly, so check `post.ext.categoryTitle` on each row.language: Localization language (ISO 639-1) for titles/metadata.max_results: Maximum number of videos to return (1-50).cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.
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_followers(number): How many followers the author has.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[].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 pictureposts[].source_data.post.author.display_name(string): Author display nameposts[].source_data.post.author.username(string): Author usernameposts[].source_data.post.author.verified(boolean): Whether the author account is verifiedposts[].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 contentposts[].source_data.post.content.thumbnail_url(string): URL to thumbnail imageposts[].source_data.post.engagement.comments(number): Comment count. Both land on this same field.posts[].source_data.post.engagement.likes(number): Like / reaction countposts[].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.author_country(string): The creator's country. On Instagram it is the country the creator declares on the About this account panel, as an ISO 3166-1 alpha-2 code (for example `ES`), and it is not where the post was filmed. Null when the platform publishes no country for the creator or the lookup did not resolve, and nothing is guessed; absent on a plain call.posts[].source_data.post.ext.author_followers(number): It stays null when that lookup does not resolve.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.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.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)next_cursor(string): Send it as cursor to get the next page; null when there is none.has_more(boolean): Whether there is another page.
Good to know
- The price depends on what the call returns: from 1 credit to 6 credits.
- Each call returns one page of about 48 posts. To get the next page, send next_cursor from the answer as cursor.
- The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
Example call
GET /api/v1/data/youtube/videos-trending?region=US
Questions
How much does the YouTube Videos Trending API cost?
Each page costs 1 to 6 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.
What do I send?
6 more inputs are optional: region, category, language, max_results, since and until. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How do I get the next page?
Each call returns one page of about 48 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.
How fresh is the data?
The same call repeated within 2 minutes may get the same answer, so data can be up to 2 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
- 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
- YouTube Channel Scraper API
- YouTube Channel About Scraper API
- YouTube Channel Community Posts Scraper API
- YouTube Channel Lives Scraper API
- YouTube Channel Playlists Scraper API
- YouTube Channel Shorts Scraper API
- YouTube Channel Videos Scraper API
- YouTube Channels Scraper API
- YouTube Community Post Scraper API
- YouTube Playlist Scraper API
- YouTube Playlist Items Scraper API
- YouTube Profile Full Scraper API
- YouTube Search Scraper API
- YouTube Search Hashtag Scraper API
- YouTube Search Suggestions Scraper API
- YouTube Shorts Trending Scraper API
- YouTube Video Scraper API
- YouTube Video Audio Scraper API
- YouTube Video Comment Replies Scraper API
- YouTube Video Files Scraper API
- YouTube Video Related Scraper API
- YouTube Video Sponsors Scraper API
- YouTube Video Subtitles Scraper API
- YouTube Video Thumbnails Scraper API
- YouTube Video Transcript Scraper API
- YouTube Videos Scraper API