GET /user/batch

User Batch

Look up to 250 Reddit accounts in one request. Reddit Scraper API endpoint /user/batch: parameters, JSON response fields and code examples.

Profile basics for up to 250 usernames or t2_ account ids at once, in the order sent: id, avatar, karma, cake day, 18+ flag, chat setting and state (active, suspended, deleted or not_found; only active accounts have exists: true); keys without an active account are listed in missing_usernames (usernames) or missing_ids (user_ids). with_details=true (at most 10 accounts) adds the /user/details fields except the posts. Billed 1 request per active account found (minimum 1), +3 per account detailed.

HTTP Request

GET /user/batch

Cost (in requests): 1 per account found; +3 per detailed. Every successful answer reports its cost in data.billed_requests.

Parameters

ParameterTypeRequiredDefaultDescription
usernamesstringNo-Usernames, with or without u/, 1–250. Give this or user_ids. Comma-separated, duplicates removed, request order kept in the answer.
user_idsstringNo-Account ids (t2_…), 1–250, instead of usernames; each row echoes its id. Comma-separated, duplicates removed, request order kept in the answer.
with_detailsbooleanNofalseAdds the /user/details fields (karma split, display name, Reddit Premium, follow setting, social links, active communities; not the posts) to each account found; works with at most 10 usernames per request: display_name, post_karma, comment_karma, accepts_followers, is_premium, social_links, active_subreddits, state, bio (left out without it). Billed +3 per account detailed.

Response

Real response to GET /user/batch?usernames=spez,kn0thing (arrays trimmed to 2 items, long texts cut with …).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  "status": true,
  "request_id": "23e2ec93-d172-433c-4c08-3c42b028",
  "data": {
    "requested_count": 2,
    "found_count": 2,
    "missing_usernames": [],
    "billed_requests": 2,
    "items": [
      {
        "username": "spez",
        "exists": true,
        "user_id": "t2_1w72",
        "avatar_url": "https://styles.redditmedia.com/t5_3k30p/styles/profileIcon_uj015iwx9s7g1.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=b2b261254492f347d16d0b11054aa4ad7e312900",
        "snoovatar_url": null,
        "total_karma": 941417,
        "created_at": "2005-06-06T00:00:00.000000+00:00",
        "is_nsfw": false,
        "accepts_chats": false,
        "state": "active"
      },
      {
        "username": "kn0thing",
        "exists": true,
        "user_id": "t2_1wh0",
        "avatar_url": "https://styles.redditmedia.com/t5_3jgyq/styles/profileIcon_snoo58ef3487-7301-4cca-9ad4-44378bc398d0-headshot.png?width=64&height=64&frame=1&auto=webp&crop=64%3A64%2Csmart&s=fb11574b915a0624e8c5405dd742ecc4f0cb6560",
        "snoovatar_url": "https://i.redd.it/snoovatar/avatars/58ef3487-7301-4cca-9ad4-44378bc398d0.png",
        "total_karma": 354067,
        "created_at": "2005-06-06T00:00:00.000000+00:00",
        "is_nsfw": false,
        "accepts_chats": false,
        "state": "active"
      }
    ]
  },
  "request_params": {
    "usernames": "spez,kn0thing"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectBatch result.
data.requested_countintegerUsernames or ids requested after de-duplication.
data.found_countintegerActive accounts found (exists: true); the billing unit.
data.missing_usernamesarrayusernames requests only: requested usernames with no active account (unknown, suspended or deleted: state on the row says which), in request order. Left out with user_ids (see missing_ids).
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
data.itemsarray of objectsOne row per requested username or id, in request order (accounts that are not active are rows with exists: false).
data.items[].usernamestringUsername as requested (usernames); with user_ids, the account’s name (null for a deleted or unknown account).
data.items[].existsbooleanThe account is active (false for unknown, deleted or suspended accounts: state says which).
data.items[].user_idstringAccount id (t2_…); the requested id with user_ids. Kept for a suspended account.
data.items[].avatar_urlstringAvatar URL.
data.items[].snoovatar_urlstring / nullFull-body avatar image the user built (Reddit’s avatar builder); null when the user has none.
data.items[].total_karmaintegerTotal karma.
data.items[].created_atstringISO-8601 UTC account creation (cake day; Reddit exposes the date only, reported as midnight UTC).
data.items[].is_nsfwbooleanProfile marked 18+.
data.items[].accepts_chatsbooleanAccepts chat requests.
data.items[].statestringactive, suspended, deleted or not_found (read from the batch answer). With with_details=true, an active account whose details could not be read in time is null (send the request again).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
200 with status: falseItem not availableerror.code is not_found, suspended, deleted. data is null. Billed 1 request
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/user/batch"

params = {
    "usernames": "spez,kn0thing",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

for item in data["items"]:
    print(item["username"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/user/batch";

const params = new URLSearchParams({
  usernames: "spez,kn0thing",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
data.items.forEach((item) => console.log(item.username));
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/user/batch" \
  --data-urlencode "usernames=spez,kn0thing" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  • User Trophies : Trophy case of a Reddit account
  • User Insights : How a Reddit account behaves: activity, communities, UTC timing, content quality, spam signals
  • User Quality : Score up to 50 Reddit accounts for spam and bot-like behaviour
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI