YouTube
YouTube search API
Call the YouTube search API to get title, channel, duration seconds, views and thumbnail, as JSON or markdown. 1 credit per 20 items, at least 1 credit.
POST
Search YouTube videos, channels, playlists and shorts
- Endpoint:
youtube.search - Returns:
datahasresults. - Cost: 1 credit per 20 items, at least 1 credit. Failed calls cost nothing.
- Paging: Yes. Send the
cursorfrom the response to get the next page. See Paging.
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required string length:
1 - 400Available options:
videos, all, channels, playlists, shorts Available options:
all, short, medium, long Available options:
hour, day, week, month, year, all Available options:
relevance, top Maximum array length:
9Available options:
360, live, 4k, hd, subtitles, creativeCommons, vr180, 3d, hdr ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.
Pattern:
^[A-Za-z]{2}$BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.
Pattern:
^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{2,4})?$Required range:
1 <= x <= 100Required string length:
1 - 4096