Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: building a search request
export function buildSearchRequest(query, nextPageToken, amount = 12, ) {
return buildApiRequest('GET',
'/youtube/v3/search',
{
part: 'id,snippet',
q: query,
type: 'video',
pageToken: nextPageToken,
maxResults: amount,
}, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.