Comment scraping API
Paste a post or video link and get every public comment, page after page, with replies. Or call each platform’s comments endpoint directly.
- Endpoints
- 8
- Failed calls
- Refunded
- Free credits
- 100, no card
- Access
- REST · MCP
Get every comment on a post
Endpoint details →import os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ&max=5",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json(){ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "platform": "youtube", "endpoint": "youtube.video.comments", "pages": 1, "count": 3, "comments": [ { "platform": "youtube", "id": "UgyyEqaBXOKgoi4cf7l4AaABAg", "url": "https://www.youtube.com/watch?v=UgyyEqaBXOKgoi4cf7l4AaABAg", "title": null, "text": "Ok let’s be honest here\nRick rolling is the one meme that will never die", "author": "@JetpackGamer456", "author_name": "@JetpackGamer456", "author_id": "UCNRtoaGfHCLksAz2ofEAfgA", "created_at": "2019-11-26T12:00:00.000Z", "likes": 429000, "comments": null, "shares": null, "views": null, "followers": null, "links": [ "https://www.youtube.com/@JetpackGamer456" ] }, { "platform": "youtube", "id": "Ugw10bSluCDSZMIxUSB4AaABAg", "url": "https://www.youtube.com/watch?v=Ugw10bSluCDSZMIxUSB4AaABAg", "title": null, "text": "Let’s put the meme aside, this is actually a banging song.", "author": "@LK-ht7qz", "author_name": "@LK-ht7qz", "author_id": "UCHpvHTRSILoOFKWX5oFCYDA", "created_at": "2020-11-25T12:00:00.000Z", "likes": 223000, "comments": null, "shares": null, "views": null, "followers": null, "links": [ "https://www.youtube.com/@LK-ht7qz" ] }, "… 1 more" ], "legs": [ { "key": "youtube.video.comments:1", "platform": "youtube", "endpoint": "youtube.video.comments", "status": "ok", "credits": 1, "ms": 0, "error": null } ], "credits_used": 1, "failed": []}A comment scraping API returns the public comments under a post or video as structured data: text, author handle, likes, time and replies. Groundsocial takes a link from any supported platform and pages through its comments, or you call the platform’s own comments endpoint at its own price.
What you can build
All comments from one link
A TikTok, YouTube, Instagram, Reddit or Facebook link in, every comment out, page after page. Metered per page read.
Comments on many posts at once
Up to 25 post links in one request, each with its comments.
Mine the comments
Pull comments, then find the questions, objections and buying intent in them. Audience questions does it across Reddit, YouTube, Hacker News and Stack Overflow for a topic.
Platform by platform
Each platform’s comments endpoint, with its own cursor and response shape, from 1 credit per page.
youtube.video.commentstiktok.video.commentsinstagram.post.comments
The endpoints
Credits per call, refunded when a call fails. Calls marked “up to” are metered: only the reads that answer are charged.
| Endpoint | Source | Price |
|---|---|---|
Get every comment on a post/v1/prism/comments | Cross-platform | up to 50 cr |
Comments of many posts at once/v1/prism/post-comments | Cross-platform | up to 250 cr |
YouTube comments API/v1/youtube/videos/{id}/comments | YouTube | 1 cr |
TikTok comments API/v1/tiktok/videos/{id}/comments | TikTok | 1 cr |
Instagram comments API/v1/instagram/posts/{shortcode}/comments | 2 cr | |
Reddit thread and comments API/v1/reddit/posts/{id} | 1 cr | |
Facebook post comments API/v1/facebook/posts/comments | 2 cr | |
The questions your audience asks/v1/prism/audience-questions | Cross-platform | up to 30 cr |
Questions
Connect an agent to the MCP server and every endpoint here is a tool it can call.
Do I get replies too?
Yes. Reddit threads come with their whole comment tree; on YouTube, TikTok, Instagram and Facebook the reply endpoints page through a comment’s replies, and prism.comments can include them.
How much does it cost to get all comments?
Each page of comments is one read at the platform’s price (1 credit on YouTube and TikTok, 2 on Instagram). prism.comments is metered per page and stops at the cap you set with max.
Can I store commenter names?
Use comments in aggregate: themes, questions, wording. Don’t build lists of the people who wrote them. See our compliance notes in the docs.
Related use cases
Social listening API
Search public conversations on Reddit, TikTok, YouTube, Bluesky, Hacker News and more with one key: keyword search, trends and sentiment, in each platform’s own JSON.
Market research API
Validate demand from public data: the questions people ask, pain points in forums and reviews, and search velocity, across Reddit, YouTube, Amazon, app stores and more.
Social lead generation API
Find public posts and comments where people ask for a tool, look for alternatives to a competitor or say they are switching, on Reddit, Hacker News, Bluesky and more.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.