YouTube Scraper
Search YouTube by Hashtag
Searches YouTube for content matching a specific hashtag and returns matching videos with title, URL, thumbnail, view count (views), publish date, duration, and channel info. Supports pagination via continuationToken and filtering to return all content types or only shorts.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| hashtagstring · required | string | required | Hashtag to search for |
| typestring · optional | string | optional | Search for all types of content or only shorts One of: |
| limitnumber · optional | number | optional | Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more; use the returned cursor for the next batch. The price is the same either way. |
| continuationTokenstring · optional | string | optional | Continuation token to get more videos. Get 'continuationToken' from previous response. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"videos": {
"type": "array"
},
"limitApplied": {
"type": "boolean",
"description": "True when a Limit trimmed the results; there were more in this response."
},
"continuationToken": {
"type": "string"
}
},
"additionalProperties": true
}