Skip to main content
POST
Accepted answers

Request contract

  • Method and path: POST /apis/v1/stackexchange-com/questions/accepted-answers
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/stackexchange-com/questions/accepted-answers
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
tagged
string[]
required

tagged

include_body
boolean

include_body

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.

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.

pagesize
number
default:10

pagesize

Provider reference: minimum 1; maximum 30; default 10.

q
string

q

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".

sort
string
default:votes

sort

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

Response

Accepted answers by topic: the top questions on one site carrying every tag in tagged (optionally narrowed by q), each paired with its accepted answer. One search call plus one batched answers call; has_more + page paginate.

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.