Search YouTube videos by hashtag
scrapecreators.x.v1-youtube-search-hashtagSearches YouTube for content matching a specific hashtag and returns matching videos with title, URL, thumbnail, view count (views), publish date, duration, and channel info.
- Price
- $0.00188/callPelo preço do provedor
- Success rate
- 100%Last 30 days · 187 calls
- Latency p50
- 1.2 sp95 1.6 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search-hashtag?hashtag=funnyPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
type | string | Opcional | Search for all types of content or only shorts | all |
hashtag | string | Obrigatório | Hashtag to search for | funny |
continuationToken | string | Opcional | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
- Parâmetros de consulta
typestringOpcionalSearch for all types of content or only shorts
Exemplo:
allhashtagstringObrigatórioHashtag to search for
Exemplo:
funnycontinuationTokenstringOpcionalContinuation token to get more videos. Get 'continuationToken' from previous response.
Exemplo:
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search-hashtag?hashtag=funny' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search-hashtag?hashtag=funny",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search-hashtag?hashtag=funny", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.