Reddit comment status (verify) API
Whether up to 25 comments are still live, deleted, removed or gone, with each comment as it reads now.
POST /v1/reddit/comments/verify5 credits per callRefunded on failureimport os, requests
res = requests.post(
"https://api.groundsocial.dev/v1/reddit/comments/verify",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
json={"comments":["1y4iysc/19t52rpfh106d"]},
)
res.raise_for_status()
data = res.json()Response
200 · 5 credits{ "results": [ { "id": "19t52rpfh106d", "post_id": "1y4iysc", "status": "live", "comment": { "kind": "t1", "data": { "id": "19t52rpfh106d", "name": "t1_19t52rpfh106d", "author": "drivingagermanwhip", "author_fullname": null, "body": "nice! I'll check it out", "body_html": "<div class=\"md\"><p>\n nice! I'll check it out\n </p></div>", "parent_id": "t1_19t52m56lkbhg", "link_id": "t3_1y4iysc", "subreddit": "Python", "subreddit_id": "t5_2qh0y", "permalink": "/r/Python/comments/1y4iysc/comment/19t52rpfh106d/", "created_utc": 1795561146, "score": 1, "ups": 1, "downs": 0, "depth": 0, "is_submitter": false, "stickied": false, "distinguished": null, "edited": null, "replies": "" } } } ]}Response fields
200 with a CommentVerify, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
results | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | One result per comment, in the order asked. |
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 | The subreddit, post or user does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Reddit is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.