100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
qquery · requiredstringSearch query. Example: spez.
limitqueryintegerItems per page, 1 to 100. Default 25.
afterquerystringCursor: the previous page's data.after. Omit for the first page.
Response fields

200 with a SearchAccountListing, in Reddit’s own Things and Listings.

FieldTypeDescription
kind"Listing"
dataobject
Status codes
StatusMeaning
200Matching users.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The subreddit, post or user does not exist.
429Too many requests. Wait for Retry-After seconds.
503Reddit 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.