API para YouTube: Buscar Shorts
Busque YouTube Shorts por palavra-chave e receba os Shorts correspondentes (título, visualizações, URL) com paginação por cursor, em JSON normalizado.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"shorts": [
{
"contentType": "A short example description of this item.",
"id": "a1b2c3d4",
"title": "Example title",
"url": "https://example.com/page",
"views": 12500,
"viewsAvailable": true
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubeSearchShortsResponse {
data: {
nextCursor?: string | null;
shorts: {
contentType: string;
id: string;
title: string;
url: string;
views: number;
viewsAvailable: boolean;
}[];
} | 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.search_shorts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"cats"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "cats"A palavra-chave para buscar Shorts. |
| cursor | string | Token de continuação de uma resposta anterior, para paginação. |
| sortBy | enum | Ordem: "relevance" (padrão) ou "popular" (mais vistos). |
| uploadDate | enum | Filtra pela data de envio. Omita para qualquer data. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of results, or null when there are no more. Pass it back as cursor to continue. |
| data.shorts | object[] | Populated whenever the provider has data for the entity. |
| data.shorts[].contentType | string | Always "short": every row here comes from YouTube's Shorts shelf. |
| data.shorts[].id | string | YouTube video id of the Short. Populated whenever the provider has data for the entity. |
| data.shorts[].title | string | Title of the Short. Populated whenever the provider has data for the entity. |
| data.shorts[].url | string | Watch URL for the Short. Populated whenever the provider has data for the entity. |
| data.shorts[].views | integer | View count, or 0 when the source did not publish one. Read viewsAvailable before trusting a 0. Rounded as YouTube shows it on Shorts (8.9M, 875K), so counts of 1,000 or more are approximate. |
| data.shorts[].viewsAvailable | boolean | False when the source published no view count, so views is a placeholder rather than a measured zero. |
| 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 Buscar Shorts da API para YouTube
O endpoint Buscar Shorts da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.search_shorts. Busque YouTube Shorts por palavra-chave e receba os Shorts correspondentes (título, visualizações, URL) com paginação por cursor, em JSON normalizado. 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, 100,0% das chamadas ao endpoint Buscar Shorts da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,5 segundos, em 358 chamadas medidas.