Videos and channels in one search

YouTube Search API

Use the YouTube Search API to explore a topic before deciding which videos or channels to investigate. Set the language, country, and sort order for your keyword query.

Sort mixed matches into a research list

Read data.result.items[].type before using the item ID. A video row can go on a watchlist, while a channel row can go on a list of publishers to review.

Read two result types in the saved search

The saved NVIDIA response includes a CNBC Television video and a separate NVIDIA channel match. The id on the video row identifies the clip. The id on the channel row identifies the channel itself.

Paging a mixed result list

Keep the same keyword, language, country, and order when continuing. If data.result.hasMore is true, use the returned data.result.next_cursor unchanged when it is nonempty and differs from the current cursor. Each successful page with items uses the current configured rate. Empty pages and failures use no credits.