InsightSocial API
Stack Overflow

Stack Overflow Questions Search API reference

Your first 10 calls are free, no card needed. Pricing and FAQ

Get a free API key
Example request
curl "https://api.insightsocial.app/v1/stackoverflow/questions/search" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
GET
/v1/stackoverflow/questions/search

Search Stack Overflow questions and answers by words, title, body, tag, author or answer count, with snippets.

Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.

20 credits per call.

Paginates by cursor: see Pagination.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

site?string

Stack Exchange site, by its API name (askubuntu, serverfault, math, ru.stackoverflow). Default: stackoverflow. The sites endpoint lists them all.

q?string

Free text to find in titles, bodies and tags.

title?string

Text that must be in the title.

body?string

Text that must be in the question body.

tagged?array<string>

Only questions that carry all of these tags, comma-separated, up to 5.

not_tagged?array<string>

Leave out questions that carry any of these tags, comma-separated, up to 5.

user?integer

Only questions asked by this user id.

Range-1 <= value <= 2147483647
accepted?boolean

true for questions with an accepted answer, false for those without.

closed?boolean

true for closed questions, false for open ones.

answers_min?integer

Only questions with at least this many answers.

Range0 <= value <= 1000000000
views_min?integer

Only questions with at least this many views.

Range0 <= value <= 1000000000
created_after?string

Only questions asked at or after this time, as an ISO 8601 date or time (such as 2026-01-31) or epoch seconds. A time with no zone is UTC.

created_before?string

Only questions asked before this time, as an ISO 8601 date or time (such as 2026-01-31) or epoch seconds. A time with no zone is UTC.

sort?string

Order: relevance (default), creation (the only one that pages without a ceiling), activity or votes. Ties can repeat or skip rows.

Value in

  • "relevance"
  • "creation"
  • "activity"
  • "votes"
order?string

Direction of the sort: desc (default) or asc.

Value in

  • "desc"
  • "asc"
mode?string

full (default) returns questions. excerpt returns the questions and answers that match, each with a highlighted snippet.

Value in

  • "full"
  • "excerpt"
include?array<string>

body adds the question text (HTML and Markdown) to each row in full mode. Default: none.

limit?integer

Up to this many rows per page, 1 to 100. Default: 30. A page can hold fewer than limit rows where rows share a creation second or a block of 100 rows ends.

Range1 <= value <= 100
cursor?string

Pass pagination.next_cursor from the previous response to get the next page. Keep the other parameters the same.

dry_run?"1"

Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.

Value in

  • "1"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.insightsocial.app/v1/stackoverflow/questions/search"
{  "success": true,  "platform": "string",  "endpoint": "string",  "schema_version": "2",  "pagination": {    "next_cursor": "string",    "has_more": true,    "page_size": 0,    "stopped_at": "since"  },  "unavailable": [    "string"  ],  "credits_used": 0,  "credits_remaining": 0,  "request_id": "string",  "cached": true,  "idempotent_replay": true,  "charge_reason": "string",  "free_call": true,  "data": {    "property1": null,    "property2": null  }}