All platforms

YouTube API

19 endpoints for public YouTube data, from 1 credit a call. Same response format and field names as every other platform.

curl "https://scrapeio.com/v1/youtube/channel?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel1 credit

YouTube channel: subscribers, total views, video count, description.

ParameterTypeDescription
handlerequiredstringChannel @handle, channel URL, or UC… channel id.
curl "https://scrapeio.com/v1/youtube/channel?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel-videos1 credit

A channel's uploads (videos and Shorts), newest first, with views, likes and comments.

ParameterTypeDescription
handlerequiredstringChannel @handle, channel URL, or UC… channel id.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/channel-videos?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video1 credit

One YouTube video or Short by URL: views, likes, comments, duration, tags.

ParameterTypeDescription
urlrequiredstringYouTube video or Short URL.
curl "https://scrapeio.com/v1/youtube/video?url=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video/comments1 credit

Comments on a YouTube video.

ParameterTypeDescription
urlrequiredstringYouTube video URL.
orderrelevance, timeRanking. Default: relevance.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/video/comments?url=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video/download2 credits

Direct MP4 stream URLs for a video (360p with audio, plus every format).

ParameterTypeDescription
urlrequiredstringYouTube video URL.
curl "https://scrapeio.com/v1/youtube/video/download?url=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/playlist1 credit

A playlist's details and its videos, with views and likes.

ParameterTypeDescription
playlist_idrequiredstringPlaylist id or playlist URL.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/playlist?playlist_id=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel/playlists1 credit

A channel's public playlists.

Send one of: handle, channelId.

ParameterTypeDescription
handlestringChannel handle, e.g. @MrBeast.
channelIdstringChannel id (UC...). Send this or handle.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/channel/playlists?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel/shorts1 credit

A channel's Shorts, newest first, with views and likes.

Send one of: handle, channelId.

ParameterTypeDescription
handlestringChannel handle, e.g. @MrBeast.
channelIdstringChannel id (UC...). Send this or handle.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/channel/shorts?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel/lives1 credit

A channel's past and current live streams.

Send one of: handle, channelId.

ParameterTypeDescription
handlestringChannel handle, e.g. @MrBeast.
channelIdstringChannel id (UC...). Send this or handle.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/channel/lives?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video/comment/replies1 credit

Replies to one YouTube comment.

ParameterTypeDescription
comment_idrequiredstringComment id from the comments endpoint.
cursorstringCursor from the previous page's data.cursor.
curl "https://scrapeio.com/v1/youtube/video/comment/replies?comment_id=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/search/typeahead1 credit

Search suggestions YouTube shows as you type.

ParameterTypeDescription
queryrequiredstringPartial search text.
curl "https://scrapeio.com/v1/youtube/search/typeahead?query=coffee" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/channel/community-posts1 credit

A channel's community posts: text, images, polls, likes and comments.

Send one of: handle, channelId.

ParameterTypeDescription
handlestringChannel handle, e.g. @MrBeast.
channelIdstringChannel id (UC...). Send this or handle.
cursorstringCursor from the previous page's data.cursor.
continuationTokenstringSame as cursor, under ScrapeCreators' name.
curl "https://scrapeio.com/v1/youtube/channel/community-posts?handle=nike" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/community-post1 credit

One community post with its text, images and likes.

ParameterTypeDescription
urlrequiredstringCommunity post URL.
curl "https://scrapeio.com/v1/youtube/community-post?url=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/search/hashtag1 credit

Videos under a YouTube hashtag, with views and length.

ParameterTypeDescription
hashtagrequiredstringHashtag, with or without #.
cursorstringCursor from the previous page's data.cursor.
continuationTokenstringSame as cursor, under ScrapeCreators' name.
curl "https://scrapeio.com/v1/youtube/search/hashtag?hashtag=travel" \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video/sponsors5 credits

Video Sponsors

ParameterTypeDescription
urlrequiredstringYouTube video or short URL
languagestring2 letter language code used for transcript lookup, ie 'en', 'es', 'fr' etc.
curl "https://scrapeio.com/v1/youtube/video/sponsors?url=..." \
  -H "x-api-key: YOUR_KEY"
GET/v1/youtube/video/transcript5 credits

Transcript

ParameterTypeDescription
urlrequiredstringYouTube video or short URL
languagestringLanguage code, ie 'en', 'es', 'fr' or 'en-US'.
original_audiobooleanSet to true to return captions only in the original spoken language identified by YouTube.
cache_max_age1d, 3d, 7d, 14d, 30dIf we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "ca
curl "https://scrapeio.com/v1/youtube/video/transcript?url=..." \
  -H "x-api-key: YOUR_KEY"

Other platforms