YouTube search
YouTube search results — videos, Shorts, channels, and playlists in page order, with estimated total, per-result views / age / length / channel, and YouTube's own filters (type, upload date, duration, relevance vs popularity). Content and keyword research for video. Accepts the same query you would type into YouTube.
Credits: 1 (refunded on failure).
Request
- Base URL: https://scrapewhale.dev
- URL: https://scrapewhale.dev/api/v1/social/youtube/search
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Query parameters
Search query.
relevance (default) or popularity. YouTube web search no longer offers upload-date or rating sorts — use upload_date to restrict recency.
Restrict to video, shorts, channel, playlist, or movie.
Uploaded within: today, week, month, or year.
short (< 3 min), medium (3–20 min), or long (> 20 min).
Result pages to fetch (1–5), ~20 items each. Default 1.
Response shape: "json" (structured data only), "markdown" (markdown only), or "both".
Response
Success.
Changes
No recorded changes to this operation across all 1 revision of this API.