Reddit post visibility (shadow removal) check API
Whether a post is still publicly visible: it reads the post and its author’s public post list, and answers live, not_visible or undecidable with a reason.
GET /v1/reddit/posts/{id}/visibility2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/reddit/posts/1y1u285/visibility",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "post_id": "1y1u285", "author": "tylerthe-theatre", "verdict": "live", "reason": "The post is in its author's public post list.", "confident": true, "removed": false, "removal_marker": null}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A post id (1y1u285), fullname (t3_1y1u285) or post URL. Example: 1y1u285. |
Response fields
200 with a Visibility, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
post_id | string | |
verdict | "live" | "not_visible" | "undecidable" | |
reason | string | |
confident | boolean | |
removed | boolean | |
removal_marker | "[removed]" | "[deleted]" | null | |
author | string | null |
Status codes
| Status | Meaning |
|---|---|
200 | The verdict. |
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
Questions
Does it say who removed a post?
No. A moderator, an admin, a spam filter and an author hiding their posts look the same from outside; removed is true only when Reddit marks the post removed or deleted.
Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.