Skip to main content
POST
Search

Request contract

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

Text that must appear in the body.

accepted
boolean

true: only questions with an accepted answer; false: only without.

closed
boolean

closed

fromdate
number

Lower bound on the question's creation time, inclusive: Unix seconds, YYYY-MM-DD or an RFC 3339 date-time (UTC).

include_body
boolean

true adds body_html/body_markdown to every question; off by default because bodies dominate the response size.

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.

max
number

Upper bound on the sort field: score for sort: votes, Unix seconds for activity or creation. Not accepted with relevance.

min
number

Lower bound on the sort field: score for sort: votes, Unix seconds for activity or creation. Not accepted with relevance.

min_answers
number

min_answers

Provider reference: minimum 0; maximum 1000.

nottagged
string[]

None of these tags may be present.

order
string
default:desc

order

Provider reference: allowed values ["desc", "asc"]; default "desc".

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 100; default 10.

q
string

Free-text query matched against title and body, or up to 5 such terms searched in one call (one upstream request per term; questions is the merged, de-duplicated union and terms reports each term's own count and total). The site's search syntax applies: [tag] matches a tag, quotes match an exact phrase.

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

Defaults to relevance, or to creation when fromdate or todate is given so a date window reads as a timeline.

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

tagged
string[]

Every tag must be present on the question.

title
string

Text that must appear in the title.

todate
number

Upper bound on the question's creation time, inclusive: Unix seconds, YYYY-MM-DD or an RFC 3339 date-time (UTC). A date-only value covers that whole day.

url
string

A pasted site search URL (https://stackoverflow.com/search?q=..., any Stack Exchange host) or tag listing URL (https://superuser.com/questions/tagged/windows+powershell). The site comes from the host, q from the search URL and tagged from the listing path; tab maps to sort (a tag listing defaults to creation, like the site). Not combinable with q or tagged; an explicit site must match the host.

Response

Questions on one Stack Exchange site matching free text (q: one term or up to 5 searched together), tags, or title/body text, optionally inside a creation-date window (fromdate/todate) and score/date bounds (min/max); accepted: true keeps only questions with an accepted answer. Returns question records (bodies only with include_body: true) plus per-term counts, total, has_more and quota; question_id and accepted_answer_id feed question and answer.

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.