Python for Beginners - Learn Coding with Python in 1 Hour
Learn Python basics in just 1 hour! Perfect for beginners interested in AI and coding. ⚡ Plus, get 6 months of PyCharm FREE with ...
YouTube search results for a query: videos, channels, or playlists.
Python for Beginners - Learn Coding with Python in 1 Hour
Learn Python basics in just 1 hour! Perfect for beginners interested in AI and coding. ⚡ Plus, get 6 months of PyCharm FREE with ...
Scraping…
Find the videos and channels that rank for a topic on YouTube, and how many views they have.
Record where your videos appear for the searches you care about, and which competitors outrank them.
Collect video ids for a set of queries, then pull each video's details, comments, or transcript.
Official API restricted
Only for your own videos. The YouTube Data API downloads a caption track only when the signed-in user can edit the video.
captions.download needs OAuth and, in YouTube's words, "requires the user to have permission to edit the video"; anyone else gets 403 forbidden. captions.list names a video's tracks but, as its page says, does not contain the captions themselves.
Clair API reads the caption tracks a public video offers to any viewer and returns one as JSON: the uploader's captions when there are any, YouTube's automatic ones otherwise. A video with no captions returns 404; Clair API does not transcribe audio.
Read from these pages on October 27, 2026.
One host, one Bearer key for every Clair API. Each call returns JSON with the same envelope, so a second API is a new path, not a new client.
curl -G "https://api.clair.im/v1/youtube/search?q=python+tutorial+for+beginners" \ -H "Authorization: Bearer YOUR_API_KEY"
One page of YouTube search results, about 20 at a time, in YouTube’s relevance order. type picks videos (the default), channels, playlists, or all, which mixes them as YouTube’s own results page does. next_cursor, sent back as cursor, opens the next page.
One request for the page, through a proxy network that gets past the site's bot checks. No browser. Usually a few seconds; a site that challenges the request takes longer. A request that reaches the time limit returns 504 and is not charged.
GET /v1/youtube/search
Authorizationheader · stringrequired
qstringrequired
typestring
video, channel, playlist, or all. Default video.cursorstring
next_cursor from the previous response. Send it with the same other parameters.Each endpoint is priced per 1,000 items it returns, and a call that returns nothing is free. Pay as you go with credit that never expires, spent across every Clair API; a plan lowers every rate.
Pay as you go. A plan lowers every rate. | |||||
|---|---|---|---|---|---|
Pay as you go $0 no monthly fee $1 of free credit once, no card. Then top up from $5; credit never expires. | |||||
| Posts | |||||
| YouTube Video Details | $2.25 / 1K videos | $1.92 / 1K videos | $1.58 / 1K videos | $1.25 / 1K videos | Custom rate |
| YouTube Channel Videos | $0.07 / 1K videos | $0.06 / 1K videos | $0.05 / 1K videos | $0.04 / 1K videos | Custom rate |
| YouTube Transcripts | $2.70 / 1K transcripts | $2.30 / 1K transcripts | $1.90 / 1K transcripts | $1.50 / 1K transcripts | Custom rate |
| YouTube Comments | $0.11 / 1K comments | $0.09 / 1K comments | $0.08 / 1K comments | $0.06 / 1K comments | Custom rate |
| Search | |||||
| YouTube Video Search | $0.11 / 1K videos | $0.09 / 1K videos | $0.08 / 1K videos | $0.06 / 1K videos | Custom rate |
Pay as you go runs at 5 requests a second (10 a minute on the free credit alone); Starter at 10, Scale at 25, Business at 50. Need more? Email us and we will raise your limit.
Top up from $5; topped-up credit never expires and is spent at your plan's rates. A plan's fee is its monthly credit, spent first and gone at renewal. Calls stop when your credit runs out, so nothing is billed past it.
Anything else? Email contact@serinlabs.com.
One page of YouTube's results, about 20. Send next_cursor back as cursor for the next page.
Yes. type picks videos (the default), channels, playlists, or all, which mixes them as YouTube's results page does.
One page of YouTube search results, about 20 at a time, in YouTube’s relevance order. type picks videos (the default), channels, playlists, or all, which mixes them as YouTube’s own results page does. next_cursor, sent back as cursor, opens the next page. A public video’s title, description, length, views, likes, publish time, category, keywords, and channel with its subscriber count. video_id takes an id or any YouTube link to the video.
All of them: Video Search, Video Details. Each call spends the items it returns at your plan's rate, from the month's plan credit first and then your wallet.
You pay for the data a call returns, not for the call. Each endpoint sells one kind of item (a job, a profile, a review, a results page) at its own price per 1,000. A search that returns 40 jobs is 40 jobs; a lookup is one item. A call that returns nothing is free: not found, an empty search, a malformed request, or a failure on our side. Each response's x-items-billed and x-request-cost-usd headers say what it cost.
Yes. The free tier is $1 of free credit across every Clair API, with no card: about 9,090 YouTube Video Search if it all goes here. It's granted once; after that you pay as you go with credit that never expires.
The API returns 429 until you top up, and nothing is billed past your credit. Topped-up credit never expires, and a plan's monthly credit is spent before it.
Yes. One key and one wallet cover every Clair API, and every call spends from the same credit at your plan's rates. Your first call starts the free tier.
Use cases
Video transcripts, chunked with timestamps, for an index.
Best APIs
The same key covers every endpoint. See the full YouTube API.
APIs teams often combine with the YouTube API.
From real customer requests and an hourly check that calls the API with a known-good request. A request refused for bad parameters, a missing key, or a spent balance is not counted.
Each call fetches the source page while you wait, so expect seconds, not milliseconds. Daily history and incidents are on the status page.