New comments on a profile’s posts
New comments on a profile’s recent posts, in one list, newest first. Metered.
GET /v1/prism/profile/commentsBeta60 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/profile/comments?platform=tiktok&handle=khaby.lame",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 60 credits{ "platform": "tiktok", "handle": "khaby.lame", "posts_opened": 5, "count": 65, "comments": [ { "platform": "tiktok", "id": "7694335322922044703", "url": "https://www.tiktok.com/@jonaseckard322/video/7694335322922044703", "title": null, "text": "Oh really 😮", "author": "jonaseckard322", "author_name": "Jonas Eckard", "author_id": null, "created_at": "2026-11-27T00:05:54.000Z", "likes": 0, "comments": null, "shares": null, "views": null, "followers": null, "links": [ "https://m.tiktok.com/v/7694335322922044703.html?_d=0&comment_author_id=7583256850733564948&preview_pb=0&share_comment_id…" ], "post": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703" }, { "platform": "tiktok", "id": "7694335322922044703", "url": "https://www.tiktok.com/@abdulmalikchina/video/7694335322922044703", "title": null, "text": "was the ball", "author": "abdulmalikchina", "author_name": "abdulmalik lawal adam", "author_id": null, "created_at": "2026-11-27T00:04:23.000Z", "likes": 0, "comments": null, "shares": null, "views": null, "followers": null, "links": [ "https://m.tiktok.com/v/7694335322922044703.html?_d=0&comment_author_id=7414543662154007557&preview_pb=0&share_comment_id…" ], "post": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703" }, "… 63 more" ], "legs": [ { "key": "tiktok:posts", "platform": "tiktok", "endpoint": "tiktok.user.videos", "status": "ok", "credits": 1, "ms": 993, "error": null }, { "key": "0", "platform": "tiktok", "endpoint": "tiktok.video.comments", "status": "ok", "credits": 1, "ms": 574, "error": null }, "… 4 more" ], "credits_used": 6, "failed": []}Parameters
| Name | Type | Description |
|---|---|---|
urlquery | string | A profile link. |
platformquery | string | With handle: x, tiktok, instagram, youtube, threads, bluesky, truthsocial, gab, reddit, twitch, telegram, pinterest, rumble, weibo, kwai. |
handlequery | string | With platform. |
postsquery | integer | Posts to open (default 5). |
per_postquery | integer | Comment pages per post (1). |
sincequery | string | Only comments on or after this date. |
repliesquery | "true" | "false" | false drops replies where they are marked. One of true, false. |
Status codes
| Status | Meaning |
|---|---|
200 | Comments on the recent posts, newest first. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Nothing was found for that input on any platform. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Prism composites is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How is it charged?
Per platform that answers, at that platform’s own price, up to the ceiling shown. A platform that fails is listed in legs and not charged; if none answers, nothing is.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.