API para YouTube: Shorts em alta
Liste os YouTube Shorts em alta no momento (título, canal, visualizações, curtidas, duração).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"shorts": [
{
"authorHandle": "alex_rivera",
"authorId": "Alex Rivera",
"authorUrl": "https://example.com/page",
"category": "general",
"channelTitle": "Example title",
"comments": 12500,
"createdUtc": 12.5,
"duration": "example",
"durationMs": 13,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"likes": 12500,
"title": "Example title",
"url": "https://example.com/page",
"views": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubeTrendingShortsResponse {
data: {
shorts: {
authorHandle?: string;
authorId?: string;
authorUrl?: string;
category?: string;
channelTitle: string;
comments?: number;
createdUtc?: number;
duration: string;
durationMs?: number;
id: string;
image?: string;
likes: number;
title: string;
url: string;
views: number;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.trending_shorts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Resposta | ||
| data | object | |
| data.shorts | object[] | Populated whenever the provider has data for the entity. |
| data.shorts[].authorHandle | string | The publishing channel's @handle, without the leading @. |
| data.shorts[].authorId | string | YouTube channel ID of the publishing channel. |
| data.shorts[].authorUrl | string | Canonical URL of the publishing channel, tracking query parameters stripped. |
| data.shorts[].category | string | YouTube category the short is filed under. |
| data.shorts[].channelTitle | string | Populated whenever the provider has data for the entity. |
| data.shorts[].comments | integer | Number of comments on the short. Rounded as YouTube shows it on Shorts (1.2K, 15K), so counts of 1,000 or more are approximate. |
| data.shorts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.shorts[].duration | string | Populated whenever the provider has data for the entity. |
| data.shorts[].durationMs | integer | Length of the short in milliseconds. |
| data.shorts[].id | string | Populated whenever the provider has data for the entity. |
| data.shorts[].image | string | URL of the short thumbnail image, tracking query parameters stripped. |
| data.shorts[].likes | integer | |
| data.shorts[].title | string | Populated whenever the provider has data for the entity. |
| data.shorts[].url | string | Populated whenever the provider has data for the entity. |
| data.shorts[].views | integer | |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Shorts em alta da API para YouTube
O endpoint Shorts em alta da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.trending_shorts. Liste os YouTube Shorts em alta no momento (título, canal, visualizações, curtidas, duração). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 87,9% das chamadas ao endpoint Shorts em alta da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 8,5 segundos, em 33 chamadas medidas.