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

> 搜索开放网页，返回一份很精简的结果列表。

搜索开放网页，返回一份很精简的结果列表。⚠️ 虽然是 POST，参数却放在 **query string** 里 —— `query`（必填）、`max_num_results`（默认 10，最大 100），以及限定年份区间的 `as_ylo`/`as_yhi`。**不接受 JSON 请求体**。返回一个检索 `id` 和 `results[]`，每条只有 `title`、`link`、`snippet`。实测约 4 秒，响应体约 600 字节。它的长处正是返回得少，适合只需要知道「有什么」的 agent。它不给页面正文 —— 需要正文的话，[`post_tavily_search`](https://aisa.one/docs/zh/api-reference/search/post_tavily-search) 在同一次调用里就能返回。记住那个 `id`：[`post_scholar_search_explain`](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-explain) 需要它。

> [!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/scholar/post_scholar-search-web)

## 请求规范

* **方法与路径:** POST /apis/v1/scholar/search/web
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/scholar/search/web`
* **as\_yhi:** query; 可选
* **as\_ylo:** query; 可选
* **max\_num\_results:** query; 可选
* **query:** query; 必填

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

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

```json theme={null}
{
  "operationId": "post_scholar_search_web",
  "method": "POST",
  "path": "/apis/v1/scholar/search/web",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Year of publication upper bound",
      "in": "query",
      "name": "as_yhi",
      "schema": {
        "maximum": 2030,
        "minimum": 1900,
        "type": [
          "integer",
          "null"
        ]
      }
    },
    {
      "description": "Year of publication lower bound",
      "in": "query",
      "name": "as_ylo",
      "schema": {
        "maximum": 2030,
        "minimum": 1900,
        "type": [
          "integer",
          "null"
        ]
      }
    },
    {
      "description": "Maximum number of search results to return, up to 100",
      "in": "query",
      "name": "max_num_results",
      "schema": {
        "default": 10,
        "maximum": 100,
        "minimum": 1,
        "type": "integer"
      }
    },
    {
      "description": "Search query for scholarly materials",
      "in": "query",
      "name": "query",
      "required": true,
      "schema": {
        "example": "machine learning",
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/scholar.json POST /apis/v1/scholar/search/web
openapi: 3.1.0
info:
  description: ''
  title: Scholar
  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:
    scholar:
      description: ''
      title: Scholar
      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: 60c867b8f9840a96a156bdf04dd69950d866b01ed2d659222e3225a3a7facb5e
        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/scholar/search/explain
    - /apis/v1/scholar/search/mixed
    - /apis/v1/scholar/search/scholar
    - /apis/v1/scholar/search/web
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:262d0071a7913adfb4017393fff3608a36f55a775a63e9ece3635078479066a5
    facts_hash: 60c867b8f9840a96a156bdf04dd69950d866b01ed2d659222e3225a3a7facb5e
    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: scholar
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/scholar/search/web:
    post:
      tags:
        - default
      summary: Search Web Content
      description: >-
        Search the open web and get back a lean result list. ⚠️ Despite being a
        POST, parameters go in the **query string** — `query` (required),
        `max_num_results` (default 10, max 100), and `as_ylo`/`as_yhi` for a
        year range. A JSON body is not accepted. Returns a search `id` and
        `results[]` carrying only `title`, `link` and `snippet`. Measured at
        about 4 seconds for a roughly 600-byte response. Its virtue is how
        little it returns, which suits an agent that only needs to know what
        exists. It gives you no page text — if you need the content,
        `post_tavily_search` returns it in the same call. Keep the `id`: it is
        what `post_scholar_search_explain` needs.
      operationId: post_scholar_search_web
      parameters:
        - description: 出版年份上限
          in: query
          name: as_yhi
          schema:
            maximum: 2030
            minimum: 1900
            type:
              - integer
              - 'null'
        - description: 出版年份下限
          in: query
          name: as_ylo
          schema:
            maximum: 2030
            minimum: 1900
            type:
              - integer
              - 'null'
        - description: 返回的搜索结果最大数量，最多 100 条
          in: query
          name: max_num_results
          schema:
            default: 10
            maximum: 100
            minimum: 1
            type: integer
        - description: 学术资料搜索查询
          in: query
          name: query
          required: true
          schema:
            example: machine learning
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response8Da310D1D213_WebSearchResponse'
          description: 搜索成功响应
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response8Da310D1D213_WebSearchResponse:
      properties:
        id:
          description: 搜索请求的唯一标识符
          type: string
        results:
          description: 网页搜索结果列表
          items:
            $ref: '#/components/schemas/Response8Da310D1D213_WebResult'
          type: array
      required:
        - id
        - results
      type: object
    Response8Da310D1D213_WebResult:
      properties:
        display_url:
          description: 适合展示的 URL
          type: string
        link:
          description: 用于访问网页的 URL
          format: uri
          type: string
        published_date:
          description: 网页的发布日期
          format: date-time
          type: string
        snippet:
          description: 网页内容的简要摘要或预览
          type: string
        title:
          description: 网页标题
          type: string
      required:
        - title
        - link
        - snippet
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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