Reddit user search API
Accounts whose names match a query, each with its id, total karma, avatar and bio.
GET /v1/reddit/search/users1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/reddit/search/users?q=gallowboob",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "Listing", "data": { "after": null, "before": null, "dist": 9, "modhash": null, "geo_filter": "", "children": [ { "kind": "t2", "data": { "id": "iqsg6", "name": "GallowBoob", "created_utc": null, "link_karma": null, "comment_karma": null, "total_karma": 36838256, "is_employee": null, "verified": null, "icon_img": "https://styles.redditmedia.com/t5_3kl0d/styles/profileIcon_c4zmya3oel6h1.png", "public_description": "The internet was a mistake 🌍 Always remember the human." } }, { "kind": "t2", "data": { "id": "r12p5", "name": "GallowboobsAlt", "created_utc": null, "link_karma": null, "comment_karma": null, "total_karma": 1, "is_employee": null, "verified": null, "icon_img": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png", "public_description": null } }, "… 7 more" ] }}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Search query. Example: spez. |
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 SearchAccountListing, in Reddit’s own Things and Listings.
| Field | Type | Description |
|---|---|---|
kind | "Listing" | |
data | object |
Status codes
| Status | Meaning |
|---|---|
200 | Matching users. |
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.