InsightSocial
GET /v1/stackoverflow/questions/batchbeta

Stack Overflow Questions Batch API

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

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

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

Parameters

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

NameRequiredDescription
idsYesQuestion ids, comma-separated, 1 to 100, e.g. 11227809,927358. Duplicates are dropped.
siteNoStack Exchange site, by its API name (askubuntu, serverfault, math, ru.stackoverflow). Default: stackoverflow. The sites endpoint lists them all.
includeNoExtra parts to return with each question: answers, comments, or both, comma-separated. Default: neither. With either, a request takes at most 10 ids.

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 Questions Batch API reference.

How much does the Stack Overflow Questions 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 Questions Batch API: frequently asked questions

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