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/callAu prix du fournisseur
- 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 onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
type | chaîne | Facultatif | Search for all types of content or only shorts | all |
hashtag | chaîne | Obligatoire | Hashtag to search for | funny |
continuationToken | chaîne | Facultatif | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
- Paramètres de requête
typechaîneFacultatifSearch for all types of content or only shorts
Exemple :
allhashtagchaîneObligatoireHashtag to search for
Exemple :
funnycontinuationTokenchaîneFacultatifContinuation token to get more videos. Get 'continuationToken' from previous response.
Exemple :
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.