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

# Web extraction with browser options

> Web extraction with browser options

> **Request example pending verification.** The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (`X-AISA-Cost-Mode: quote`) before running it.

## Request contract

* **Method and path:** POST /apis/v1/web-extraction/web-fetch-post
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/web-extraction/web-fetch-post`
* **timeout:** query; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/web-extraction.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "web-extraction.web-fetch-post",
  "method": "POST",
  "path": "/apis/v1/web-extraction/web-fetch-post",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "timeout",
      "required": false,
      "schema": {
        "exclusiveMinimum": 0,
        "maximum": 90,
        "type": "number"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "additionalProperties": false,
          "properties": {
            "assert_status_code": {
              "maximum": 599,
              "minimum": 100,
              "type": "integer"
            },
            "base": {
              "enum": [
                "final",
                "initial"
              ],
              "type": "string"
            },
            "detach_invisibles": {
              "type": "boolean"
            },
            "engine": {
              "enum": [
                "auto",
                "browser",
                "curl"
              ],
              "type": "string"
            },
            "inject_frame_script": {
              "items": {
                "maxLength": 8192,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 8,
              "minItems": 1,
              "type": [
                "array",
                "null"
              ]
            },
            "inject_page_script": {
              "items": {
                "maxLength": 8192,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 8,
              "minItems": 1,
              "type": [
                "array",
                "null"
              ]
            },
            "keep_img_data_url": {
              "type": "boolean"
            },
            "locale": {
              "maxLength": 64,
              "minLength": 2,
              "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
              "type": "string"
            },
            "markdown": {
              "additionalProperties": false,
              "properties": {
                "bullet_list_marker": {
                  "enum": [
                    "-",
                    "+",
                    "*",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "em_delimiter": {
                  "enum": [
                    "_",
                    "*",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "heading_style": {
                  "enum": [
                    "setext",
                    "atx",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "hr": {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "link_reference_style": {
                  "enum": [
                    "full",
                    "collapsed",
                    "shortcut",
                    "discarded",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "link_style": {
                  "enum": [
                    "inlined",
                    "referenced",
                    "discarded",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "strong_delimiter": {
                  "enum": [
                    "__",
                    "**",
                    null
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "markdown_chunking": {
              "enum": [
                "h1",
                "h2",
                "h3",
                "h4",
                "h5",
                "s1",
                "s2",
                "s3",
                "s4",
                "s5",
                "structured",
                "true"
              ],
              "type": "string"
            },
            "max_tokens": {
              "maximum": 10000000,
              "minimum": 500,
              "type": "integer"
            },
            "no_gfm": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "const": "table",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "page_timeout": {
              "maximum": 180,
              "minimum": 1,
              "type": "integer"
            },
            "preset": {
              "enum": [
                "agent",
                "index",
                "reader",
                "research",
                "spider"
              ],
              "type": "string"
            },
            "referer": {
              "format": "http_uri",
              "maxLength": 8192,
              "minLength": 1,
              "type": "string"
            },
            "remove_overlay": {
              "type": "boolean"
            },
            "remove_selector": {
              "anyOf": [
                {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "respond_timing": {
              "enum": [
                "html",
                "media-idle",
                "mutation-idle",
                "network-idle",
                "resource-idle",
                "visible-content"
              ],
              "type": "string"
            },
            "respond_with": {
              "maxLength": 64,
              "minLength": 3,
              "type": "string"
            },
            "retain_images": {
              "enum": [
                "all",
                "alt",
                "none"
              ],
              "type": "string"
            },
            "retain_links": {
              "enum": [
                "all",
                "gpt-oss",
                "none",
                "text"
              ],
              "type": "string"
            },
            "retain_media": {
              "enum": [
                "html",
                "image",
                "link",
                "none",
                "text"
              ],
              "type": "string"
            },
            "robots_txt": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "set_cookies": {
              "items": {
                "maxLength": 4096,
                "minLength": 3,
                "type": "string"
              },
              "maxItems": 100,
              "minItems": 1,
              "type": [
                "array",
                "null"
              ]
            },
            "target_selector": {
              "anyOf": [
                {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "token_budget": {
              "maximum": 10000000,
              "minimum": 1,
              "type": "integer"
            },
            "url": {
              "format": "http_uri",
              "maxLength": 8192,
              "minLength": 1,
              "type": "string"
            },
            "user_agent": {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            "viewport": {
              "additionalProperties": false,
              "properties": {
                "device_scale_factor": {
                  "exclusiveMinimum": 0,
                  "maximum": 4,
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "has_touch": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "height": {
                  "maximum": 4096,
                  "minimum": 1,
                  "type": "integer"
                },
                "is_landscape": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "is_mobile": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "width": {
                  "maximum": 4096,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "width",
                "height"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "wait_for_selector": {
              "anyOf": [
                {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "with_iframe": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "const": "quoted",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "with_images_summary": {
              "type": "boolean"
            },
            "with_links_summary": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "const": "all",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "with_shadow_dom": {
              "type": "boolean"
            }
          },
          "required": [
            "url"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.

* **HTTP status / last observed:** 200 / 2026-11-14

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "content": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "external": {
      "additionalProperties": true,
      "properties": {
        "alternate": {
          "additionalProperties": true,
          "type": "object"
        },
        "author": {
          "additionalProperties": true,
          "type": "object"
        },
        "icon": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "metadata": {
      "additionalProperties": true,
      "properties": {
        "description": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "usage": {
      "additionalProperties": true,
      "properties": {
        "tokens": {
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Cost and request rules

Published reference price: \$0.00015 USD per successful request. Your account price may differ; use a request quote where supported.

## Response time

* Typically takes longer than 30 seconds.


## OpenAPI

````yaml openapi-public/web-extraction.json POST /apis/v1/web-extraction/web-fetch-post
openapi: 3.1.0
info:
  description: ''
  title: 网页提取
  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:
    web-extraction:
      description: ''
      title: 网页提取
      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: 880be7ea488a3054e13c2e6137ea86a8e582c99b53a64f29d3b9c52ab4fa3588
        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/web-extraction/search-v1
    - /apis/v1/web-extraction/web-fetch
    - /apis/v1/web-extraction/web-fetch-post
  x-aisa-document:
    composer_version: '31'
    facts_hash: 880be7ea488a3054e13c2e6137ea86a8e582c99b53a64f29d3b9c52ab4fa3588
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:771a9f29ab246a576c6c375035a4d61e7ce386cb19bcb9f7ff0d854a99f59069
    document_hash: sha256:201aa88541840d28181f7da5403c5ba02dc63ebc2f8ee49af3698807ac96fe47
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: web-extraction
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/web-extraction/web-fetch-post:
    post:
      tags:
        - 网页提取
      summary: Web extraction with browser options
      description: >-
        > **Request example pending verification.** The request example for this
        endpoint has not yet been verified in production. Static examples
        describe the request format; replace sample values with your own. Check
        the estimated price with a free quote request (`X-AISA-Cost-Mode:
        quote`) before running it.
      operationId: web-extraction.web-fetch-post
      parameters:
        - in: query
          name: timeout
          required: false
          schema:
            exclusiveMinimum: 0
            maximum: 90
            type: number
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                assert_status_code:
                  maximum: 599
                  minimum: 100
                  type: integer
                base:
                  enum:
                    - final
                    - initial
                  type: string
                detach_invisibles:
                  type: boolean
                engine:
                  enum:
                    - auto
                    - browser
                    - curl
                  type: string
                inject_frame_script:
                  items:
                    maxLength: 8192
                    minLength: 1
                    type: string
                  maxItems: 8
                  minItems: 1
                  type:
                    - array
                    - 'null'
                inject_page_script:
                  items:
                    maxLength: 8192
                    minLength: 1
                    type: string
                  maxItems: 8
                  minItems: 1
                  type:
                    - array
                    - 'null'
                keep_img_data_url:
                  type: boolean
                locale:
                  maxLength: 64
                  minLength: 2
                  pattern: ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$
                  type: string
                markdown:
                  additionalProperties: false
                  properties:
                    bullet_list_marker:
                      enum:
                        - '-'
                        - +
                        - '*'
                        - null
                      type:
                        - string
                        - 'null'
                    em_delimiter:
                      enum:
                        - _
                        - '*'
                        - null
                      type:
                        - string
                        - 'null'
                    heading_style:
                      enum:
                        - setext
                        - atx
                        - null
                      type:
                        - string
                        - 'null'
                    hr:
                      maxLength: 128
                      minLength: 1
                      type:
                        - string
                        - 'null'
                    link_reference_style:
                      enum:
                        - full
                        - collapsed
                        - shortcut
                        - discarded
                        - null
                      type:
                        - string
                        - 'null'
                    link_style:
                      enum:
                        - inlined
                        - referenced
                        - discarded
                        - null
                      type:
                        - string
                        - 'null'
                    strong_delimiter:
                      enum:
                        - __
                        - '**'
                        - null
                      type:
                        - string
                        - 'null'
                  type:
                    - object
                    - 'null'
                markdown_chunking:
                  enum:
                    - h1
                    - h2
                    - h3
                    - h4
                    - h5
                    - s1
                    - s2
                    - s3
                    - s4
                    - s5
                    - structured
                    - 'true'
                  type: string
                max_tokens:
                  maximum: 10000000
                  minimum: 500
                  type: integer
                no_gfm:
                  anyOf:
                    - type: boolean
                    - const: table
                      type: string
                    - type: 'null'
                page_timeout:
                  maximum: 180
                  minimum: 1
                  type: integer
                preset:
                  enum:
                    - agent
                    - index
                    - reader
                    - research
                    - spider
                  type: string
                referer:
                  format: http_uri
                  maxLength: 8192
                  minLength: 1
                  type: string
                remove_overlay:
                  type: boolean
                remove_selector:
                  anyOf:
                    - maxLength: 2048
                      minLength: 1
                      type: string
                    - items:
                        maxLength: 2048
                        minLength: 1
                        type: string
                      maxItems: 16
                      minItems: 1
                      type: array
                    - type: 'null'
                respond_timing:
                  enum:
                    - html
                    - media-idle
                    - mutation-idle
                    - network-idle
                    - resource-idle
                    - visible-content
                  type: string
                respond_with:
                  maxLength: 64
                  minLength: 3
                  type: string
                retain_images:
                  enum:
                    - all
                    - alt
                    - none
                  type: string
                retain_links:
                  enum:
                    - all
                    - gpt-oss
                    - none
                    - text
                  type: string
                retain_media:
                  enum:
                    - html
                    - image
                    - link
                    - none
                    - text
                  type: string
                robots_txt:
                  maxLength: 256
                  minLength: 1
                  type: string
                set_cookies:
                  items:
                    maxLength: 4096
                    minLength: 3
                    type: string
                  maxItems: 100
                  minItems: 1
                  type:
                    - array
                    - 'null'
                target_selector:
                  anyOf:
                    - maxLength: 2048
                      minLength: 1
                      type: string
                    - items:
                        maxLength: 2048
                        minLength: 1
                        type: string
                      maxItems: 16
                      minItems: 1
                      type: array
                    - type: 'null'
                token_budget:
                  maximum: 10000000
                  minimum: 1
                  type: integer
                url:
                  format: http_uri
                  maxLength: 8192
                  minLength: 1
                  type: string
                user_agent:
                  maxLength: 1024
                  minLength: 1
                  type: string
                viewport:
                  additionalProperties: false
                  properties:
                    device_scale_factor:
                      exclusiveMinimum: 0
                      maximum: 4
                      type:
                        - number
                        - 'null'
                    has_touch:
                      type:
                        - boolean
                        - 'null'
                    height:
                      maximum: 4096
                      minimum: 1
                      type: integer
                    is_landscape:
                      type:
                        - boolean
                        - 'null'
                    is_mobile:
                      type:
                        - boolean
                        - 'null'
                    width:
                      maximum: 4096
                      minimum: 1
                      type: integer
                  required:
                    - width
                    - height
                  type:
                    - object
                    - 'null'
                wait_for_selector:
                  anyOf:
                    - maxLength: 2048
                      minLength: 1
                      type: string
                    - items:
                        maxLength: 2048
                        minLength: 1
                        type: string
                      maxItems: 16
                      minItems: 1
                      type: array
                    - type: 'null'
                with_iframe:
                  anyOf:
                    - type: boolean
                    - const: quoted
                      type: string
                    - type: 'null'
                with_images_summary:
                  type: boolean
                with_links_summary:
                  anyOf:
                    - type: boolean
                    - const: all
                      type: string
                    - type: 'null'
                with_shadow_dom:
                  type: boolean
              required:
                - url
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                properties:
                  content:
                    type: string
                  description:
                    type: string
                  external:
                    additionalProperties: true
                    properties:
                      alternate:
                        additionalProperties: true
                        type: object
                      author:
                        additionalProperties: true
                        type: object
                      icon:
                        additionalProperties: true
                        type: object
                    type: object
                  metadata:
                    additionalProperties: true
                    properties:
                      description:
                        type: string
                    type: object
                  title:
                    type: string
                  url:
                    type: string
                  usage:
                    additionalProperties: true
                    properties:
                      tokens:
                        type: integer
                    type: object
                type: object
          description: >-
            Observed successful JSON response. This partial structure comes from
            successful probe or sampled requests; fields and types may vary. No
            field is guaranteed to be present. Last observed: 2026-11-14.
          x-aisa-response-observation:
            completeness: observed
            last_observed: '2026-11-14'
            origins:
              - probe
        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.