APIs / Social media / YouTube

1 credit per call15 endpoints

YouTube API

Get YouTube data as structured JSON with one API key: search, channel, channel community and channel playlists. Free credits every month.

YouTube
GET/v1/youtube/search?query=programming+tutorial
curl "https://api.perceptlayer.com/v1/youtube/search?query=programming+tutorial" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/youtube/search?query=programming+tutorial" \
  -H "X-API-Key: $API_KEY"

YouTube · 15 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersCost
GET/v1/youtube/channel
None+2 optionalNeeds terms
1 credit
GET/v1/youtube/channel-community
None+3 optionalNeeds terms
1 credit
GET/v1/youtube/channel-playlists
None+2 optionalNeeds terms
1 credit
GET/v1/youtube/channel-videos
None+7 optionalNeeds terms
1 credit
GET/v1/youtube/chapters
None+2 optionalNeeds terms
1 credit
GET/v1/youtube/comments
video_id+1 optionalNeeds terms
1 credit
GET/v1/youtube/locales
NoneNeeds terms
1 credit
GET/v1/youtube/playlist
playlist_idNeeds terms
1 credit
GET/v1/youtube/related
video_id+1 optionalNeeds terms
1 credit
GET/v1/youtube/search
None+12 optionalNeeds terms
1 credit
GET/v1/youtube/suggestions
query+2 optionalNeeds terms
1 credit
GET/v1/youtube/transcript
None+7 optionalNeeds terms
1 credit
GET/v1/youtube/transcript-by-video-id
videoId+6 optionalNeeds terms
1 credit
GET/v1/youtube/trending
None+4 optionalNeeds terms
1 credit
GET/v1/youtube/video
None+2 optionalNeeds terms
1 credit

Overview

About the YouTube API

What you can get

The YouTube API returns search, channel, channel community and channel playlists as clean JSON. Each successful call costs one credit, and calls that fail are free.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

Monitor mentions of your brand

Use the YouTube API to monitor mentions of your brand

Find and vet creators

Use the YouTube API to find and vet creators

Track trends and engagement over time

Use the YouTube API to track trends and engagement over time

FAQ

Questions

How much does the YouTube API cost?

Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Do I need a separate key for YouTube?

No. One key works for every API in the catalogue.

Try the YouTube API with 1,000 free credits

No credit card. Failed calls are never billed.