Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: building a search request
export function buildSearchRequest(query, nextPageToken, amount = 12, ) {
return buildApiRequest('GET',
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