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/callAt provider cost
- 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=funnyPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
type | string | Optional | Search for all types of content or only shorts | all |
hashtag | string | Required | Hashtag to search for | funny |
continuationToken | string | Optional | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
- Query parameters
typestringOptionalSearch for all types of content or only shorts
Example:
allhashtagstringRequiredHashtag to search for
Example:
funnycontinuationTokenstringOptionalContinuation token to get more videos. Get 'continuationToken' from previous response.
Example:
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.