> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 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`.

## 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](https://aisa.one/docs/openapi/stackexchange-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "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.


## OpenAPI

````yaml openapi/stackexchange-com.json POST /apis/v1/stackexchange-com/questions/search
openapi: 3.1.0
info:
  description: ''
  title: Stack Exchange
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    stackexchange-com:
      description: ''
      title: Stack Exchange
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 5bc97b6e49cd2980b95f225d7763c2c1917cc4efdfd41fb9e7e3dfd2260a12e8
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/stackexchange-com/questions/accepted-answers
    - /apis/v1/stackexchange-com/questions/answer
    - /apis/v1/stackexchange-com/questions/answers
    - /apis/v1/stackexchange-com/questions/question
    - /apis/v1/stackexchange-com/questions/revisions
    - /apis/v1/stackexchange-com/questions/search
    - /apis/v1/stackexchange-com/questions/sites
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5f7ff3362d41bef80c277294811263969f47b5bd6b614be4b40139c0088eeef2
    facts_hash: 5bc97b6e49cd2980b95f225d7763c2c1917cc4efdfd41fb9e7e3dfd2260a12e8
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: stackexchange-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/stackexchange-com/questions/search:
    post:
      tags:
        - Stack Exchange
      summary: Search
      description: >-
        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`.
      operationId: stackexchange-com.questions.search
      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

                    Provider 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


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


                    Provider reference: minimum 1; maximum 10000; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 10000
                    min: 1
                pagesize:
                  default: 10
                  description: |-
                    pagesize

                    Provider 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]+)*$.


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


                    Provider 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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-19.
                  summary: Official provider example
                  value:
                    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
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.