Search videos — YouTube API
Searches public YouTube videos. YouTube has no public trending chart; sorting by view count within an upload window (order, published) is the closest equivalent, for a query rather than platform-wide.
GET
/v1/youtube/search1 credit per requestExample response200OK
Make the request.
One authenticated GET to /v1/youtube/search. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.
Built for
- Data Analytics
- Market Research
- Platform Integration
const response = await fetch("https://api.konbiniapi.com/v1/youtube/search?query=mrbeast", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
Parameters4
- queryrequiredIn · QueryType · stringSearch query
- orderIn · QueryType · stringSort order: relevance (default), rating, newest, or viewsrelevance | rating | newest | views
- publishedIn · QueryType · stringRestrict results to videos uploaded within this windowhour | today | week | month | year
- cursorIn · QueryType · stringPagination cursor
What you will probably call next.
The YouTube endpoints around this one — the same object at a different depth, or the same kind of read.
Try it on your own data.
Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.