Skip to content

YouTube APIfor AI agents

One API for YouTube data. Get videos, transcripts, comments and channels as JSON.

Start for free

The YouTube videos your agent needs.

YouTube Search returns videos, channels, playlists and Shorts for a query. Control it by type, duration, upload date and features.

terminal
curl -X POST "https://api.stophy.dev/v1/youtube/search" \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"duration": "over20Minutes",
"query": "rust tutorial",
"uploadDate": "thisYear"
}'

How agents use it.

  • Summarize what videos say

    The agent calls youtubeSearch with a topic, then youtubeTranscript with each videoId. It gives the text to a model and gets one summary of several videos.

  • Audit a channel

    The agent calls youtubeChannel with tab set to videos and sort set to popular. It then calls youtubeVideo with each videoId to read the likes, the tags and the chapters.

  • Read how viewers react

    The agent calls youtubeChannelSearch to find a channel's videos on one topic. It then calls youtubeComments on each video and reads the comments with the most likes.

Start free. Pay per call after.

No plans and no monthly fee. 1,000 free credits to start, then $1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500. Credits never expire.

Free

Every account starts with free credits. No card needed.

1,000 free credits

$0

Start for free
  • ✓Every source

Pay as you go

Add credits to your balance and spend them one call at a time.

$1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500

$0.0015/ credit

10,000 credits≈ $13.50

Most calls cost 1 credit.

Get an API key
  • ✓Never expires

Custom

For teams that need higher rate limits or a source we do not cover yet.

Volume pricing

Custom

Talk to us
  • ✓Custom rate limits
  • ✓New sources on request
  • ✓Direct support

Questions and answers.

Get started

Give your agent the web today.

Sign up for 1,000 free credits. No card needed.