API para YouTube: Buscar hashtag
Busque vídeos do YouTube por hashtag, com paginação por cursor (título, canal, visualizações, duração, data de publicação).
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"videos": [
{
"authorAvatarUrl": "https://example.com/image.jpg",
"authorHandle": "alex_rivera",
"authorId": "Alex Rivera",
"channelTitle": "Example title",
"createdUtc": 12.5,
"durationSeconds": 13,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"lengthText": "A short example description of this item.",
"publishedTime": "2024-01-15T09:30:00Z",
"title": "Example title",
"url": "https://example.com/page",
"views": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface YoutubeSearchHashtagResponse {
data: {
nextCursor: string | null;
videos: {
authorAvatarUrl?: string;
authorHandle?: string;
authorId?: string;
channelTitle: string;
createdUtc?: number;
durationSeconds?: number;
id: string;
image?: string;
lengthText: string;
publishedTime: string;
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.search_hashtag \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag":"funny"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| hashtag | string | "funny"Hashtag a buscar (sem o # inicial). |
| cursor | string | Token de continuação de uma resposta anterior, para paginação. |
| type | enum | Filtro de conteúdo. Só "all" é atendido: nenhuma fonte que compramos retorna uma linha de Shorts com o canal e a data de publicação que este endpoint exige. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue. |
| data.videos | object[] | Populated whenever the provider has data for the entity. |
| data.videos[].authorAvatarUrl | string | URL of the publishing channel's avatar image. |
| data.videos[].authorHandle | string | The publishing channel's @handle, without the leading @. |
| data.videos[].authorId | string | YouTube channel ID of the publishing channel. |
| data.videos[].channelTitle | string | Populated whenever the provider has data for the entity. |
| data.videos[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.videos[].durationSeconds | integer | Length of the video in seconds. |
| data.videos[].id | string | Populated whenever the provider has data for the entity. |
| data.videos[].image | string | URL of the video thumbnail image, tracking query parameters stripped. |
| data.videos[].lengthText | string | |
| data.videos[].publishedTime | string | Populated whenever the provider has data for the entity. |
| data.videos[].title | string | Populated whenever the provider has data for the entity. |
| data.videos[].url | string | Populated whenever the provider has data for the entity. |
| data.videos[].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 Buscar hashtag da API para YouTube
O endpoint Buscar hashtag da AnyAPI para YouTube retorna dados de YouTube em JSON normalizado com uma chamada POST para /v1/run/youtube.search_hashtag. Busque vídeos do YouTube por hashtag, com paginação por cursor (título, canal, visualizações, duração, data de publicaçã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, 100,0% das chamadas ao endpoint Buscar hashtag da API para YouTube feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,5 segundos, em 16 chamadas medidas.