# YouTube API

> Videos, comments and transcripts.

Canonical page: https://okdata.online/apis/youtube/

10 endpoints, $0.002 to $0.004 per call. Region: Global. No YouTube login or cookies needed.

| Endpoint | ID | Returns | Price |
|---|---|---|---|
| [YouTube 動画検索](https://okdata.online/apis/youtube/videos/search/) | `youtube.videos.search` | Post[] | $0.004 per call · about 20 videos per page |
| [YouTube 動画詳細](https://okdata.online/apis/youtube/videos/get/) | `youtube.videos.get` | Post | $0.002 per call |
| [YouTube 動画のコメント](https://okdata.online/apis/youtube/videos/comments/list/) | `youtube.videos.comments.list` | Comment[] | $0.002 per call · about 20 comments per page |
| [YouTube 動画の文字起こし](https://okdata.online/apis/youtube/videos/transcript/get/) | `youtube.videos.transcript.get` | Transcript | $0.004 per call |
| [YouTube コメントへの返信](https://okdata.online/apis/youtube/comments/replies/list/) | `youtube.comments.replies.list` | Comment[] | $0.002 per call · about 10 comments per page |
| [YouTube チャンネルの投稿](https://okdata.online/apis/youtube/channels/posts/list/) | `youtube.channels.posts.list` | Post[] | $0.002 per call · about 10 posts per page |
| [YouTube 投稿詳細](https://okdata.online/apis/youtube/posts/get/) | `youtube.posts.get` | Post | $0.002 per call |
| [YouTube チャンネルプロフィール](https://okdata.online/apis/youtube/channels/get/) | `youtube.channels.get` | Account | $0.002 per call |
| [YouTube チャンネル検索](https://okdata.online/apis/youtube/channels/search/) | `youtube.channels.search` | Account[] | $0.004 per call · about 20 accounts per page |
| [YouTube チャンネルの動画](https://okdata.online/apis/youtube/channels/videos/list/) | `youtube.channels.videos.list` | Post[] | $0.002 per call · about 30 videos per page |

## Good for

- コンテンツリサーチ: `youtube.videos.search`, `youtube.videos.transcript.get`, `youtube.channels.posts.list`, `youtube.posts.get`, `youtube.channels.videos.list`
- 競合モニタリング: `youtube.videos.get`, `youtube.channels.posts.list`, `youtube.posts.get`, `youtube.channels.get`, `youtube.channels.search`, `youtube.channels.videos.list`
- 口コミ: `youtube.videos.comments.list`, `youtube.comments.replies.list`
- 文字起こし: `youtube.videos.transcript.get`
- クリエイター発掘: `youtube.channels.get`, `youtube.channels.search`

## At a glance

10 YouTube endpoints covering videos, comments, channels and posts, from $0.002 a call. No YouTube account or cookie needed.

Categories: [SNS](https://okdata.online/categories/social/)

- **Endpoints**: 10 endpoints. In 4 groups, one response format.
- **Lowest price**: From $0.002. A call, paid from a prepaid balance.
- **Freshness**: Live. Read from the platform when you call.
- **Monthly fee**: $0. No subscription or minimum spend.

- [Start free](https://okdata.online/console/)
- Try one: [YouTube 動画検索](https://okdata.online/apis/youtube/videos/search/)
- YouTube in Claude, Cursor and other agents: [YouTube MCP](https://okdata.online/mcp/youtube/)

## Endpoints by group

### Videos (4)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [YouTube 動画検索](https://okdata.online/apis/youtube/videos/search/) | `GET /v1/youtube/videos/search` | Post[] | $0.004 per call |
| [YouTube 動画詳細](https://okdata.online/apis/youtube/videos/get/) | `GET /v1/youtube/videos/get` | Post | $0.002 per call |
| [YouTube 動画のコメント](https://okdata.online/apis/youtube/videos/comments/list/) | `GET /v1/youtube/videos/comments/list` | Comment[] | $0.002 per call |
| [動画の文字起こし](https://okdata.online/apis/youtube/videos/transcript/get/) | `GET /v1/youtube/videos/transcript/get` | Transcript | $0.004 per call |

### Comments (1)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [コメントへの返信](https://okdata.online/apis/youtube/comments/replies/list/) | `GET /v1/youtube/comments/replies/list` | Comment[] | $0.002 per call |

### Channels (4)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [チャンネルの投稿](https://okdata.online/apis/youtube/channels/posts/list/) | `GET /v1/youtube/channels/posts/list` | Post[] | $0.002 per call |
| [チャンネルプロフィール](https://okdata.online/apis/youtube/channels/get/) | `GET /v1/youtube/channels/get` | Account | $0.002 per call |
| [YouTube チャンネル検索](https://okdata.online/apis/youtube/channels/search/) | `GET /v1/youtube/channels/search` | Account[] | $0.004 per call |
| [チャンネルの動画](https://okdata.online/apis/youtube/channels/videos/list/) | `GET /v1/youtube/channels/videos/list` | Post[] | $0.002 per call |

### Posts (1)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [YouTube 投稿詳細](https://okdata.online/apis/youtube/posts/get/) | `GET /v1/youtube/posts/get` | Post | $0.002 per call |

- [YouTube API pricing](https://okdata.online/pricing/youtube/)
- [YouTube in your AI (MCP)](https://okdata.online/mcp/youtube/)
- [Live status](https://okdata.online/status/)

## What people do with YouTube data

- [競合モニタリング](https://okdata.online/solutions/competitor-monitoring/): “What did our competitors post this week, and what took off?” [YouTube 動画詳細](https://okdata.online/apis/youtube/videos/get/) $0.002, [チャンネルの投稿](https://okdata.online/apis/youtube/channels/posts/list/) $0.002, [YouTube 投稿詳細](https://okdata.online/apis/youtube/posts/get/) $0.002
- [コンテンツリサーチ](https://okdata.online/solutions/content-research/): “What do the top posts on this topic have in common?” [YouTube 動画検索](https://okdata.online/apis/youtube/videos/search/) $0.004, [動画の文字起こし](https://okdata.online/apis/youtube/videos/transcript/get/) $0.004, [チャンネルの投稿](https://okdata.online/apis/youtube/channels/posts/list/) $0.002
- [口コミ](https://okdata.online/solutions/word-of-mouth/): “What do buyers complain about most?” [YouTube 動画のコメント](https://okdata.online/apis/youtube/videos/comments/list/) $0.002, [コメントへの返信](https://okdata.online/apis/youtube/comments/replies/list/) $0.002
- [クリエイター発掘](https://okdata.online/solutions/creator-discovery/): “Who are the mid-size creators in camping gear?” [チャンネルプロフィール](https://okdata.online/apis/youtube/channels/get/) $0.002, [YouTube チャンネル検索](https://okdata.online/apis/youtube/channels/search/) $0.004
- [文字起こし](https://okdata.online/solutions/transcripts/): “Which products did this channel recommend?” [動画の文字起こし](https://okdata.online/apis/youtube/videos/transcript/get/) $0.004

## Start in three steps

1. Get a key: [open the console](https://okdata.online/console/). A new key comes with $0.20 to try, no card.
2. Connect your AI with this sentence (swap in your key), or call the API yourself:

   > Set up okdata for me by following https://okdata.online/agents.md. Here is my okdata API key: okd_…. Keep it safe and use it for all okdata calls.

3. Make the first call (YouTube 動画検索). Items arrive in data.items, the next page in page.next_cursor, the charge in meta.billing.amount.

```bash
curl -G "https://api.okdata.online/v1/youtube/videos/search" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'query=claude code tutorial'
```

## Questions about the YouTube API

### What does the YouTube API cost?

Each of the 10 endpoints has its own price, from $0.002 to $0.004 a call; the cheapest is YouTube チャンネルプロフィール at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.

### Do I need a YouTube account or cookie?

No. You call https://api.okdata.online with one okdata key and get public YouTube data back; you never use your own YouTube account, cookie or QR login.

### How fresh is the data?

A request reads YouTube when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours).

### Can my AI agent use the YouTube API?

Yes. Connect the MCP server at https://api.okdata.online/mcp: its find tool lists these 10 endpoints with their prices, and its call tool runs them on your key.

### Can I try it for free?

New accounts get $0.20 of trial credit with no card: enough for 100 calls to YouTube チャンネルプロフィール.

## More about YouTube

- [How to export YouTube comments for every video on a topic](https://okdata.online/guides/youtube-comments-export/)
- [How to get YouTube video transcripts from a keyword search](https://okdata.online/guides/youtube-video-transcript/)
- [Is there a YouTube search API without the 100-searches-a-day limit, and can it search inside one channel?](https://okdata.online/answers/youtube-video-search-api/)
- [How do I search YouTube channels by keyword and get their subscriber counts with an API?](https://okdata.online/answers/youtube-channel-search-api/)
- [How do I get a YouTube channel's subscriber count and stats through an API?](https://okdata.online/answers/youtube-channel-subscriber-count-api/)
- [How do I let Claude read and summarize a YouTube video?](https://okdata.online/answers/summarize-youtube-video-claude/)
- [How do I track clip views on TikTok, YouTube Shorts, Instagram Reels and X to pay clippers per 1,000 views?](https://okdata.online/answers/clipper-payout-view-tracking/)
- [How do I download transcripts for hundreds of YouTube videos at once?](https://okdata.online/answers/bulk-youtube-transcripts/)
- [Official platform APIs vs third-party data APIs (2026)](https://okdata.online/compare/official-apis-vs-data-apis/)
- [How to choose a social media data API (2026)](https://okdata.online/compare/social-media-data-apis/)
- [コメント API](https://okdata.online/roles/posts-comments-list/)
- [コメント返信 API](https://okdata.online/roles/comments-replies-list/)
- [投稿詳細 API](https://okdata.online/roles/posts-get/)
- [投稿検索 API](https://okdata.online/roles/posts-search/)

## Other platforms

[TikTok API](https://okdata.online/apis/tiktok/) · [Instagram API](https://okdata.online/apis/instagram/) · [X（Twitter） API](https://okdata.online/apis/x/) · [Reddit API](https://okdata.online/apis/reddit/) · [Amazon API](https://okdata.online/apis/amazon/) · [AliExpress API](https://okdata.online/apis/aliexpress/) · [Meta 広告ライブラリ API](https://okdata.online/apis/meta/) · [Google API](https://okdata.online/apis/google/) · [Telegram API](https://okdata.online/apis/telegram/) · [Facebook API](https://okdata.online/apis/facebook/) · [LinkedIn API](https://okdata.online/apis/linkedin/) · [Threads API](https://okdata.online/apis/threads/) · [Lemon8 API](https://okdata.online/apis/lemon8/) · [Pinterest API](https://okdata.online/apis/pinterest/) · [Bluesky API](https://okdata.online/apis/bluesky/) · [App Store API](https://okdata.online/apis/app_store/) · [Apple Podcasts API](https://okdata.online/apis/apple_podcasts/) · [Twitch API](https://okdata.online/apis/twitch/) · [IMDb API](https://okdata.online/apis/imdb/) · [Xiaohongshu（RedNote） API](https://okdata.online/apis/xiaohongshu/) · [Douyin API](https://okdata.online/apis/douyin/) · [WeChat 公式アカウント API](https://okdata.online/apis/wechat_mp/) · [WeChat Channels API](https://okdata.online/apis/wechat_channels/) · [WeChat 検索 API](https://okdata.online/apis/wechat/) · [Weibo API](https://okdata.online/apis/weibo/) · [Bilibili API](https://okdata.online/apis/bilibili/) · [Kuaishou API](https://okdata.online/apis/kuaishou/) · [Zhihu API](https://okdata.online/apis/zhihu/) · [Douyin Shop API](https://okdata.online/apis/douyin_shop/) · [Taobao & Tmall API](https://okdata.online/apis/taobao/) · [1688 API](https://okdata.online/apis/alibaba_1688/) · [Xianyu（Goofish） API](https://okdata.online/apis/xianyu/) · [JD.com API](https://okdata.online/apis/jd/) · [Douban Movie API](https://okdata.online/apis/douban/) · [Youku API](https://okdata.online/apis/youku/) · [Xiaoyuzhou (小宇宙) API](https://okdata.online/apis/xiaoyuzhou/) · [Toutiao API](https://okdata.online/apis/toutiao/) · [Xigua Video API](https://okdata.online/apis/xigua/) · [Baidu API](https://okdata.online/apis/baidu/) · [全プラットフォーム API](https://okdata.online/apis/all/)
