Reddit user overview API
A user’s posts and comments together, as their profile’s overview tab shows them, newest first or by hot, top or controversial.
GET /v1/reddit/users/{name}/overview1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/reddit/users/spez/overview?limit=50",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "Listing", "data": { "after": "t1_oj7ozdp", "before": null, "dist": 50, "modhash": null, "geo_filter": "", "children": [ { "kind": "t1", "data": { "id": "19ruo33ofgh8i", "name": "t1_19ruo33ofgh8i", "author": "spez", "author_fullname": "t2_1w72", "body": "Pretty simple. For people who are already coming to Reddit every week, we have to give them a reason to come back everyd…", "body_html": "<div class=\"md\"><div class=\"text-neutral-content-strong overflow-hidden\">\n <div id=\"-post-rtjson-content\" class=\"md p…", "parent_id": "t3_1xiupuc", "link_id": "t3_1xiupuc", "subreddit": "RDDT", "subreddit_id": null, "permalink": "/r/RDDT/comments/1xiupuc/comment/19ruo33ofgh8i/", "created_utc": 1793313726, "score": -6, "ups": -6, "downs": 0, "depth": 0, "is_submitter": false, "stickied": false, "distinguished": "admin", "edited": null, "replies": "" } }, { "kind": "t1", "data": { "id": "19ruo2bw7d6ps", "name": "t1_19ruo2bw7d6ps", "author": "spez", "author_fullname": "t2_1w72", "body": "At a high level, however people want to communicate on the internet, they should be able to do so on Reddit.\n\nWe’ve cont…", "body_html": "<div class=\"md\"><div class=\"text-neutral-content-strong overflow-hidden\">\n <div id=\"-post-rtjson-content\" class=\"md p…", "parent_id": "t3_1xiupuc", "link_id": "t3_1xiupuc", "subreddit": "RDDT", "subreddit_id": null, "permalink": "/r/RDDT/comments/1xiupuc/comment/19ruo2bw7d6ps/", "created_utc": 1793313697, "score": -8, "ups": -8, "downs": 0, "depth": 0, "is_submitter": false, "stickied": false, "distinguished": "admin", "edited": null, "replies": "" } }, "… 48 more" ] }}Parameters
| Name | Type | Description |
|---|---|---|
namepath · required | string | Username, with or without "u/". Example: spez. |
sortquery | "new" | "hot" | "top" | "controversial" | Order: new (default), hot, top or controversial. One of new, hot, top, controversial. |
tquery | "hour" | "day" | "week" | "month" | "year" | "all" | Time window for top and controversial. Default all. One of hour, day, week, month, year, all. |
limitquery | integer | Items per page, 1 to 100. Default 25. |
afterquery | string | Cursor: the previous page's data.after. Omit for the first page. |
Response fields
200 with a OverviewListing, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
kind | "Listing" | |
data | object |
Status codes
| Status | Meaning |
|---|---|
200 | Posts and comments. |
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.