YouTube Hashtag Search API
Videos from youtube.com/hashtag/{name} — nested channel{}, viewCountIsApproximate.
Pass a hashtag (with or without #) and get the videos listed on YouTube's hashtag page as clean JSON. This is the /hashtag/{name} feed — not a search?q= keyword query. A query with spaces (travel blog) is 400 HASHTAG_HAS_SPACES — YouTube hashtag pages are one token; nothing is fetched. Use /v1/youtube/search for a keyword phrase. Titles often omit the #tag (it may live only in the description); association is the hashtag page itself. Envelope field is hashtag (the normalized tag). Each result includes type (video|short|live), id, url, title, nested channel{id,title,handle?,url}, viewCount + viewCountIsApproximate, and durationSeconds when YouTube exposes them. Returns a single window; use limit to size it. No cursor. Billed per returned result (~1 credit each).
Request
- Base URL: https://api.captapi.com
- URL: https://api.captapi.com/v1/youtube/hashtag-search
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
Hashtag with or without the # (min 2 characters). One token — spaces are 400 HASHTAG_HAS_SPACES.
Max items to return (default 20, max 200). Returns a single window; use limit to size it. No cursor. Billed per result.
Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
Response
Success. The data object for this endpoint.
Changes
No recorded changes to this operation across all 3 revisions of this API.