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

# Answers

> Answers to one question (by `question_id` + `site` or URL), one page per call, sorted by votes, activity or creation. Each answer carries is_accepted, score, bodies, owner and its canonical URL.

## Request contract

* **Method and path:** POST /apis/v1/stackexchange-com/questions/answers
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/stackexchange-com/questions/answers`

[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.answers",
  "method": "POST",
  "path": "/apis/v1/stackexchange-com/questions/answers",
  "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": {
              "pagesize": 2,
              "question_id": 3940128
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "question_id": {}
                  },
                  "required": [
                    "question_id"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "include_body": {
              "description": "include_body",
              "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"
              }
            },
            "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": 30,
              "description": "pagesize\n\nProvider reference: minimum 1; maximum 100; default 30.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "question_id": {
              "description": "question_id",
              "type": "number"
            },
            "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": {
              "default": "votes",
              "description": "sort\n\nProvider reference: allowed values [\"votes\", \"activity\", \"creation\"]; default \"votes\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "votes",
                  "activity",
                  "creation"
                ]
              }
            },
            "url": {
              "description": "HTTPS question URL on any Stack Exchange site, e.g. https://stackoverflow.com/questions/3940128/... or https://math.stackexchange.com/q/11. The site is derived from 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/answers
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/answers:
    post:
      tags:
        - Stack Exchange
      summary: Answers
      description: >-
        Answers to one question (by `question_id` + `site` or URL), one page per
        call, sorted by votes, activity or creation. Each answer carries
        is_accepted, score, bodies, owner and its canonical URL.
      operationId: stackexchange-com.questions.answers
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  pagesize: 2
                  question_id: 3940128
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        question_id: {}
                      required:
                        - question_id
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                include_body:
                  description: include_body
                  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
                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: 30
                  description: |-
                    pagesize

                    Provider reference: minimum 1; maximum 100; default 30.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                question_id:
                  description: question_id
                  type: number
                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:
                  default: votes
                  description: >-
                    sort


                    Provider reference: allowed values ["votes", "activity",
                    "creation"]; default "votes".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - votes
                      - activity
                      - creation
                url:
                  description: >-
                    HTTPS question URL on any Stack Exchange site, e.g.
                    https://stackoverflow.com/questions/3940128/... or
                    https://math.stackexchange.com/q/11. The site is derived
                    from the host.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T05:04:10.474303+00:00.
                  summary: Official provider example
                  value:
                    answers:
                      - answer_id: 3940144
                        body_html: >
                          <p>To get a <em>new</em> reversed list, apply the <a
                          href="https://docs.python.org/3/library/functions.html#reversed"
                          rel="noreferrer"><code>reversed</code></a> function
                          and collect the items into a <a
                          href="https://docs.python.org/3/library/stdtypes.html#list"
                          rel="noreferrer"><code>list</code></a>:</p>

                          <pre><code>&gt;&gt;&gt; xs = [0, 10, 20, 40]

                          &gt;&gt;&gt; list(reversed(xs))

                          [40, 20, 10, 0]

                          </code></pre>

                          <p>To iterate backwards through a list:</p>

                          <pre><code>&gt;&gt;&gt; xs = [0, 10, 20, 40]

                          &gt;&gt;&gt; for x in reversed(xs):

                          ...     print(x)

                          40

                          20

                          10

                          0

                          </code></pre>
                        body_markdown: "To get a *new* reversed list, apply the [`reversed`][1] function and collect the items into a [`list`][list]:\r\n\r\n```\r\n>>> xs = [0, 10, 20, 40]\r\n>>> list(reversed(xs))\r\n[40, 20, 10, 0]\r\n```\r\n\r\nTo iterate backwards through a list:\r\n\r\n```\r\n>>> xs = [0, 10, 20, 40]\r\n>>> for x in reversed(xs):\r\n...     print(x)\r\n40\r\n20\r\n10\r\n0\r\n```\r\n\r\n  [1]: https://docs.python.org/3/library/functions.html#reversed\r\n  [pep0322]: https://www.python.org/dev/peps/pep-0322/\r\n  [list]: https://docs.python.org/3/library/stdtypes.html#list"
                        comment_count: 8
                        content_license: CC BY-SA 4.0
                        created_at_ms: 1287126140000
                        is_accepted: true
                        last_activity_at_ms: 1660588390000
                        last_edit_at_ms: 1660588390000
                        owner:
                          display_name: codaddict
                          link: https://stackoverflow.com/users/227665/codaddict
                          reputation: 457906
                          user_id: 227665
                          user_type: registered
                        question_id: 3940128
                        question_title: How do I reverse a list or loop over it backwards?
                        score: 1738
                        site: stackoverflow
                        source_url: >-
                          https://stackoverflow.com/questions/3940128/how-do-i-reverse-a-list-or-loop-over-it-backwards/3940144#3940144
                      - answer_id: 3940137
                        body_html: >
                          <pre><code>&gt;&gt;&gt; xs = [0, 10, 20, 40]

                          &gt;&gt;&gt; xs[::-1]

                          [40, 20, 10, 0]

                          </code></pre>

                          <p>Extended slice syntax is explained <a
                          href="http://docs.python.org/release/2.3.5/whatsnew/section-slices.html"
                          rel="noreferrer">here</a>. See also, <a
                          href="http://docs.python.org/library/functions.html#slice"
                          rel="noreferrer">documentation</a>.</p>
                        body_markdown: "```\r\n>>> xs = [0, 10, 20, 40]\r\n>>> xs[::-1]\r\n[40, 20, 10, 0]\r\n```\r\n\r\nExtended slice syntax is explained [here][1]. See also, [documentation][2].\r\n\r\n\r\n  [1]: http://docs.python.org/release/2.3.5/whatsnew/section-slices.html\r\n  [2]: http://docs.python.org/library/functions.html#slice"
                        comment_count: 9
                        content_license: CC BY-SA 4.0
                        created_at_ms: 1287126072000
                        is_accepted: false
                        last_activity_at_ms: 1649496982000
                        last_edit_at_ms: 1649496982000
                        owner:
                          display_name: mechanical_meat
                          link: >-
                            https://stackoverflow.com/users/42346/mechanical-meat
                          reputation: 170962
                          user_id: 42346
                          user_type: registered
                        question_id: 3940128
                        question_title: How do I reverse a list or loop over it backwards?
                        score: 1542
                        site: stackoverflow
                        source_url: >-
                          https://stackoverflow.com/questions/3940128/how-do-i-reverse-a-list-or-loop-over-it-backwards/3940137#3940137
                    count: 2
                    has_more: true
                    observed_at_ms: 1789448650474
                    page: 1
                    question_id: 3940128
                    quota:
                      backoff_seconds: null
                      max: 300
                      remaining: 299
                    site: stackoverflow
                    source_url: >-
                      https://api.stackexchange.com/2.3/questions/3940128/answers?site=stackoverflow&pagesize=2&sort=votes&filter=%217ry9ouLWcQWrdWSzrv7eT0TX0kxJ.zt0R1
                    total: 18
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Answers to one question (by `question_id` + `site` or URL), one page
            per call, sorted by votes, activity or creation. Each answer carries
            is_accepted, score, bodies, owner and its canonical URL.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `answers` | object[] |  |

            | `count` | number |  |

            | `has_more` | boolean |  |

            | `observed_at_ms` | number |  |

            | `page` | number |  |

            | `question_id` | number |  |

            | `quota` | object |  |

            | `site` | string |  |

            | `source_url` | string |  |

            | `total` | number |  |



            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.