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

# Extract Structured Web Data

> Extract Structured Web Data

## 请求规范

* **方法与路径:** POST /apis/v1/context-dev/extract-structured-web-data
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/context-dev/extract-structured-web-data`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi-public/zh/context-dev.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "context-dev.extract-structured-web-data",
  "method": "POST",
  "path": "/apis/v1/context-dev/extract-structured-web-data",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "fact_check": {
              "default": false,
              "description": "Require every returned value to be grounded in page content. Unsupported fields are returned as null or empty instead of inferred.",
              "type": "boolean"
            },
            "follow_subdomains": {
              "default": false,
              "description": "Follow links on subdomains of the starting domain.",
              "type": "boolean"
            },
            "instructions": {
              "description": "Optional extraction guidance or field interpretation, up to 2000 characters.",
              "maxLength": 2000,
              "type": "string"
            },
            "max_depth": {
              "description": "Maximum link depth from the starting URL. Use 0 to analyze only the starting page; omit for no crawl-depth limit.",
              "minimum": 0,
              "type": "integer"
            },
            "max_pages": {
              "default": 5,
              "description": "Maximum pages to analyze (1-50). Higher values increase the price.",
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            },
            "output_schema": {
              "additionalProperties": true,
              "description": "JSON Schema describing the object to extract. Add descriptions to non-obvious properties so the extractor can interpret them correctly.",
              "examples": [
                {
                  "properties": {
                    "company_name": {
                      "description": "The company's public name.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "company_name"
                  ],
                  "type": "object"
                }
              ],
              "type": "object"
            },
            "stop_after_ms": {
              "default": 80000,
              "description": "Soft crawl time budget in milliseconds (10000-110000).",
              "maximum": 110000,
              "minimum": 10000,
              "type": "integer"
            },
            "tags": {
              "description": "Usage-tracking tags. Provide at most 20 tags of 1-50 characters each.",
              "items": {
                "maxLength": 50,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 20,
              "type": "array"
            },
            "url": {
              "description": "Starting HTTP or HTTPS website URL to crawl.",
              "examples": [
                "https://example.com"
              ],
              "format": "uri",
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "url",
            "output_schema"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0103 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi-public/zh/context-dev.json POST /apis/v1/context-dev/extract-structured-web-data
openapi: 3.1.0
info:
  description: ''
  title: Context.dev
  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:
    context-dev:
      description: ''
      title: Context.dev
      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: d623d67a0bf66ed6d1bab1c0edbd64af2064ad2b8fcff059d172fd10d05c0581
        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/context-dev/extract-structured-web-data
    - /apis/v1/context-dev/get-brand
    - /apis/v1/context-dev/get-website-styleguide
    - /apis/v1/context-dev/search-brands
    - /apis/v1/context-dev/web-crawl
    - /apis/v1/context-dev/web-map
    - /apis/v1/context-dev/web-scrape
    - /apis/v1/context-dev/web-search
  x-aisa-document:
    composer_version: '31'
    facts_hash: d623d67a0bf66ed6d1bab1c0edbd64af2064ad2b8fcff059d172fd10d05c0581
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:7ee6a59a0006cf41ccac495cf7be20fcf1b30d37d3af76d52c611c13a3a044f2
    document_hash: sha256:e23695cb25ded281795286f82c7609f621cec8a6cfd5462e94b219d316d1a566
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: context-dev
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/context-dev/extract-structured-web-data:
    post:
      tags:
        - Context.dev
      summary: Extract Structured Web Data
      operationId: context-dev.extract-structured-web-data
      requestBody:
        content:
          application/json:
            schema:
              properties:
                fact_check:
                  default: false
                  description: >-
                    Require every returned value to be grounded in page content.
                    Unsupported fields are returned as null or empty instead of
                    inferred.
                  type: boolean
                follow_subdomains:
                  default: false
                  description: Follow links on subdomains of the starting domain.
                  type: boolean
                instructions:
                  description: >-
                    Optional extraction guidance or field interpretation, up to
                    2000 characters.
                  maxLength: 2000
                  type: string
                max_depth:
                  description: >-
                    Maximum link depth from the starting URL. Use 0 to analyze
                    only the starting page; omit for no crawl-depth limit.
                  minimum: 0
                  type: integer
                max_pages:
                  default: 5
                  description: >-
                    Maximum pages to analyze (1-50). Higher values increase the
                    price.
                  maximum: 50
                  minimum: 1
                  type: integer
                output_schema:
                  additionalProperties: true
                  description: >-
                    JSON Schema describing the object to extract. Add
                    descriptions to non-obvious properties so the extractor can
                    interpret them correctly.
                  examples:
                    - properties:
                        company_name:
                          description: The company's public name.
                          type: string
                      required:
                        - company_name
                      type: object
                  type: object
                stop_after_ms:
                  default: 80000
                  description: Soft crawl time budget in milliseconds (10000-110000).
                  maximum: 110000
                  minimum: 10000
                  type: integer
                tags:
                  description: >-
                    Usage-tracking tags. Provide at most 20 tags of 1-50
                    characters each.
                  items:
                    maxLength: 50
                    minLength: 1
                    type: string
                  maxItems: 20
                  type: array
                url:
                  description: Starting HTTP or HTTPS website URL to crawl.
                  examples:
                    - https://example.com
                  format: uri
                  minLength: 1
                  type: string
              required:
                - url
                - output_schema
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__a844009278edf83b
    Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__a844009278edf83b:
      properties:
        data:
          additionalProperties: true
          type: object
        key_metadata:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__54a748042674849e
        metadata:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__e17f115f2f0ccd16
        url:
          type: string
        urls_analyzed:
          items:
            type: string
          type: array
      required:
        - url
        - data
        - metadata
      type: object
    Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__54a748042674849e:
      properties:
        credits_consumed:
          minimum: 0
          type: integer
        credits_remaining:
          minimum: 0
          type: integer
      required:
        - credits_consumed
        - credits_remaining
      type: object
    Response576A0Ea506F3_connect_CONTEXT_DEV_EXTRACT_STRUCTURED_WEB_DATA__output__e17f115f2f0ccd16:
      properties:
        maxCrawlDepth:
          minimum: 0
          type: integer
        numBlocked:
          minimum: 0
          type: integer
        numFailed:
          minimum: 0
          type: integer
        numSkipped:
          minimum: 0
          type: integer
        numSucceeded:
          minimum: 0
          type: integer
        numUrls:
          minimum: 0
          type: integer
      required:
        - numUrls
        - maxCrawlDepth
        - numSucceeded
        - numFailed
        - numSkipped
        - numBlocked
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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