API para YouTube: Posts da comunidade do canal
Liste os posts da comunidade de um canal do YouTube por nome de usuário ou ID do canal, com paginação por cursor (texto, curtidas, imagem, data de publicação).
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"posts": [
{
"channelHandle": "alex_rivera",
"channelId": "a1b2c3d4",
"channelTitle": "Example title",
"content": "A short example description of this item.",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"images": [
"https://example.com/image.jpg"
],
"likeCount": 12500,
"publishedTime": "2024-01-15T09:30:00Z",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubeChannelCommunityPostsResponse {
data: {
nextCursor: string | null;
posts: {
channelHandle?: string;
channelId?: string;
channelTitle?: string;
content: string;
createdUtc?: number;
id: string;
image: string;
images?: string[];
likeCount: number;
publishedTime: string;
url: string;
}[];
} | 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_community_posts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"@MrBeast"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| channelId | string | ID do canal do YouTube. |
| cursor | string | Token de continuação de uma resposta anterior, para paginação. |
| handle | string | "@MrBeast"Nome de usuário do canal do YouTube. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue. |
| data.posts | object[] | Populated whenever the provider has data for the entity. |
| data.posts[].channelHandle | string | The publishing channel's @handle, without the leading @. |
| data.posts[].channelId | string | YouTube channel ID of the channel that published the post. |
| data.posts[].channelTitle | string | Display name of the channel that published the post. |
| data.posts[].content | string | Populated whenever the provider has data for the entity. |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.posts[].id | string | Populated whenever the provider has data for the entity. |
| data.posts[].image | string | |
| data.posts[].images | string[] | URLs of every image attached to the post. |
| data.posts[].likeCount | integer | |
| data.posts[].publishedTime | string | Populated whenever the provider has data for the entity. |
| data.posts[].url | string | Populated whenever the provider has data for the entity. |
| 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 Posts da comunidade do canal da API para YouTube
O endpoint Posts da comunidade do canal da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.channel_community_posts. Liste os posts da comunidade de um canal do YouTube por nome de usuário ou ID do canal, com paginação por cursor (texto, curtidas, imagem, data 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, 100,0% das chamadas ao endpoint Posts da comunidade do canal da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,9 segundos, em 1 chamadas medidas.