PeumeAPI

Social media data · YouTube

YouTube video search for a query — views, channels

Search YouTube videos by keyword and get titles, channels, view counts and links

$0.023 per lookup, only when foundUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/youtube-video-search-for-a-query-views-channels \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "engine": "youtube",
    "search_query": "coffee",
    "gl": "us",
    "hl": "en"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: youtube-video-search-for-a-query-views-channels.

Parameters

engineRequiredstring

Example: youtube

search_queryRequiredstring

THE QUERY PARAM IS `search_query`, NOT `q` — sending `q` to this engine returns nothing

Example: coffee

glstring

country code, e.g. us

Example: us

hlstring

interface language code, e.g. en

Example: en

spstring

YouTube's encoded filter/pagination token — carries sort order, upload date and result-type filters

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.