morigraph Start free

Data APIs · YouTube

YouTube data APIs for AI agents

morigraph has 19 YouTube data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including search, video, channel and channel community posts. You need no YouTube developer account or API key, only one morigraph connection. Calls cost from 0.004 credits, about $0.40 for 1,000 calls, paid from one balance.

APIs
19
Price
0.004 to 0.039 credits a call
Call it from
MCP, command line and HTTP API
Needs
One morigraph connection. No YouTube account or API key

Three ways to call it

Every data API is run by one tool, data_api, with the API's id and its arguments. The example is YouTube Search.

In your assistant (MCP). Connect once, then ask in plain words

claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp

Use morigraph's YouTube Search data API with {"query":"how to cook rice"} and summarise what comes back.

From a terminal or script (CLI)

npx @morigraph/cli@latest login
morigraph call data_api --json-args '{"api":"youtube.search","input":{"query":"how to cook rice"}}'

From your own code (HTTP API)

curl https://api.morigraph.com/v1/tools/data_api \
  -H "Authorization: Bearer $MORIGRAPH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"youtube.search","input":{"query":"how to cook rice"}}'

19 YouTube data APIs

APIIdPrice
YouTube Searchyoutube.search0.004 credits a call
YouTube Videoyoutube.video0.009 credits a call
YouTube Channelyoutube.channel0.005 credits a call
YouTube Channel Community Postsyoutube.channel_community_posts0.024 credits a call
YouTube Channel Live Streamsyoutube.channel_lives0.024 credits a call
YouTube Channel Playlistsyoutube.channel_playlists0.024 credits a call
YouTube Channel Public Emailyoutube.channel_public_email0.024 credits a call
YouTube Channel Shortsyoutube.channel_shorts0.019 credits a call
YouTube Channel Videosyoutube.channel_videos0.012 credits a call
YouTube Comment Repliesyoutube.comment_replies0.024 credits a call
YouTube Community Postyoutube.community_post0.024 credits a call
YouTube Hashtag Searchyoutube.search_hashtag0.024 credits a call
YouTube Playlistyoutube.playlist0.024 credits a call
YouTube Shorts Searchyoutube.search_shorts0.023 credits a call
YouTube Trending Shortsyoutube.trending_shorts0.024 credits a call
YouTube Video Commentsyoutube.video_comments0.012 credits a call
YouTube Video Sponsorsyoutube.video_sponsors0.024 credits a call
YouTube Video Transcriptyoutube.video_transcript0.014 credits a call
YouTube Video Transcript (Provenance)youtube.video_transcript_full0.039 credits a call

YouTube Video

youtube.video0.009 credits a call (about $0.90 for 1,000), at most 0.064

Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.

ArgumentTypeRequiredWhat it is
idstringnoYouTube video ID. A Short uses the same ID as any other video.
urlstringnoFull YouTube video URL. Shorts (youtube.com/shorts/...), youtu.be, live, and embed URLs all work.

Returns authorAvatarUrl authorId authorUrl category channel comments createdUtc description durationMs id image keywords likes title views

The call

data_api({"api":"youtube.video","input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}})

YouTube Channel

youtube.channel0.005 credits a call (about $0.50 for 1,000), at most 0.024

Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID (UC...). Pass it directly when you have it: some sources accept only the ID and otherwise look up the handle first, which adds a step.
handlestringnoYouTube channel handle.

Returns avatarUrl channelId description handle links subscribers title url videos views

The call

data_api({"api":"youtube.channel","input":{"handle":"@mkbhd"}})

YouTube Channel Community Posts

youtube.channel_community_posts0.024 credits a call (about $2.40 for 1,000), at most 0.064

List a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time).

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID.
cursorstringnoContinuation token from a previous response for pagination.
handlestringnoYouTube channel handle.

Returns channelHandle channelId channelTitle content id image images likeCount nextCursor posts publishedTime url

The call

data_api({"api":"youtube.channel_community_posts","input":{"handle":"@MrBeast"}})

YouTube Channel Live Streams

youtube.channel_lives0.024 credits a call (about $2.40 for 1,000), at most 0.064

List a YouTube channel's live and past-live streams by handle or channel ID with cursor pagination (title, views, length, publish time).

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID.
cursorstringnoContinuation token from a previous response for pagination.
handlestringnoYouTube channel handle.

Returns id image lengthText lives nextCursor publishedTime title url

The call

data_api({"api":"youtube.channel_lives","input":{"handle":"@IShowSpeed"}})

YouTube Channel Playlists

youtube.channel_playlists0.024 credits a call (about $2.40 for 1,000)

List a YouTube channel's playlists by handle or channel ID with cursor pagination (title, video count, thumbnail).

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID.
cursorstringnoContinuation token from a previous response for pagination.
handlestringnoYouTube channel handle.

Returns id nextCursor playlistUrl playlists thumbnail title videoCount videoId videoUrl

The call

data_api({"api":"youtube.channel_playlists","input":{"handle":"@veritasium"}})

YouTube Channel Public Email

youtube.channel_public_email0.024 credits a call (about $2.40 for 1,000), at most 0.064

Get the email address a YouTube creator writes in the channel's public description, the text anyone can read on the About tab. It never returns the business email YouTube hides behind the View email address button; youtube.channel_contact reveals that one.

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID (UC...).
handlestringnoYouTube channel handle, with or without the leading @.

Returns email

The call

data_api({"api":"youtube.channel_public_email","input":{"handle":"@mkbhd"}})

YouTube Channel Shorts

youtube.channel_shorts0.019 credits a call (about $1.90 for 1,000), at most 0.064

List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID beginning with UC.
cursorstringnoContinuation token from a previous response.
handlestringnoYouTube channel handle, including or omitting the leading @.
sortlatest | newest | popularnoSort order for the Shorts feed. latest and newest are equivalent.

Returns contentType createdUtc duration id image likes nextCursor shorts title url views viewsAvailable

The call

data_api({"api":"youtube.channel_shorts","input":{"handle":"@zachking","sort":"latest"}})

YouTube Channel Videos

youtube.channel_videos0.012 credits a call (about $1.20 for 1,000), at most 0.064

List the regular videos on a YouTube channel's Videos tab by handle or channel ID, with cursor pagination (title, views, length, publish time). Shorts are not included; use youtube.channel_shorts for them and youtube.channel_lives for live streams.

ArgumentTypeRequiredWhat it is
channelIdstringnoYouTube channel ID.
cursorstringnoContinuation token from a previous response for pagination.
handlestringnoYouTube channel handle.
sortlatest | popularnoSort order.

Returns createdUtc id image lengthText nextCursor publishedTime title url videos views

The call

data_api({"api":"youtube.channel_videos","input":{"handle":"@mkbhd"}})

YouTube Comment Replies

youtube.comment_replies0.024 credits a call (about $2.40 for 1,000)

List replies to a YouTube comment using a continuation token with cursor pagination (text, author, likes, publish time).

ArgumentTypeRequiredWhat it is
continuationTokenstringyesReplies continuation token from the comments endpoint, or the continuationToken from a previous replies response for further pagination.

Returns authorAvatarUrl authorId authorName authorUrl authorVerified comments content id likes nextCursor publishedTime

The call

data_api({"api":"youtube.comment_replies","input":{"continuationToken":"Eg0SC19fZm1EajBaSjFRGAYygwEaUBIaVWd3aXRjRk9fdmtpM0x4LUNfZDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyC19fZm1EajBaSjFRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dpdGNGT192a2kzTHgtQ19kNEFhQUJBZw=="}})

YouTube Community Post

youtube.community_post0.024 credits a call (about $2.40 for 1,000), at most 0.064

Fetch a single YouTube community post by URL (text, images, channel, publish time).

ArgumentTypeRequiredWhat it is
urlstringyesURL of the YouTube community post.

Returns channelHandle channelId channelTitle content id image images likeCount publishedTime

The call

data_api({"api":"youtube.community_post","input":{"url":"https://www.youtube.com/post/Ugkx1LonSRBBUqASv-J8j9_FesxwlMAhT3_e"}})

YouTube Hashtag Search

youtube.search_hashtag0.024 credits a call (about $2.40 for 1,000)

Search YouTube videos by hashtag with cursor pagination (title, channel, views, length, publish time).

ArgumentTypeRequiredWhat it is
cursorstringnoContinuation token from a previous response for pagination.
hashtagstringyesHashtag to search for (without the leading #).
typeallnoContent filter. Only "all" is served: no source we buy returns a Shorts row with the channel and publish time this endpoint requires.

Returns authorAvatarUrl authorHandle authorId channelTitle durationSeconds id image lengthText nextCursor publishedTime title url videos views

The call

data_api({"api":"youtube.search_hashtag","input":{"hashtag":"funny"}})

YouTube Playlist

youtube.playlist0.024 credits a call (about $2.40 for 1,000)

List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals).

ArgumentTypeRequiredWhat it is
cursorstringnoThe nextCursor from the previous page, to get the next page of videos. Send the same playlistId with it.
playlistIdstringyesThe playlist ID: the "list" parameter in a playlist URL (e.g. "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").

Returns authorHandle authorId authorUrl channel id lengthSeconds lengthText nextCursor owner thumbnail title totalVideos url videos

The call

data_api({"api":"youtube.playlist","input":{"playlistId":"PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"}})

YouTube Shorts Search

youtube.search_shorts0.023 credits a call (about $2.30 for 1,000), at most 0.024

Search YouTube Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON.

ArgumentTypeRequiredWhat it is
cursorstringnoContinuation token from a previous response for pagination.
querystringyesThe keyword to search Shorts for.
sortByrelevance | popularnoSort order: "relevance" (default) or "popular" (most-viewed).
uploadDatetoday | this_week | this_month | this_yearnoFilter by upload recency. Omit for any time.

Returns contentType id nextCursor shorts title url viewsAvailable

The call

data_api({"api":"youtube.search_shorts","input":{"query":"cats"}})

YouTube Video Comments

youtube.video_comments0.012 credits a call (about $1.20 for 1,000), at most 0.064

List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).

ArgumentTypeRequiredWhat it is
cursorstringnoContinuation token from a previous response for pagination.
ordertop | newestnoComment order (e.g. top, newest).
urlstringyesFull YouTube video URL. Shorts (youtube.com/shorts/...) and youtu.be URLs also work.

Returns author authorAvatarUrl authorId authorUrl comments id likes nextCursor publishedTime replies repliesContinuationToken text

The call

data_api({"api":"youtube.video_comments","input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}})

YouTube Video Sponsors

youtube.video_sponsors0.024 credits a call (about $2.40 for 1,000)

Detect suspected sponsors and paid promotions in a YouTube video by URL (sponsor names, websites, confidence).

ArgumentTypeRequiredWhat it is
languagestringno2-letter language code for transcript lookup (e.g. en, es, fr).
urlstringyesYouTube video or Short URL.

Returns authorAvatarUrl authorHandle authorId authorName authorUrl confidence detectionStatus isPaidPromotion name suspectedSponsors title url videoId website

The call

data_api({"api":"youtube.video_sponsors","input":{"url":"https://www.youtube.com/watch?v=AVO0ifle-OU"}})

YouTube Video Transcript

youtube.video_transcript0.014 credits a call (about $1.40 for 1,000), at most 0.192

Fetch the transcript/captions of a YouTube video or Short by URL or ID.

ArgumentTypeRequiredWhat it is
idstringnoYouTube video ID. A Short uses the same ID as any other video.
urlstringnoFull YouTube video URL carrying the video id. Shorts (youtube.com/shorts/...), youtu.be, live, and embed URLs all work. A link without the video id, such as https://www.youtube.com/watch?v= or a channel link, is refused as invalid input,…

Returns durationSeconds language segments startSeconds text transcript

The call

data_api({"api":"youtube.video_transcript","input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}})

YouTube Video Transcript (Provenance)

youtube.video_transcript_full0.039 credits a call (about $3.90 for 1,000), at most 0.053

Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.

ArgumentTypeRequiredWhat it is
captionKindmanual | automatic | anynoWhich caption track to accept: "manual" only creator-written captions, "automatic" only YouTube's speech recognition, "any" whichever exists. Default "any".
languagestringnoPreferred caption language code (e.g. "en", "es"). Defaults to English. If the video has no captions in that language, you get the transcript in another language the video has; the `language` field in the result says which. With `caption…
urlstringyesYouTube video or Short URL (e.g. "https://www.youtube.com/watch?v=dQw4w9WgXcQ" or "https://www.youtube.com/shorts/Fir1x9cw2vg").

Returns authorId authorUrl category channel createdUtc description durationSeconds endSeconds image isAutoGenerated keywords language likes segments startSeconds text title transcript url videoId views

The call

data_api({"api":"youtube.video_transcript_full","input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}})

Good to know

When to choose something else

Choose a provider that specialises in YouTube data when you need it at high volume, on a schedule, or as bulk exports: you will get volume pricing and more control. Choose the platform's official API when you need data from your own account. These APIs are for an agent that needs an answer now, alongside other tools on the same balance.

Questions

Do I need a YouTube API key or developer account?

No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 19 APIs on this page.

What does YouTube data cost through morigraph?

Between 0.004 and 0.039 credits a call depending on the API, where a credit is about 10 cents. That is from about $0.40 for 1,000 calls. You pay per call from one balance, with no separate subscription.

Can Claude, ChatGPT or Cursor get YouTube data?

Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call.

Which YouTube data APIs are available?

YouTube Search, YouTube Video, YouTube Channel, YouTube Channel Community Posts, YouTube Channel Live Streams, YouTube Channel Playlists, YouTube Channel Public Email, YouTube Channel Shorts, YouTube Channel Videos and YouTube Comment Replies, and 9 more listed on this page.

Prices and availability read from the production service on . A credit is about 10 cents of tool use; see pricing. Your assistant can quote the exact cost before a paid call.