PlainRows

YouTube Search API: Videos, Views & Channels as JSON

YouTube Search API and MCP tool: search results as JSON for any keyword: video title, URL, views, channel, duration, upload date and position. Date, length, Shorts and live filters. No API key, no quota. Pay per video plus a small start fee; only-new-videos mode adds a fee per 20 results checked.

Try it on Apify   Actor status

Typical uses

Pricing

Pay per use, no subscription, no monthly fee. The price depends on your Apify plan. Apify's free plan includes $5 of usage every month.

You pay perFree planStarterScaleBusiness
Video
One YouTube video from the search results, with title, URL, views, upload date, duration, channel and badges. Queries with no result, channels, playlists, repeated videos and videos removed by your filters are free.
$0.002$0.0015$0.0012$0.001
Page checked (only new results)
Only with onlyNewVideos: one block of 20 YouTube results checked for new results, charged even when nothing new is found (it pays the data source). Normal runs never pay it.
$0.0025$0.002$0.002$0.002
Actor Start
Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event).
$0.003$0.003$0.003$0.003

Run it from your code

Get an API token in the Apify Console (Settings → Integrations), then:

curl -X POST \
  "https://api.apify.com/v2/acts/plainrows~youtube-search-api/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "searchQueries": [
    "how to make sourdough bread"
  ],
  "maxResultsPerQuery": 20,
  "country": "US"
}'
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("plainrows/youtube-search-api").call(run_input={'searchQueries': ['how to make sourdough bread'],
 'maxResultsPerQuery': 20,
 'country': 'US'})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)

Use it in automations and AI agents

Full documentation, input options and output fields: https://apify.com/plainrows/youtube-search-api