InsightSocial
GET /v1/stackoverflow/users/batchbeta

Stack Overflow Users Batch API

Get up to 100 Stack Overflow users in one call, by id.

20–1,260 credits, metered · single call · failed calls free

curl "https://api.insightsocial.app/v1/stackoverflow/users/batch?ids=<ids>" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "stackoverflow",
"endpoint": "/v1/stackoverflow/users/batch",
"schema_version": "2",
"data": {
"<field>": "<value>"
},
"unavailable": [],
"credits_used": "<integer>"
}

Parameters

Query parameters for GET /v1/stackoverflow/users/batch. Send your key in the x-api-key header.

NameRequiredDescription
idsYesUser ids, comma-separated, 1 to 100, e.g. 22656,1144035. Duplicates are dropped. -1 is the Community user.
siteNoStack Exchange site, by its API name (askubuntu, serverfault, math, ru.stackoverflow). Default: stackoverflow. The sites endpoint lists them all.

Response

This endpoint is beta: data holds the platform's own fields under our naming rules (snake_case keys, string ids, ISO times where the platform gives a timestamp) rather than a unified post or profile, and those fields may change.

Every field, error and example is in the Stack Overflow Users Batch API reference.

How much does the Stack Overflow Users Batch API cost?

Metered: 20–1,260 credits a call. The ceiling is reserved when the call starts and you are charged what it actually read.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Know the price first

    Add dry_run=1 and the response quotes the call without making it. Nothing is charged.

  • One balance

    API calls and Chrome extension exports share the same credits, on the free plan too.

Stack Overflow Users Batch API: frequently asked questions

Send GET /v1/stackoverflow/users/batch with the ids parameter and your key in the x-api-key header. Get up to 100 Stack Overflow users in one call, by id.