YouTube Video Comments
https://api.sandbase.ai/v1/api/youtube/web-v2/video-commentsRetrieves top-level comments for a YouTube video specified by video ID. Supports sorting by top or newest, regional localization, and pagination.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 5 optional
Try the model
Playground
[
{
"data": {
"comments": [
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/3s6evpqAiDU9tQR4sC2siJippbH2RWVPnwHgyl4V0th2iuQz0VDQZbUhQBGmsxLYo-mjG6TqZQ=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCBR8-60-B28hp2BmDPdntcQ",
"channel_url": "https://www.youtube.com/@YouTube",
"display_name": "@YouTube",
"is_artist": false,
"is_creator": false,
"is_verified": true
},
"comment_id": "Ugzge340dBgB75hWBm54AaABAg",
"content": "can confirm: he never gave us up",
"creator_thumbnail_url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVxnYtahADfRTVLtuVQ=s88-c-k-c0x00ffffff-no-rj",
"like_count": "32万",
"like_count_a11y": "32万 次赞",
"published_time": "1年前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pnZTM0MGRCZ0I3NWhXQm01NEFhQUJBZw%3D%3D",
"reply_count": "961",
"reply_count_a11y": "961 条回复",
"reply_count_text": "961 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_kDD-FhIbth2qcBbI9VGxR41dJa0kE3kN9iVlGzNgRU_g=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCKrzgYonJnMd0Dk7zQXjYXw",
"channel_url": "https://www.youtube.com/@grustache4569",
"display_name": "@grustache4569",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"content": "I Rick rolled my entire French class because we had to study a city in France and make a quiz about it as well as a presentation, I decided to make a Kahoot quiz because it’s very easy. I put a link in to this saying it’s the kahoot link. The teacher needless to say got very very mad. As well as my classmates asking who rick rolls in 2019",
"creator_thumbnail_url": null,
"like_count": "10万",
"like_count_a11y": "10万 次赞",
"published_time": "6年前(修改过)",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6S1lrc3FlUTVnQTN0MGcwRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pLWWtzcWVRNWdBM3QwZzBGNEFhQUJBZw%3D%3D",
"reply_count": "579",
"reply_count_a11y": "579 条回复",
"reply_count_text": "579 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCdi6tGxvFvTRGe-7dAn7m7w",
"channel_url": "https://www.youtube.com/@bdr8823",
"display_name": "@bdr8823",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgwPwTibxdgqCHZxktd4AaABAg",
"content": "My algebra teacher said that this was a link to the test answers",
"creator_thumbnail_url": null,
"like_count": "6.8万",
"like_count_a11y": "6.8万 次赞",
"published_time": "7年前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3UHdUaWJ4ZGdxQ0haeGt0ZDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dQd1RpYnhkZ3FDSFp4a3RkNEFhQUJBZw%3D%3D",
"reply_count": "609",
"reply_count_a11y": "609 条回复",
"reply_count_text": "609 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ghenbV7T5VMOA3iqp3PThC82exqcu7iVng_iWNx1Ujak72Ti4oZZ_XzSVzIrfk9arP1XrFtnZA=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCWf34D_s8K_m2vwBISIDWtg",
"channel_url": "https://www.youtube.com/@Oatman69",
"display_name": "@Oatman69",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgyEnXfdC-umwvTt8JF4AaABAg",
"content": "Gonna flag this for nudity so I can rick roll the YouTube staff",
"creator_thumbnail_url": null,
"like_count": "56万",
"like_count_a11y": "56万 次赞",
"published_time": "6年前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd5RW5YZmRDLXVtd3ZUdDhKRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3lFblhmZEMtdW13dlR0OEpGNEFhQUJBZw%3D%3D",
"reply_count": "708",
"reply_count_a11y": "708 条回复",
"reply_count_text": "708 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCNLgzvqrGzFi5SEAbVkFchg",
"channel_url": "https://www.youtube.com/@candycake9531",
"display_name": "@candycake9531",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg",
"content": "Is everyone going to ignore the fact that Rick Astley looks like a twelve year old boy but has a uniquely deep voice?",
"creator_thumbnail_url": null,
"like_count": "29万",
"like_count_a11y": "29万 次赞",
"published_time": "6年前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D",
"reply_count": "667",
"reply_count_a11y": "667 条回复",
"reply_count_text": "667 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/WIR2i44tYW9iJMosUc_bakpiGa47cw0pkDrBU7XQTOuVTGtx7JMxeo3d6R8d1VhuADqTxLNe4w=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCHGyoRHd_RdtWLH56O3ugOQ",
"channel_url": "https://www.youtube.com/@Plos-Bros545",
"display_name": "@Plos-Bros545",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugwh4Y8VwARbJByeUeh4AaABAg",
"content": "I just came here to rickroll myself.",
"creator_thumbnail_url": null,
"like_count": "180",
"like_count_a11y": "180 次赞",
"published_time": "3天前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3aDRZOFZ3QVJiSkJ5ZVVlaDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3doNFk4VndBUmJKQnllVWVoNEFhQUJBZw%3D%3D",
"reply_count": "4",
"reply_count_a11y": "4 条回复",
"reply_count_text": "4 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/b9BzhSp1hy1sQHN9Ag1vc9Ykvx--SlN2G1cZbIleSZr4Ecypi4XRSFs3EJ2CpKFKVG3-akntpFc=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UC1NmXyk_lAHN4Efaaiyikfg",
"channel_url": "https://www.youtube.com/@Yundoxcloud27",
"display_name": "@Yundoxcloud27",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgxCxpKgbZ6a9lRi5np4AaABAg",
"content": "Today it's the day, we Rickroll ourselves.",
"creator_thumbnail_url": null,
"like_count": "1911",
"like_count_a11y": "1911 次赞",
"published_time": "5年前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4Q3hwS2diWjZhOWxSaTVucDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3hDeHBLZ2JaNmE5bFJpNW5wNEFhQUJBZw%3D%3D",
"reply_count": "20",
"reply_count_a11y": "20 条回复",
"reply_count_text": "20 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/mnit-bn8T-v7Z3XoOg71uoXPsN0sErvP-fCJzUboX6CfdJTnQjssN1QATams-lV9zMyZoqwI1Q=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCtbyFPryy7J4DR4xh5CRCvA",
"channel_url": "https://www.youtube.com/@ochkalov",
"display_name": "@ochkalov",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgxIOV-sXAchpKX94cB4AaABAg",
"content": "1987 : normal song \r\n2026 : national anthem of the universe",
"creator_thumbnail_url": null,
"like_count": "13万",
"like_count_a11y": "13万 次赞",
"published_time": "6年前(修改过)",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4SU9WLXNYQWNocEtYOTRjQjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3hJT1Ytc1hBY2hwS1g5NGNCNEFhQUJBZw%3D%3D",
"reply_count": "933",
"reply_count_a11y": "933 条回复",
"reply_count_text": "933 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_lKr1GHpGjsx4ZHlFflemVCJcyIe_z_oXnKUwh513q980g=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCbX334ss5gozZUxNLWD-PjA",
"channel_url": "https://www.youtube.com/@derekcarrillo323",
"display_name": "@derekcarrillo323",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgxkJEVKXx7Pdr5jl714AaABAg",
"content": "Anyone in october 2026 , this music is fire",
"creator_thumbnail_url": null,
"like_count": "81",
"like_count_a11y": "81 次赞",
"published_time": "2天前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4a0pFVktYeDdQZHI1amw3MTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3hrSkVWS1h4N1BkcjVqbDcxNEFhQUJBZw%3D%3D",
"reply_count": "17",
"reply_count_a11y": "17 条回复",
"reply_count_text": "17 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/U-R6bbqYCbcKlkAH5Tpn7VHuYaCHW4TPdEmId_pXZvvdLFEmtXt-TAjm_wAKa6i_TO8gJzbhHA=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCNIQaysmPT6w3TFRiqXJ0nw",
"channel_url": "https://www.youtube.com/@encikk444",
"display_name": "@encikk444",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgxPYbA7XtJzYXPPPHV4AaABAg",
"content": "I knew it was a trap, but I clicked the link anyway. It's fire tho",
"creator_thumbnail_url": null,
"like_count": "7266",
"like_count_a11y": "7266 次赞",
"published_time": "2个月前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4UFliQTdYdEp6WVhQUFBIVjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3hQWWJBN1h0SnpZWFBQUEhWNEFhQUJBZw%3D%3D",
"reply_count": "43",
"reply_count_a11y": "43 条回复",
"reply_count_text": "43 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/ytc/AIdro_keh05OEEoNHBwN1maGSGYTcVTcuPz-9Vl1Q6O9FYemDw=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCUztIF1vqHhPGCbO27IRDEg",
"channel_url": "https://www.youtube.com/@GabrielsEpicLifeofGoals",
"display_name": "@GabrielsEpicLifeofGoals",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgyW4kfw4IeIP2SVP6N4AaABAg",
"content": "They should turn off ads so that the rickroll happens by surprise...\n\nWOW! I can't believe it! One billion views!! This is a very special moment for me. God bless you all, and hope there's more billions of views in the future!\n\nOK, guys, I have a confesion: I was just copying what some memes from Reddit and YouTube already said, since it was a good idea. This is not an original comment...",
"creator_thumbnail_url": null,
"like_count": "7.2万",
"like_count_a11y": "7.2万 次赞",
"published_time": "6年前(修改过)",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd5VzRrZnc0SWVJUDJTVlA2TjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3lXNGtmdzRJZUlQMlNWUDZONEFhQUJBZw%3D%3D",
"reply_count": "453",
"reply_count_a11y": "453 条回复",
"reply_count_text": "453 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/JPLtp9Lc94Nk3redwmQvzjPF0RTDyPxYJeob69A4xDBgjpXQTgZDCh-YjAvUD71EmkcyYwB5=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCZtACLEVck0A7ogFgaz5bYg",
"channel_url": "https://www.youtube.com/@dmprod06",
"display_name": "@dmprod06",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugw_ueQKh1eJhMfZF6B4AaABAg",
"content": "They found a new way to Rick Roll in 2026 😭😭😭",
"creator_thumbnail_url": null,
"like_count": "1.6万",
"like_count_a11y": "1.6万 次赞",
"published_time": "2个月前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd3X3VlUUtoMWVKaE1mWkY2QjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dfdWVRS2gxZUpoTWZaRjZCNEFhQUJBZw%3D%3D",
"reply_count": "120",
"reply_count_a11y": "120 条回复",
"reply_count_text": "120 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/Kmm0gWDiO0pTfa2npsdc7GtgVdJRup3bORhyplmSggyMFAJN-DepgPHui7qMBIzewPSK6gsvC54=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCyitPFcdtgGTMixGi1FtQwA",
"channel_url": "https://www.youtube.com/@GrahamGamez70",
"display_name": "@GrahamGamez70",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "UgzUO8p_cbpKToVIQAp4AaABAg",
"content": "The 500K dislikes are the people who got rickrolled LOL",
"creator_thumbnail_url": null,
"like_count": "15",
"like_count_a11y": "15 次赞",
"published_time": "1天前",
"reply_continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6VU84cF9jYnBLVG9WSVFBcDRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pVTzhwX2NicEtUb1ZJUUFwNEFhQUJBZw%3D%3D",
"reply_count": "2",
"reply_count_a11y": "2 条回复",Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- video_id
- string · required
- continuation_token
- string · optional
- country_code
- string · optional
- language_code
- string · optional
- need_format
- boolean · optional
- sort_by
- string (top, newest) · optional
Access
- Provider
- YouTube
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/youtube/web-v2/video-comments
- Authentication
- Bearer API key
API README
YouTube Video Comments API
Access first-level comments for any YouTube video using video_id. Organize results using sort_by and navigate pages with continuation_token.
Use cases
- Analyze audience sentiment and reactions on specific video releases.
- Inspect top or newest viewer discussions for moderation workflows.
- Collect public feedback and reaction counts for engagement reporting.
Request
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"video_id": "dQw4w9WgXcQ"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
video_id | string | Yes | Purpose: Video ID |
sort_by | string | No | Purpose: Comment sorting method |
need_format | boolean | No | Purpose: Whether to return cleaned simplified data |
country_code | string | No | Purpose: Set region code |
language_code | string | No | Purpose: Set language preference for comments |
continuation_token | string | No | Purpose: Pagination token for next page |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"comments": [
{
"comment_id": "Ugzge340dBgB75hWBm54AaABAg",
"content": "can confirm: he never gave us up",
"creator_thumbnail_url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVx…",
"like_count": "32万",
"like_count_a11y": "32万 次赞",
"published_time": "1年前",
"reply_count": "961",
"reply_count_a11y": "961 条回复",
"reply_count_text": "961 条回复",
"author": {
"channel_id": "UCBR8-60-B28hp2BmDPdntcQ",
"channel_url": "https://www.youtube.com/@YouTube",
"display_name": "@YouTube"
}
}
]
}
Notes
- Set
sort_byto eithertopornewestto control comment ordering. - Supply
continuation_tokento load the next page of comments. - Set
need_formatto true to receive cleaned and simplified comment data.
Related APIs
- YouTube Channel Community Posts: Returns community posts from a specific YouTube channel, including text content, polls, votes, and comment counts.
- YouTube Channel Description: Returns YouTube channel details including subscriber counts, video totals, view counts, joined date, and social links.
- YouTube Channel ID from URL: Resolves a YouTube channel URL to its canonical channel ID.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"sort_by": "top",
"video_id": "dQw4w9WgXcQ",
"need_format": true,
"country_code": "US",
"language_code": "zh-CN"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
YouTube Video CommentsThis API YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
YouTube | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the YouTube Video Comments API?
Send a POST request to https://api.sandbase.ai/v1/api/youtube/web-v2/video-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the YouTube Video Comments API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the YouTube Video Comments API accept?
Required: video_id (string). Optional: continuation_token (string), country_code (string), language_code (string), need_format (boolean) and sort_by (one of top, newest). The Parameters table and the Playground on this page list every field.
What does the YouTube Video Comments API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a YouTube developer account or API key?
No. YouTube Video Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for YouTube API access separately.
