A YouTube comments API with no Data API key or quota
Pass SocialHolmes a YouTube video id and it returns the video's public top-level comments as JSON. You do not create a Google Cloud project or a YouTube Data API key, and there is no Data API quota on your side to manage. You pay $0.50 per 1,000 comments.
What you get
Every row comes back as structured JSON. These are the fields on a row, taken from the endpoint's recorded example response in the reference. Every field we collect is in the row itself, including the extra fields the platform sends, so a live row can carry more than the recorded example.
YouTube comments — one comment per row
id text published_text published_at published_at_estimated is_reply is_pinned is_hearted_by_creator hearted_by like_count_text like_count like_count_approximate reply_count author
YouTube video — one post per row
id url type title description keywords category duration duration_seconds published_at published_at_estimated uploaded_at view_count like_count is_live_content is_unlisted is_family_safe caption_languages captions embed_url author
What changes compared with the Data API?
The official route for comments needs a Google Cloud project, an enabled API and a key, and its usage is metered in quota units that you manage. With SocialHolmes you take one API key from us, send a video id, and read rows. The key you hold is ours, not a Google one, so there is nothing of Google's to provision, rotate or hit a daily ceiling on.
That is the whole difference this page claims. The official API is the right route if you need something it offers that this does not, such as posting or moderating comments on channels you own; SocialHolmes reads public data only.
Does it return replies to comments?
No. The comments endpoint returns top-level comments only, the ones posted directly under the video. Replies inside a comment's thread are not included. Each comment row does carry a reply count, so you can see which comments started a conversation.
If replies matter to your project, the official Data API is the route for them today. For most summaries, sentiment checks and question mining, the top-level comments are where the volume is.
What does a comment row look like?
Like and reply counts come back as text, such as the abbreviated form shown on the page, in like_count_text and reply_count_text, and the posting time as published_text, a relative phrase. Plan for parsing them if you need numbers.
The video endpoint returns the video's own details, including title, description, view count and author, so you can pair a set of comments with the video it belongs to. The videos endpoint lists a channel's uploads if you want to collect comments across several videos.
What do people use it for?
Creators and agencies read comments to find recurring questions and objections. Researchers collect comments for sentiment or argument analysis. Brands check what viewers say under a sponsored video.
No code is needed. Through the MCP server an assistant can fetch the rows and summarise them, or you can start a run from the dashboard and download the comments as CSV or JSON.
Example request
The video_id is the id in the watch URL. limit is how many comments you want and the most the run can bill.
The call returns a run id straight away; poll GET /api/public/v1/runs/:id until it succeeds, then read the rows from GET /api/public/v1/runs/:id/results. Reading results again does not cost anything more.
curl -X POST https://api.socialholmes.com/api/public/v1/scrape/youtube/comments \
-H "Authorization: Bearer $SOCIALHOLMES_KEY" \
-H "Content-Type: application/json" \
-d '{"parameters": {"video_id": "dQw4w9WgXcQ"}, "limit": 25}'
import os
import requests
run = requests.post(
"https://api.socialholmes.com/api/public/v1/scrape/youtube/comments",
headers={"Authorization": f"Bearer {os.environ['SOCIALHOLMES_KEY']}"},
json={"parameters": {"video_id": "dQw4w9WgXcQ"}, "limit": 25},
).json()
print(run["id"], run["status"])
const response = await fetch("https://api.socialholmes.com/api/public/v1/scrape/youtube/comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHOLMES_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ parameters: { video_id: "dQw4w9WgXcQ" }, limit: 25 }),
})
const run = await response.json()
console.log(run.id, run.status)
require "net/http"
require "json"
response = Net::HTTP.post(
URI("https://api.socialholmes.com/api/public/v1/scrape/youtube/comments"),
{ parameters: { video_id: "dQw4w9WgXcQ" }, limit: 25 }.to_json,
"Authorization" => "Bearer #{ENV.fetch('SOCIALHOLMES_KEY')}",
"Content-Type" => "application/json"
)
run = JSON.parse(response.body)
puts run["id"], run["status"]
<?php
$ch = curl_init("https://api.socialholmes.com/api/public/v1/scrape/youtube/comments");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SOCIALHOLMES_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["parameters" => ["video_id" => "dQw4w9WgXcQ"], "limit" => 25]),
]);
$run = json_decode(curl_exec($ch), true);
echo $run["id"], " ", $run["status"];
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"parameters": map[string]string{"video_id": "dQw4w9WgXcQ"},
"limit": 25,
})
req, _ := http.NewRequest("POST", "https://api.socialholmes.com/api/public/v1/scrape/youtube/comments", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("SOCIALHOLMES_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
var run map[string]any
json.NewDecoder(res.Body).Decode(&run)
fmt.Println(run["id"], run["status"])
}
Use it from an AI assistant over MCP
The same account and API key work as an MCP server at https://api.socialholmes.com/mcp, over HTTP with no package to install. In Claude Code:
claude mcp add --transport http socialholmes https://api.socialholmes.com/mcp \
--header "Authorization: Bearer sh_<your key>"
Cursor, Codex and Claude Desktop connect the same way; the MCP setup guide has the config for each. Then ask in plain language:
Collect the top 200 comments on this YouTube video and summarise the main arguments people make, with a few example comments for each.
Pricing
$0.50 per 1,000 results, billed per row delivered. There is no subscription, and a run that returns nothing costs nothing. See the full pricing.
Questions people ask
Do I need a YouTube Data API key?
Are replies to comments included?
Why are like counts text rather than numbers?
Can I post, delete or moderate comments?
How is it billed?
Can an AI assistant use it?
Reference and related pages
Try it on your own targets
Get an API key, run a small limit first, and pay only for the rows you get back.