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

# 学术搜索

> 搜索学术文献。

搜索学术文献。⚠️ 参数放在 **query string** 里而不是请求体：`query`（必填）、`max_num_results`，以及限定发表年份的 `as_ylo`/`as_yhi`。返回一个检索 `id` 和 `results[]`，含 `title`、`link`、`snippet`、`authors` 和 `number_of_citations` —— 最后这个字段是普通网页搜索给不了的。实测不到 2 秒。当问题需要同行评审来源、或者引用数本身重要时用它。时事和产品页用通用引擎更好：[`post_tavily_search`](/docs/zh/api-reference/search/post_tavily-search)。想两边一起覆盖，用 [`post_scholar_search_mixed`](/docs/zh/api-reference/scholar/post_scholar-search-mixed)。记住 `id`，[`post_scholar_search_explain`](/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。各客户端的具体命令和每次调用的价格见
  [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。
</Note>

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


## OpenAPI

````yaml openapi/zh/platform-txyz-openapi.json POST /scholar/search/scholar
openapi: 3.0.0
info:
  title: TXYZ Platform API
  version: 1.0.0
  description: platform.txyz.ai 服务的 API 文档，包括学术搜索功能
  contact:
    email: support@txyz.ai
  license:
    name: Proprietary
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /scholar/search/scholar:
    post:
      tags:
        - Search
        - Academic
      summary: 搜索学术论文
      description: >-
        搜索学术文献。⚠️ 参数放在 **query string**
        里而不是请求体：`query`（必填）、`max_num_results`，以及限定发表年份的 `as_ylo`/`as_yhi`。返回一个检索
        `id` 和 `results[]`，含 `title`、`link`、`snippet`、`authors` 和
        `number_of_citations` —— 最后这个字段是普通网页搜索给不了的。实测不到 2
        秒。当问题需要同行评审来源、或者引用数本身重要时用它。时事和产品页用通用引擎更好：`post_tavily_search`。想两边一起覆盖，用
        `post_scholar_search_mixed`。记住 `id`，`post_scholar_search_explain` 要用。
      operationId: post_scholar_search_scholar
      parameters:
        - name: query
          in: query
          required: true
          description: 学术资料搜索查询
          schema:
            type: string
            example: machine learning
        - name: max_num_results
          in: query
          description: 返回的搜索结果最大数量，最多 100 条
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: as_ylo
          in: query
          description: 出版年份下限
          schema:
            type: integer
            nullable: true
            minimum: 1900
            maximum: 2030
        - name: as_yhi
          in: query
          description: 出版年份上限
          schema:
            type: integer
            nullable: true
            minimum: 1900
            maximum: 2030
      responses:
        '200':
          description: 搜索成功响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScholarSearchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - BearerAuth: []
components:
  schemas:
    ScholarSearchResponse:
      type: object
      required:
        - id
        - results
      properties:
        id:
          type: string
          description: 搜索请求的唯一标识符
        results:
          type: array
          items:
            $ref: '#/components/schemas/ScholarResult'
          description: 学术论文结果列表
    ScholarResult:
      type: object
      required:
        - title
        - link
        - snippet
        - authors
        - number_of_citations
      properties:
        title:
          type: string
          description: 学术论文标题
        link:
          type: string
          format: uri
          description: 用于访问完整论文的 URL
        snippet:
          type: string
          description: 论文的简要摘要或概要
        authors:
          type: array
          items:
            type: string
          description: 作者列表
        number_of_citations:
          type: integer
          minimum: 0
          description: 论文获得的引用次数
        year:
          type: integer
          description: 出版年份
          minimum: 1900
          maximum: 2030
        journal:
          type: string
          description: 期刊或会议名称
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: 描述错误原因的错误消息
        code:
          type: integer
          description: HTTP 状态码
        details:
          type: string
          description: 其他错误详情
  responses:
    BadRequest:
      description: 错误请求 - 参数无效
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: 未授权 - API 密钥无效或缺失
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: 超出速率限制
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: 内部服务器错误
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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