YouTube Recommended Shorts API
Read one page of YouTube's Shorts recommendation feed, with no parameters. Each row is one Short: id, url, title, author_name, duration, thumbnail_url, for $0.79 per 1,000 calls.
- This is YouTube's Shorts recommendation feed, not a trending chart, and the result changes from call to call
- Every row has the Short's
id,urland cover;title,author_nameanddurationcome only when YouTube sends them - Failed calls and empty results are not charged.
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
1Request
POST /api/v1/social { "platform": "youtube", "action": "recommended_shorts", "params": {} }2JSON response
{ "results": [ { "type": string, "title": string, "text": string, "author_name": string }, … ] }3Rows
type title text author_name string string string string 4CSV
youtube-recommended_shorts-sample.csv type,id,url,title,text,author_name,author_id,author_url,duration,thumbnail_url,platform
page_token for later pages) goes in, and one page of recommended Shorts comes back; each row in results is one Short, listed as a field table and a CSV file.What data you get
Each row is one Short from the recommendation feed. This endpoint has no public real sample yet. The table lists the fields, types and meanings that each row returns, with no values.
| Field | Type | Meaning |
|---|---|---|
| type | string | Record type; values depend on the capability (for example video / image / text). |
| id | string | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | string | Link to the record on the platform. |
| title | string | Title. null when the platform has no titles (for example text-only posts). |
| text | string | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_name | string | Author's display name. |
| author_id | string | Author's unique ID on the platform. |
| author_url | string | Link to the author's profile on the platform. |
| duration | string | Duration; on channel_lives, playlist_videos, video_search and hashtag it is written as H:MM:SS. |
| thumbnail_url | string | Thumbnail link, lower resolution than image_url. |
| platform | string | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Use cases
See what the feed is showing
Read
titleandauthor_nameto see which Shorts this page of the feed holds.Collect titles of a batch of Shorts
Read several pages and store
titleto see how others word their titles.Get the cover image
Every row has
thumbnail_url, a thumbnail link of lower resolution.Read the formats of one Short next
Pass the
urlof a row tovideo_formatsto see which qualities and formats it has.
Limits and gotchas
- There is no required parameter. This is a recommendation feed, not a trending chart: it is not ranked by popularity, and the result changes from call to call.
- A page holds about 40 rows, sometimes a few more or fewer. When the response has
next_page_token, pass it back unchanged aspage_token. A token is valid for 24 hours. - Pages in one chain do not repeat a Short.
title,author_nameanddurationcome only when YouTube sends them, so they are not on every row.
Pricing
You pay $0.000792 per page, and each page is one call. The number of rows on the page does not change the price. Failed calls and empty results are not charged.
| Calls | Cost |
|---|---|
| 10,000 | $7.92 |
| 100,000 | $79.17 |
| 1,000,000 | $791.67 |
Starting again from the first page is a new call each time, and the result differs from the last one.
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "youtube",
"action": "recommended_shorts",
"params": {}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
API reference
See the parameters, response fields, errors and billing for recommended_shorts, and copy the page or open it as Markdown for an AI assistant.
AI prompt
#Please help me write a data collection script with the EveryInfra YouTube Recommended Shorts endpoint (youtube/recommended_shorts).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to youtube and action to recommended_shorts, and put the parameters inside params.
- No required parameters.
- Optional parameters:
- page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received.
- Returns a list of records. Main fields of each record: type, id, url, title, text, author_name, author_id, author_url, duration (Duration), thumbnail_url.
- Example request body:
{
"platform": "youtube",
"action": "recommended_shorts",
"params": {}
}
- Price: $0.79 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | youtube | Platform identifier, fixed value. |
action | body | string | Yes | recommended_shorts | Capability identifier, fixed value. |
page_token | body.params | string | No | - | Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received. About 40 Shorts per page, sometimes a few more or fewer, and pages in one chain do not repeat a Short; each page is one call and limit has no effect. Tokens last 24 hours. |
Response example
#{ "id": "req_…", "platform": "youtube", "action": "recommended_shorts", "results": [ { "type": …, "id": …, "url": …, "title": …, "text": …, "author_name": …, "author_id": …, "author_url": …, "duration": …, "thumbnail_url": …, "platform": … } ], "next_page_token": …, "pagination": { … }, "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| Field | Meaning |
|---|---|
type | Record type; values depend on the capability (for example video / image / text). |
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
url | Link to the record on the platform. |
title | Title. null when the platform has no titles (for example text-only posts). |
text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
author_name | Author's display name. |
author_id | Author's unique ID on the platform. |
author_url | Link to the author's profile on the platform. |
duration | Duration; on channel_lives, playlist_videos, video_search and hashtag it is written as H:MM:SS. |
thumbnail_url | Thumbnail link, lower resolution than image_url. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
FAQ
Is this a chart of the most popular Shorts?
No. It is YouTube's Shorts recommendation feed. It is not ranked by popularity, and the result changes from call to call.
Do pages repeat the same Short?
Not within one chain of pages. Pass next_page_token back unchanged as page_token and keep the other parameters.
How many rows are on a page?
About 40, sometimes a few more or fewer, and each page is one call at $0.000792.
Related YouTube endpoints
You can also search Shorts by word with shorts_search, or read the videos and Shorts under a hashtag with hashtag, using the same EveryInfra API key.
- Search
search$0.78 per 1,000 callsSearch YouTube videos by keyword, up to 50 per call. - Details
profile$0.56 per 1,000 callsGet a YouTube channel from its channel URL. - Posts by user
user_posts$0.56 per 1,000 callsList videos from a YouTube channel URL, up to 50 per call. - Video details
video$0.56 per 1,000 callsFetch the title, description, channel, views, likes, comment count, duration and publish date of one YouTube video from its watch or share link. - Comments
comments$0.56 per 1,000 callsRead comments on a YouTube video, up to 100 per call. - Followers
followers$0.56 per 1,000 callsCheck the subscriber count of a YouTube channel from its handle. - Transcript
transcript$0.56 per 1,000 callsPull the captions of a YouTube video as full text and timestamped segments, with the track language, available languages and channel details. - Shorts
shorts$0.56 per 1,000 callsBrowse the Shorts of a YouTube channel by handle, up to 100 per call. - Comment replies
comment_replies$0.79 per 1,000 callsRead the replies under one YouTube comment, on a video or on a channel post, from the link and the comment'scomment_id(acommentsorcommunity_post_commentsrow'sid). - Related posts
related_posts$0.56 per 1,000 callsList the videos, Shorts and playlists YouTube recommends next to one video, from the video link. - Channel ID lookup
resolve_channel$0.56 per 1,000 callsTurn a YouTube channel link, @handle, UC channel ID or channel name into the channel's ID, handle, display name and both links. - Community posts
community_posts$0.56 per 1,000 callsPage through the posts in a YouTube channel's Posts tab, newest first, from the channel link or @handle. - Channel post
community_post$0.56 per 1,000 callsOpen one YouTube channel post from its link and get its text, likes, comment count, the time YouTube shows, author, and attachment: images, a video, or poll options and total votes. - Channel post comments
community_post_comments$0.56 per 1,000 callsRead the comments on one YouTube channel post from its link. - Search in channel
search_in_channel$0.56 per 1,000 callsSearch inside one YouTube channel by keyword, from the channel link or @handle. - Shorts search
shorts_search$0.79 per 1,000 callsSearch YouTube Shorts across the whole site by keyword, with optionalsortanddate_range. - Account search
user_search$0.56 per 1,000 callsFind YouTube channels by name or keyword. - Search suggestions
search_suggest$0.56 per 1,000 callsGet the suggestions YouTube's search box shows for what you type, about 14 in one call, in order. - Video formats
video_formats$0.56 per 1,000 callsList the formats a YouTube video has, from its link: quality, codec, bitrate, size, frame rate and audio quality for each format, with no playback URLs. - Media download links
media_links$0.56 per 1,000 callsGet every format of a YouTube video with its playback URL, from the video link. - Format stream URL
stream_url$0.56 per 1,000 callsGet the playback URL of one format of a YouTube video, from the video link and the format'sitag(taken fromvideo_formatsormedia_links). - Channel live streams
channel_lives$0.56 per 1,000 callsList the entries on a YouTube channel's Live tab fromchannel_id: streams that are live now, past streams and upcoming ones. - Channel playlists
channel_playlists$0.56 per 1,000 callsList the playlists on a YouTube channel's Playlists tab fromchannel_id. - Playlist videos
playlist_videos$0.56 per 1,000 callsList the videos of a YouTube playlist in the playlist's order fromplaylist_id(an ID starting with PL, UU or OLAK5uy_, or a link withlist=). - Video search
video_search$0.56 per 1,000 callsSearch YouTube for videos only bykeyword, with an optional upload-time filter insort:hour,today,week,month(the default) oryear. - Hashtag
hashtag$0.79 per 1,000 callsList the videos and Shorts on a YouTube hashtag page, in the order YouTube shows them, from the hashtag name or its link, with optionallanguageandcountry.