API para YouTube: Shorts do canal
Liste os Shorts de um canal do YouTube por nome de usuário ou ID do canal, com paginação por cursor, visualizações e data e hora de publicação.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"shorts": [
{
"contentType": "short",
"createdUtc": 12.5,
"duration": "example",
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"likes": 12500,
"title": "Example title",
"url": "https://example.com/page",
"views": 12500,
"viewsAvailable": true
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubeChannelShortsResponse {
data: {
nextCursor: string | null;
shorts: {
contentType: "short";
createdUtc?: number;
duration: string;
id: string;
image?: string;
likes: number | null;
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.channel_shorts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"@zachking","sort":"latest"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| channelId | string | ID do canal do YouTube, começando com UC. |
| cursor | string | Token de continuação de uma resposta anterior. |
| handle | string | "@zachking"Nome de usuário do canal do YouTube, incluindo ou omitindo o @ inicial. |
| sort | enum | "latest"Ordem do feed de Shorts. latest e newest são equivalentes. |
| Resposta | ||
| data | object | The normalized Shorts page, or null when the channel was not found. |
| data.nextCursor | string | Opaque cursor for the next Shorts page, or null when no next page is available. |
| data.shorts | object[] | Short-form videos returned by the provider's dedicated YouTube Shorts endpoint. Populated whenever the provider has data for the entity. |
| data.shorts[].contentType | "short" | Explicit normalized provenance that this item came from a dedicated Shorts feed. |
| data.shorts[].createdUtc | number | UTC epoch timestamp in seconds when supplied by the upstream response. |
| data.shorts[].duration | string | Published duration when supplied by the upstream response. |
| data.shorts[].id | string | Unique YouTube video identifier. 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 | Public like count, or null when the serving source does not report it. |
| data.shorts[].title | string | Public title or caption for the Short. Populated whenever the provider has data for the entity. |
| data.shorts[].url | string | Public YouTube URL for the Short. Populated whenever the provider has data for the entity. |
| data.shorts[].views | integer | Public view count when supplied by the upstream response. |
| data.shorts[].viewsAvailable | boolean | Whether views is backed by a public count in the upstream response. |
| found | boolean | Whether the channel Shorts feed was found. |
| 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 do canal da API para YouTube
O endpoint Shorts do canal da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.channel_shorts. Liste os Shorts de um canal do YouTube por nome de usuário ou ID do canal, com paginação por cursor, visualizações e data e hora de publicação. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. 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, 99,4% das chamadas ao endpoint Shorts do canal da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 5,7 segundos, em 904 chamadas medidas.