curl --request POST \
--url https://api.aisa.one/apis/v1/stackexchange-com/questions/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "reverse list"
}
'import requests
url = "https://api.aisa.one/apis/v1/stackexchange-com/questions/search"
payload = { "q": "reverse list" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: 'reverse list'})
};
fetch('https://api.aisa.one/apis/v1/stackexchange-com/questions/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/stackexchange-com/questions/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'reverse list'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/stackexchange-com/questions/search"
payload := strings.NewReader("{\n \"q\": \"reverse list\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/stackexchange-com/questions/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"reverse list\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/stackexchange-com/questions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"reverse list\"\n}"
response = http.request(request)
puts response.read_body{
"count": 2,
"has_more": true,
"observed_at_ms": 1789840389358,
"page": 1,
"query": {
"accepted": null,
"body": null,
"closed": null,
"fromdate": null,
"max": null,
"min": null,
"min_answers": null,
"nottagged": null,
"order": "desc",
"pagesize": 2,
"q": "reverse list",
"sort": "activity",
"tagged": null,
"title": null,
"todate": null
},
"questions": [
{
"accepted_answer_id": 80004021,
"answer_count": 1,
"body_html": null,
"body_markdown": null,
"closed_at_ms": null,
"closed_reason": null,
"comment_count": 2,
"content_license": null,
"created_at_ms": 1789720220000,
"is_answered": true,
"last_activity_at_ms": 1789735907000,
"last_edit_at_ms": null,
"owner": {
"display_name": "Matteo",
"link": "https://stackoverflow.com/users/17040989/matteo",
"reputation": 803,
"user_id": 17040989,
"user_type": "registered"
},
"question_id": 80003992,
"score": 0,
"site": "stackoverflow",
"source_url": "https://stackoverflow.com/questions/80003992/gt-rowname-col-show-only-one-entry-vertically-centered",
"tags": [
"r",
"gt",
"r-rownames"
],
"title": "gt rowname_col show only one entry vertically centered",
"view_count": 87
},
{
"accepted_answer_id": 64402911,
"answer_count": 2,
"body_html": null,
"body_markdown": null,
"closed_at_ms": null,
"closed_reason": null,
"comment_count": 1,
"content_license": null,
"created_at_ms": 1602887875000,
"is_answered": true,
"last_activity_at_ms": 1789679494000,
"last_edit_at_ms": 1789679494000,
"owner": {
"display_name": "iDev",
"link": "https://stackoverflow.com/users/1030542/idev",
"reputation": 2493,
"user_id": 1030542,
"user_type": "registered"
},
"question_id": 64397278,
"score": 13,
"site": "stackoverflow",
"source_url": "https://stackoverflow.com/questions/64397278/understanding-git-rev-list",
"tags": [
"git",
"git-rev-list"
],
"title": "Understanding git rev-list",
"view_count": 32586
}
],
"quota": {
"backoff_seconds": null,
"max": 300,
"remaining": 299
},
"site": "stackoverflow",
"source_url": "https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&sort=activity&order=desc&page=1&pagesize=2&q=reverse+list&filter=%217ry9ouLWcQWrdWSzrv7eT0TX0kxJ.zt0R1",
"source_urls": [
"https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&sort=activity&order=desc&page=1&pagesize=2&q=reverse+list&filter=%217ry9ouLWcQWrdWSzrv7eT0TX0kxJ.zt0R1"
],
"terms": [
{
"count": 2,
"has_more": true,
"q": "reverse list",
"total": 17747
}
],
"total": 17747
}Search
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.
curl --request POST \
--url https://api.aisa.one/apis/v1/stackexchange-com/questions/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "reverse list"
}
'import requests
url = "https://api.aisa.one/apis/v1/stackexchange-com/questions/search"
payload = { "q": "reverse list" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: 'reverse list'})
};
fetch('https://api.aisa.one/apis/v1/stackexchange-com/questions/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/stackexchange-com/questions/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => 'reverse list'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/stackexchange-com/questions/search"
payload := strings.NewReader("{\n \"q\": \"reverse list\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/stackexchange-com/questions/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"reverse list\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/stackexchange-com/questions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"reverse list\"\n}"
response = http.request(request)
puts response.read_body{
"count": 2,
"has_more": true,
"observed_at_ms": 1789840389358,
"page": 1,
"query": {
"accepted": null,
"body": null,
"closed": null,
"fromdate": null,
"max": null,
"min": null,
"min_answers": null,
"nottagged": null,
"order": "desc",
"pagesize": 2,
"q": "reverse list",
"sort": "activity",
"tagged": null,
"title": null,
"todate": null
},
"questions": [
{
"accepted_answer_id": 80004021,
"answer_count": 1,
"body_html": null,
"body_markdown": null,
"closed_at_ms": null,
"closed_reason": null,
"comment_count": 2,
"content_license": null,
"created_at_ms": 1789720220000,
"is_answered": true,
"last_activity_at_ms": 1789735907000,
"last_edit_at_ms": null,
"owner": {
"display_name": "Matteo",
"link": "https://stackoverflow.com/users/17040989/matteo",
"reputation": 803,
"user_id": 17040989,
"user_type": "registered"
},
"question_id": 80003992,
"score": 0,
"site": "stackoverflow",
"source_url": "https://stackoverflow.com/questions/80003992/gt-rowname-col-show-only-one-entry-vertically-centered",
"tags": [
"r",
"gt",
"r-rownames"
],
"title": "gt rowname_col show only one entry vertically centered",
"view_count": 87
},
{
"accepted_answer_id": 64402911,
"answer_count": 2,
"body_html": null,
"body_markdown": null,
"closed_at_ms": null,
"closed_reason": null,
"comment_count": 1,
"content_license": null,
"created_at_ms": 1602887875000,
"is_answered": true,
"last_activity_at_ms": 1789679494000,
"last_edit_at_ms": 1789679494000,
"owner": {
"display_name": "iDev",
"link": "https://stackoverflow.com/users/1030542/idev",
"reputation": 2493,
"user_id": 1030542,
"user_type": "registered"
},
"question_id": 64397278,
"score": 13,
"site": "stackoverflow",
"source_url": "https://stackoverflow.com/questions/64397278/understanding-git-rev-list",
"tags": [
"git",
"git-rev-list"
],
"title": "Understanding git rev-list",
"view_count": 32586
}
],
"quota": {
"backoff_seconds": null,
"max": 300,
"remaining": 299
},
"site": "stackoverflow",
"source_url": "https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&sort=activity&order=desc&page=1&pagesize=2&q=reverse+list&filter=%217ry9ouLWcQWrdWSzrv7eT0TX0kxJ.zt0R1",
"source_urls": [
"https://api.stackexchange.com/2.3/search/advanced?site=stackoverflow&sort=activity&order=desc&page=1&pagesize=2&q=reverse+list&filter=%217ry9ouLWcQWrdWSzrv7eT0TX0kxJ.zt0R1"
],
"terms": [
{
"count": 2,
"has_more": true,
"q": "reverse list",
"total": 17747
}
],
"total": 17747
}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
{
"operationId": "stackexchange-com.questions.search",
"method": "POST",
"path": "/apis/v1/stackexchange-com/questions/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"include_body": false,
"pagesize": 2,
"q": "reverse list",
"sort": "activity"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"body": {}
},
"required": [
"body"
]
},
{
"properties": {
"q": {}
},
"required": [
"q"
]
},
{
"properties": {
"tagged": {}
},
"required": [
"tagged"
]
},
{
"properties": {
"title": {}
},
"required": [
"title"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"accepted": {
"description": "true: only questions with an accepted answer; false: only without.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"body": {
"description": "Text that must appear in the body.",
"type": "string"
},
"closed": {
"description": "closed",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"fromdate": {
"description": "Lower bound on the question's creation time, inclusive: Unix seconds, `YYYY-MM-DD` or an RFC 3339 date-time (UTC).",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"include_body": {
"description": "true adds body_html/body_markdown to every question; off by default because bodies dominate the response size.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"key": {
"description": "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.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"max": {
"description": "Upper bound on the sort field: score for `sort: votes`, Unix seconds for `activity` or `creation`. Not accepted with `relevance`.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"min": {
"description": "Lower bound on the sort field: score for `sort: votes`, Unix seconds for `activity` or `creation`. Not accepted with `relevance`.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"min_answers": {
"description": "min_answers\n\nProvider reference: minimum 0; maximum 1000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 0
}
},
"nottagged": {
"description": "None of these tags may be present.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"order": {
"default": "desc",
"description": "order\n\nProvider reference: allowed values [\"desc\", \"asc\"]; default \"desc\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"desc",
"asc"
]
}
},
"page": {
"default": 1,
"description": "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.\n\nProvider reference: minimum 1; maximum 10000; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10000,
"min": 1
}
},
"pagesize": {
"default": 10,
"description": "pagesize\n\nProvider reference: minimum 1; maximum 100; default 10.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"q": {
"description": "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.",
"type": "string"
},
"site": {
"default": "stackoverflow",
"description": "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]+)*$.\n\nProvider reference: default \"stackoverflow\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"sort": {
"description": "Defaults to `relevance`, or to `creation` when `fromdate` or `todate` is given so a date window reads as a timeline.\n\nProvider reference: allowed values [\"relevance\", \"votes\", \"activity\", \"creation\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"relevance",
"votes",
"activity",
"creation"
]
}
},
"tagged": {
"description": "Every tag must be present on the question.",
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"description": "Text that must appear in the title.",
"type": "string"
},
"todate": {
"description": "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.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "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.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
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
Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
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.
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.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
has_more | boolean | |
observed_at_ms | number | |
page | number | |
query | object | |
questions | object[] | |
quota | object | |
site | string | |
source_url | string | |
source_urls | string[] | One API request URL per searched term, in terms order; source_url is the first. |
terms | object[] | One entry per searched term (a single entry with q: null when the search had no free-text term), in input order. |
total | number | Questions matching across all pages; null when several terms were searched (see terms). |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.