Spiral gives your agent every tool with one account. Browse the tools →

ScrapeCreatorsSocial MediaAvailable now

YouTube · Search

scrapecreators/youtube-search

Get public social media posts, profiles and videos with YouTube · Search from ScrapeCreators through one Spiral API key. Searches YouTube by keyword query and returns matching videos, channels, playlists, shorts, shelves, and live streams. Each video result includes title, URL, thumbnail, view count (views), publish date, duration, channel info, and badges. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

Up to $0.0013 per run.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
query requiredtext—

Search query. For stricter title matching, use YouTube's intitle: operator, for example intitle:"Foursquare Swarm". Quoted queries by themselves may still be broadened by YouTube when no fresh exact matches are available.

typeone of
videos, shorts, channels, playlists
—

Type of content to search for

regiontext—

2 letter country code of the country to put the proxy in.

sortByone of
relevance, popular
—

Sort by

durationone of
under_3_min, between_3_and_20_min, over_20_min
—

Duration of the video. Only applies to videos (not shorts).

uploadDateone of
today, this_week, this_month, this_year
—

Upload date

includeExtrastext—

This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. *This will slow down the response slightly.*

continuationTokentext—

Continuation token to get more videos. Get 'continuationToken' from previous response.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/youtube-search",
    "input": {
      "query": "<query>"
    }
  }'

Frequently asked questions

How much does YouTube · Search cost?

Up to $0.0013 per run. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use YouTube · Search through an API?

Send `POST /v1/runs` with `"provider": "scrapecreators"`, `"model": "scrapecreators/youtube-search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with ScrapeCreators to use YouTube · Search?

No. Spiral runs it on its own ScrapeCreators account and charges your Spiral balance.

Can my AI agent use YouTube · Search?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.