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

# Firecrawl Crawl submit

> 从 url 出发爬整个站点，返回它保留的每个页面的内容。

从 `url` 出发爬整个站点，返回它保留的每个页面的内容。`url`、`limit` 和 `Idempotency-Key` 必填；可用 `includePaths`、`excludePaths`、`maxDiscoveryDepth`、`crawlEntireDomain`、`allowSubdomains`、`delay`、`maxConcurrency` 引导。异步。提交后返回 HTTP 202 和一个任务信封 —— `id`、`object`、`endpoint`、`status`、`createdAt`、`completedAt`、`pricing`、`output`、`error`，此时 `output` 还是 null。轮询 [`get_firecrawl_crawl_job`](https://aisa.one/docs/zh/api-reference/search/get_firecrawl-crawl-job) 直到 `status` 变成 `completed`、`failed` 或 `cancelled`；届时 `output` 是一个页面数组，每项含 `markdown` 和 `metadata`。实测爬 3 个页面返回 43 KB、不到一分钟完成，而 `pricing.billingMode` 是 `metered_result`，也就是**成本随它找到多少而增长** —— 务必设 `limit`。每次不同的爬取都要换一个新的 `Idempotency-Key`；重复使用会返回之前那个任务而不是新建。只有几个已知 URL 时 [`post_firecrawl_batch_scrape`](https://aisa.one/docs/zh/api-reference/search/post_firecrawl-batch-scrape) 更便宜，只要结构不要内容时 [`post_firecrawl_map`](https://aisa.one/docs/zh/api-reference/search/post_firecrawl-map) 便宜得多。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/search/post_firecrawl-crawl)

## 请求规范

* **方法与路径:** POST /apis/v1/firecrawl/crawl
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/firecrawl/crawl`
* **Idempotency-Key:** header; 必填
* **X-AISA-Max-Price-USD:** header; 可选
* **X-AISA-Cost-Mode:** header; 可选

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/firecrawl.json)

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

```json theme={null}
{
  "operationId": "post_firecrawl_crawl",
  "method": "POST",
  "path": "/apis/v1/firecrawl/crawl",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Trimmed UTF-8 length must be 1 through 191 bytes.",
      "in": "header",
      "name": "Idempotency-Key",
      "required": true,
      "schema": {
        "pattern": "\\S",
        "type": "string"
      }
    },
    {
      "description": "Optional maximum customer authorization in USD, validated by the runtime price parser.",
      "in": "header",
      "name": "X-AISA-Max-Price-USD",
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Return a read-only cost quote instead of submitting a job.",
      "in": "header",
      "name": "X-AISA-Cost-Mode",
      "schema": {
        "enum": [
          "quote"
        ],
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "example": {
          "limit": 1,
          "url": "https://example.com"
        },
        "schema": {
          "additionalProperties": false,
          "properties": {
            "allowExternalLinks": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "allowSubdomains": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "crawlEntireDomain": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "delay": {
              "maximum": 30,
              "minimum": 0,
              "type": [
                "number",
                "null"
              ]
            },
            "excludePaths": {
              "items": {
                "description": "Non-empty after trimming; no CR/LF; UTF-8 byte length is bounded.",
                "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
                "type": "string",
                "x-aisa-max-utf8-bytes": 256
              },
              "maxItems": 20,
              "type": [
                "array",
                "null"
              ]
            },
            "ignoreQueryParameters": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "includePaths": {
              "items": {
                "description": "Non-empty after trimming; no CR/LF; UTF-8 byte length is bounded.",
                "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
                "type": "string",
                "x-aisa-max-utf8-bytes": 256
              },
              "maxItems": 20,
              "type": [
                "array",
                "null"
              ]
            },
            "limit": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            },
            "maxConcurrency": {
              "maximum": 20,
              "minimum": 1,
              "type": [
                "integer",
                "null"
              ]
            },
            "maxDiscoveryDepth": {
              "maximum": 10,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "scrapeOptions": {
              "additionalProperties": false,
              "properties": {
                "excludeTags": {
                  "items": {
                    "description": "Non-empty after trimming; no CR/LF; UTF-8 byte length is bounded.",
                    "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
                    "type": "string",
                    "x-aisa-max-utf8-bytes": 128
                  },
                  "maxItems": 50,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "includeTags": {
                  "items": {
                    "description": "Non-empty after trimming; no CR/LF; UTF-8 byte length is bounded.",
                    "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
                    "type": "string",
                    "x-aisa-max-utf8-bytes": 128
                  },
                  "maxItems": 50,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "maxAge": {
                  "maximum": 31536000000,
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "minAge": {
                  "maximum": 31536000000,
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "onlyMainContent": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "timeout": {
                  "maximum": 300000,
                  "minimum": 1000,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "sitemap": {
              "enum": [
                null,
                "skip",
                "include",
                "only"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "description": "HTTPS URL with a hostname, without credentials or fragment. Trimmed input ending in .pdf (case insensitive) is not supported.",
              "pattern": "^\\s*[hH][tT][tT][pP][sS]://",
              "type": "string"
            }
          },
          "required": [
            "url",
            "limit"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

任务完成后按实际用量收费。 公开参考价格：每计费单位 \$0.005 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/firecrawl.json POST /apis/v1/firecrawl/crawl
openapi: 3.1.0
info:
  description: ''
  title: Firecrawl
  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:
    firecrawl:
      description: ''
      title: Firecrawl
      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: fea8287b1066296595eeef82a2f6e57ca28a31f966891c4bf63e3cf26569522d
        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/firecrawl/batch-scrape
    - /apis/v1/firecrawl/crawl
    - /apis/v1/firecrawl/map
    - /apis/v1/firecrawl/parse
    - /apis/v1/firecrawl/scrape
    - /apis/v1/firecrawl/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5c00af664492dabee4f03a9d8b24308bee0946bc1f9c4d08215d4c470fb12fcf
    facts_hash: fea8287b1066296595eeef82a2f6e57ca28a31f966891c4bf63e3cf26569522d
    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: firecrawl
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/firecrawl/crawl:
    post:
      summary: Firecrawl Crawl submit
      description: >-
        Owner-scoped local asynchronous job lifecycle. Disabling new admission
        does not disable existing job reads or cancellation. Runtime
        availability and access policy also apply.
      operationId: post_firecrawl_crawl
      parameters:
        - description: Trimmed UTF-8 length must be 1 through 191 bytes.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            pattern: \S
            type: string
        - description: >-
            Optional maximum customer authorization in USD, validated by the
            runtime price parser.
          in: header
          name: X-AISA-Max-Price-USD
          schema:
            type: string
        - description: Return a read-only cost quote instead of submitting a job.
          in: header
          name: X-AISA-Cost-Mode
          schema:
            enum:
              - quote
            type: string
      requestBody:
        content:
          application/json:
            example:
              limit: 1
              url: https://example.com
            schema:
              additionalProperties: false
              properties:
                allowExternalLinks:
                  type:
                    - boolean
                    - 'null'
                allowSubdomains:
                  type:
                    - boolean
                    - 'null'
                crawlEntireDomain:
                  type:
                    - boolean
                    - 'null'
                delay:
                  maximum: 30
                  minimum: 0
                  type:
                    - number
                    - 'null'
                excludePaths:
                  items:
                    description: >-
                      Non-empty after trimming; no CR/LF; UTF-8 byte length is
                      bounded.
                    pattern: ^[^\r\n]*\S[^\r\n]*$(?![\s\S])
                    type: string
                    x-aisa-max-utf8-bytes: 256
                  maxItems: 20
                  type:
                    - array
                    - 'null'
                ignoreQueryParameters:
                  type:
                    - boolean
                    - 'null'
                includePaths:
                  items:
                    description: >-
                      Non-empty after trimming; no CR/LF; UTF-8 byte length is
                      bounded.
                    pattern: ^[^\r\n]*\S[^\r\n]*$(?![\s\S])
                    type: string
                    x-aisa-max-utf8-bytes: 256
                  maxItems: 20
                  type:
                    - array
                    - 'null'
                limit:
                  maximum: 1000
                  minimum: 1
                  type: integer
                maxConcurrency:
                  maximum: 20
                  minimum: 1
                  type:
                    - integer
                    - 'null'
                maxDiscoveryDepth:
                  maximum: 10
                  minimum: 0
                  type:
                    - integer
                    - 'null'
                scrapeOptions:
                  additionalProperties: false
                  properties:
                    excludeTags:
                      items:
                        description: >-
                          Non-empty after trimming; no CR/LF; UTF-8 byte length
                          is bounded.
                        pattern: ^[^\r\n]*\S[^\r\n]*$(?![\s\S])
                        type: string
                        x-aisa-max-utf8-bytes: 128
                      maxItems: 50
                      type:
                        - array
                        - 'null'
                    includeTags:
                      items:
                        description: >-
                          Non-empty after trimming; no CR/LF; UTF-8 byte length
                          is bounded.
                        pattern: ^[^\r\n]*\S[^\r\n]*$(?![\s\S])
                        type: string
                        x-aisa-max-utf8-bytes: 128
                      maxItems: 50
                      type:
                        - array
                        - 'null'
                    maxAge:
                      maximum: 31536000000
                      minimum: 0
                      type:
                        - integer
                        - 'null'
                    minAge:
                      maximum: 31536000000
                      minimum: 0
                      type:
                        - integer
                        - 'null'
                    onlyMainContent:
                      type:
                        - boolean
                        - 'null'
                    timeout:
                      maximum: 300000
                      minimum: 1000
                      type:
                        - integer
                        - 'null'
                  type:
                    - object
                    - 'null'
                sitemap:
                  enum:
                    - null
                    - skip
                    - include
                    - only
                  type:
                    - string
                    - 'null'
                url:
                  description: >-
                    HTTPS URL with a hostname, without credentials or fragment.
                    Trimmed input ending in .pdf (case insensitive) is not
                    supported.
                  pattern: ^\s*[hH][tT][tT][pP][sS]://
                  type: string
              required:
                - url
                - limit
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  currency:
                    type:
                      - string
                      - 'null'
                  estimate_kind:
                    type:
                      - string
                      - 'null'
                  estimated_at:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  estimated_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  max_cost_micros_usd:
                    type:
                      - integer
                      - 'null'
                  may_exceed_estimate:
                    type:
                      - boolean
                      - 'null'
                  metadata:
                    additionalProperties: {}
                    type:
                      - object
                      - 'null'
                  object:
                    type:
                      - string
                      - 'null'
                  pricing_version:
                    type:
                      - string
                      - 'null'
                required:
                  - currency
                  - estimate_kind
                  - estimated_at
                  - estimated_cost_micros_usd
                  - may_exceed_estimate
                  - object
                type: object
          description: >-
            Read-only cost quote when X-AISA-Cost-Mode is quote; no job is
            created.
        '202':
          content:
            application/json:
              schema:
                properties:
                  completedAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  createdAt:
                    format: date-time
                    type:
                      - string
                      - 'null'
                  endpoint:
                    type:
                      - string
                      - 'null'
                  error:
                    properties:
                      code:
                        type:
                          - string
                          - 'null'
                      message:
                        type:
                          - string
                          - 'null'
                    type:
                      - object
                      - 'null'
                  id:
                    type:
                      - string
                      - 'null'
                  object:
                    const: integration_async_job
                    type: string
                  output: {}
                  outputExpired:
                    type:
                      - boolean
                      - 'null'
                  pricing:
                    properties:
                      authorizedMicrosUSD:
                        type:
                          - integer
                          - 'null'
                      billingMode:
                        type:
                          - string
                          - 'null'
                      currency:
                        type:
                          - string
                          - 'null'
                      finalMicrosUSD:
                        type:
                          - integer
                          - 'null'
                    type:
                      - object
                      - 'null'
                  status:
                    enum:
                      - queued
                      - running
                      - completed
                      - failed
                      - cancelled
                    type: string
                required:
                  - completedAt
                  - createdAt
                  - endpoint
                  - error
                  - id
                  - object
                  - output
                  - pricing
                  - status
                type: object
          description: Success
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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