Accounts matching q (Reddit matches loosely): id, username, avatar, short bio, total karma, cake day and the 18+ profile flag. Reddit returns at most about 20–25 accounts per search, usually in one page; refine q to reach others. with_details=true adds the /user/details fields (karma split, display name, Premium, social links, active communities; not the posts) to each account, at most 10 per page. Billed 1 request per page, +3 per account detailed.
HTTP Request
GET /user/search
Cost (in requests): 1 per page; +3 per account detailed. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | Username or keyword. |
page_token | string | No | - | Opaque page token from a previous response’s next_page_token. Omit for the first page. |
per_page | integer | No | 25 | Results per page, 1–25 (default 25). One page is billed 1 request. |
with_details | boolean | No | false | Adds the /user/details fields (karma split, display name, Reddit Premium, follow setting, social links, active communities; not the posts) to each account; per_page then defaults to 10 and can be at most 10: display_name, post_karma, comment_karma, accepts_followers, is_premium, social_links, active_subreddits, state, snoovatar_url, accepts_chats (left out without it). Billed +3 per account detailed. |
Response
Real response to GET /user/search?q=spez (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Search page. |
data.results | array of objects | Matching accounts. |
data.results[].username | string | Username. |
data.results[].user_id | string | Account id (t2_…). |
data.results[].avatar_url | string | Avatar URL. |
data.results[].bio | string | Short bio when shown. |
data.results[].total_karma | integer | Total karma. |
data.results[].created_at | string | ISO-8601 UTC account creation (cake day; Reddit gives only the date, reported as midnight UTC). |
data.results[].is_nsfw | boolean | Profile marked 18+. |
data.has_next_page | boolean | More results available. |
data.next_page_token | string / null | Token for the next page; null at the end. |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, suspended, deleted. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
200 with status: false | Bad page token | error.code is invalid_page_token: pass next_page_token from the previous answer unchanged |
Code Examples
| |
| |
| |
Related Endpoints
- User Details : Reddit account profile by username or id
- User Activity : Posts and comments of a Reddit account (one timeline or each list)