← Back to marketplace

YouTube

Fast JSON API for YouTube - search with every filter, video details, comments and replies, transcripts, related videos, channels with their videos, shorts, live streams, playlists and posts, playlists and hashtags.

media
by Mark826 endpoints100% uptime91ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/channel/details
$0.0010/req

Returns a channel with its title, handle, description, artist biography, subscribers, number of videos, total views, join date, country, verified badge, keywords, avatar, banner, external links, tabs and RSS feed.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
titlestring
handlestring
descriptionstring
artist_biostring
subscriber_countinteger
subscriber_count_textstring
video_countinteger
video_count_textstring
view_countinteger
view_count_textstring
joined_date_textstring
countrystring
is_verifiedboolean
is_family_safeboolean
keywordsarray
avatarstring
bannerstring
linksarray
tabsarray
rss_urlstring
urlstring
GET/v1/channel/playlists
$0.0010/req

Returns the playlists of a channel, each with its id, title, number of videos, last update and thumbnail. 30 a page; pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
itemsarray
next_cursornull
GET/v1/channel/posts
$0.0010/req

Returns the community posts of a channel, each with its id, text, publish time, likes, number of comments, images, attached video and poll choices. About 10 a page; pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
itemsarray
next_cursorstring
GET/v1/channel/search
$0.0010/req

Searches the videos, playlists and posts of one channel, each with the same data as in the /search endpoint. Pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

querystringrequired

Search text (e.g. "live").

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
querystring
itemsarray
next_cursorstring
GET/v1/channel/shorts
$0.0010/req

Returns the shorts of a channel, newest, most viewed or oldest first, each with its id, title, views and thumbnail. About 48 a page; pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

sortstring

Optional sort order: "latest", "popular" or "oldest" (defaults to "latest"). Use the /general/channel-sorts endpoint to list valid values.

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
itemsarray
next_cursorstring
GET/v1/channel/streams
$0.0010/req

Returns the live streams of a channel, current, upcoming and past, newest, most viewed or oldest first, each with the same data as in the /channel/videos endpoint. 30 a page; pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCSJ4gkVC6NrvII8umztf0Ow"), handle (e.g. "@LofiGirl") or channel link. Use the /search endpoint with type "channel" to list valid values.

sortstring

Optional sort order: "latest", "popular" or "oldest" (defaults to "latest"). Use the /general/channel-sorts endpoint to list valid values.

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
itemsarray
next_cursornull
GET/v1/channel/videos
$0.0010/req

Returns the videos of a channel, newest, most viewed or oldest first, each with its id, title, duration, views, upload time and thumbnail. 30 a page; pass "next_cursor" as "cursor" to get the next page.

Request schema

channel_idstringrequired

Channel id (e.g. "UCuAXFkgsw1L7xaCfnd5JJOw"), handle (e.g. "@RickAstleyYT") or channel link. Use the /search endpoint with type "channel" to list valid values.

sortstring

Optional sort order: "latest", "popular" or "oldest" (defaults to "latest"). Use the /general/channel-sorts endpoint to list valid values.

cursorstring

Optional "next_cursor" value of the previous page, to get the next page.

languagestring

Optional language of the texts (defaults to "en"); in another language the counts come as text only. Use the /general/languages endpoint to list valid values.

countrystring

Optional two-letter country code (defaults to "US").

Response schema

channel_idstring
itemsarray
next_cursorstring

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/youtube/v1/channel/details" \
  -d '{"channel_id":"UCuAXFkgsw1L7xaCfnd5JJOw","language":"en","country":"US"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/youtube/v1/channel/details \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for YouTube.

GET /v1/channel/details$0.0010/req
-
GET /v1/channel/playlists$0.0010/req
-
GET /v1/channel/posts$0.0010/req
-
GET /v1/channel/search$0.0010/req
-
GET /v1/channel/shorts$0.0010/req
-
GET /v1/channel/streams$0.0010/req
-
GET /v1/channel/videos$0.0010/req
-
GET /v1/general/channel-sorts$0.0010/req
-
GET /v1/general/comment-sorts$0.0010/req
-
GET /v1/general/durations$0.0010/req
-
GET /v1/general/hashtag$0.0010/req
-
GET /v1/general/languages$0.0010/req
-
GET /v1/general/resolve$0.0010/req
-
GET /v1/general/search-features$0.0010/req
-
GET /v1/general/search-sorts$0.0010/req
-
GET /v1/general/search-types$0.0010/req
-
GET /v1/general/upload-dates$0.0010/req
-
GET /v1/playlist/details$0.0010/req
-
GET /v1/playlist/videos$0.0010/req
-
GET /v1/search$0.0010/req
-
GET /v1/search/suggestions$0.0010/req
-
GET /v1/video/comment-replies$0.0010/req
-
GET /v1/video/comments$0.0010/req
-
GET /v1/video/details$0.0010/req
-
GET /v1/video/related$0.0010/req
-
GET /v1/video/transcript$0.0010/req
-