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, url and cover; title, author_name and duration come only when YouTube sends them
  • Failed calls and empty results are not charged.

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

  1. 1Request

    POST /api/v1/social
    {
      "platform": "youtube",
      "action": "recommended_shorts",
      "params": {}
    }
  2. 2JSON response

    {
      "results": [
        {
          "type": string,
          "title": string,
          "text": string,
          "author_name": string
        },
        …
      ]
    }
  3. 3Rows

    typetitletextauthor_name
    stringstringstringstring
  4. 4CSV

    youtube-recommended_shorts-sample.csv type,id,url,title,text,author_name,author_id,author_url,duration,thumbnail_url,platform

A request with no required parameter (plus 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.

FieldTypeMeaning
typestringRecord type; values depend on the capability (for example video / image / text).
idstringThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlstringLink to the record on the platform.
titlestringTitle. null when the platform has no titles (for example text-only posts).
textstringBody 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_namestringAuthor's display name.
author_idstringAuthor's unique ID on the platform.
author_urlstringLink to the author's profile on the platform.
durationstringDuration; on channel_lives, playlist_videos, video_search and hashtag it is written as H:MM:SS.
thumbnail_urlstringThumbnail link, lower resolution than image_url.
platformstringSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Use cases

  • See what the feed is showing

    Read title and author_name to see which Shorts this page of the feed holds.

  • Collect titles of a batch of Shorts

    Read several pages and store title to 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 url of a row to video_formats to 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 as page_token. A token is valid for 24 hours.
  • Pages in one chain do not repeat a Short.
  • title, author_name and duration come 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.

CallsCost
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

#
bash
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.

POST

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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesyoutubePlatform identifier, fixed value.
actionbodystringYesrecommended_shortsCapability identifier, fixed value.
page_tokenbody.paramsstringNo-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

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "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.

FieldMeaning
typeRecord type; values depend on the capability (for example video / image / text).
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlLink to the record on the platform.
titleTitle. null when the platform has no titles (for example text-only posts).
textBody 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_nameAuthor's display name.
author_idAuthor's unique ID on the platform.
author_urlLink to the author's profile on the platform.
durationDuration; on channel_lives, playlist_videos, video_search and hashtag it is written as H:MM:SS.
thumbnail_urlThumbnail link, lower resolution than image_url.
platformSource 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.

Errors

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.

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.

Google Analytics needs consent. Privacy