Skip to main content
POST
Question

Request contract

  • Method and path: POST /apis/v1/stackexchange-com/questions/question
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/stackexchange-com/questions/question
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
question_id
number
required

question_id

answers_page
number
default:1

Pages above 25 need key: Stack Exchange serves deeper pages only with an application key (access_denied otherwise). Without one the last page reports partial coverage.

Provider reference: minimum 1; maximum 10000; default 1.

answers_pagesize
number
default:30

0 returns the question only.

Provider reference: minimum 0; maximum 100; default 30.

answers_sort
string
default:votes

answers_sort

Provider reference: allowed values ["votes", "activity", "creation"]; default "votes".

key
string

Optional Stack Exchange application key. Raises the per-IP quota from 300 to 10,000 requests per day and unlocks pages above 25, which the API refuses anonymously. Keys are public identifiers, not secrets.

site
string
default:stackoverflow

Stack Exchange site API parameter, e.g. stackoverflow, superuser, math, askubuntu, english, physics. Use sites to list them. Pattern: ^[a-z0-9]+(.[a-z0-9]+)*$.

Provider reference: default "stackoverflow".

url
string

HTTPS question URL on any Stack Exchange site, e.g. https://stackoverflow.com/questions/3940128/..., https://ru.stackoverflow.com/questions/1624500/... or https://math.stackexchange.com/q/11. Answer links of the form /questions/<question_id>//<answer_id> resolve to their question. The site is derived from the host; an explicit site must match it. Question feed URLs (/feeds/question/) are accepted too.

Response

One question identified by question_id + site or by its URL, with its answers (default: by votes) and the accepted answer surfaced separately. Two API calls. Unknown or deleted questions are an error.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.