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

> 同时搜索网页与学术来源，适合跨在两边的问题。

同时搜索网页与学术来源，适合跨在两边的问题。⚠️ 参数放在 **query string** 里：`query`（必填）、`max_num_results`、`as_ylo`/`as_yhi`。返回一个检索 `id` 和 `results[]`；**条目形状随来源变化** —— 每条都有 `title`、`link`、`snippet`，学术来源的还额外带 `authors` 和 `number_of_citations`，所以把这两个字段当作可选的，不要默认它们存在。实测约 3 秒。当你事先不知道哪类来源能回答时用它。已经知道的话，[`post_scholar_search_web`](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-web) 或 [`post_scholar_search_scholar`](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-scholar) 的返回更可预期。记住 `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-mixed)

## 请求规范

* **方法与路径:** POST /apis/v1/scholar/search/mixed
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/scholar/search/mixed`
* **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_mixed",
  "method": "POST",
  "path": "/apis/v1/scholar/search/mixed",
  "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/mixed
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/mixed:
    post:
      tags:
        - default
      summary: Search Mixed Content
      description: >-
        Search the web and academic sources together, for questions that
        straddle both. ⚠️ Parameters go in the **query string**: `query`
        (required), `max_num_results`, `as_ylo`/`as_yhi`. Returns a search `id`
        and `results[]`; **the entry shape varies by source** — every result has
        `title`, `link` and `snippet`, and academic ones additionally carry
        `authors` and `number_of_citations`, so treat those two as optional
        rather than assuming they are there. Measured at about 3 seconds. Use it
        when you do not know in advance which kind of source will answer. When
        you do, `post_scholar_search_web` or `post_scholar_search_scholar` is
        more predictable. Keep the `id` for `post_scholar_search_explain`.
      operationId: post_scholar_search_mixed
      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_SmartSearchResponse'
          description: 搜索成功响应
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response8Da310D1D213_SmartSearchResponse:
      properties:
        id:
          description: 搜索请求的唯一标识符
          type: string
        results:
          description: 融合网页和学术内容的智能搜索结果列表
          items:
            $ref: '#/components/schemas/Response8Da310D1D213_SmartResult'
          type: array
        search_type:
          description: 包含的搜索结果类型
          enum:
            - web
            - academic
            - hybrid
          type: string
      required:
        - id
        - results
      type: object
    Response8Da310D1D213_SmartResult:
      properties:
        authors:
          description: 作者列表（用于学术内容）
          items:
            type: string
          type: array
        link:
          description: 用于访问内容的 URL
          format: uri
          type: string
        number_of_citations:
          description: 引用数量（针对学术内容）
          minimum: 0
          type: integer
        relevance_score:
          description: 结果的相关性评分
          maximum: 1
          minimum: 0
          type: number
        snippet:
          description: 简要摘要
          type: string
        title:
          description: 结果标题
          type: string
        type:
          description: 结果类型
          enum:
            - web
            - academic
          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.