# 搜索学术论文

**API:** Data API

**Endpoint:** `POST /v1/beta/scholar/search/scholar`

**Tags:** Scholar Search

搜索学术文献。⚠️ 参数放在**查询字符串**中，而不是请求体：`query`（必填）、`max_num_results`，以及用于限定出版年份的 `as_ylo`/`as_yhi`。返回搜索 `id` 和 `results[]`，包含 `title`、`link`、`snippet`、`authors` 和 `number_of_citations`——最后一个字段是通用网络搜索无法提供的。当问题需要同行评审来源或引用次数重要时使用。对于时事和产品页面，通用引擎更合适：`searchWeb`。若要同时覆盖两者，请使用 `post_scholar_search_mixed`。请保留 `id`，供 `post_scholar_search_explain` 使用。

### 计费参考

- 计量方式：按成功请求的固定成本计费。
- 参考请求估算：0.01 美元。
- 参考客户倍率：1.0。不得对已结算的客户金额再次应用。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `as_yhi` | query | no | integer \| null | 出版年份上限 |
| `as_ylo` | query | no | integer \| null | 出版年份下限 |
| `max_num_results` | query | no | integer, default: 10 | 要返回的最大搜索结果数，最多 100 |
| `query` | query | yes | string | 学术资料的搜索查询 |

## Responses

### 200 — 搜索成功响应

Headers:
- `X-Request-Id` (string) — 联系 Felo 支持时需提供的请求标识符。

**application/json**

Schema: `Response8Da310D1D213_ScholarSearchResponse` (`#/components/schemas/Response8Da310D1D213_ScholarSearchResponse`)

### 400 — 无法处理该请求。请检查请求参数。

### 401 — 需要有效的 Felo API 密钥。

### 402 — 由于未满足计费要求，请求无法继续。

### 403 — 该账户无权执行此操作。

### 429 — 已达到请求或支出限额。

### 502 — 服务无法完成该请求。

### 503 — API 或计费服务暂时不可用。

### 504 — 服务在处理请求时超时。

### default — 错误响应；上游透传响应可能采用提供方格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response8Da310D1D213_ScholarResult

`#/components/schemas/Response8Da310D1D213_ScholarResult`

```json
{
  "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": "期刊或会议名称"
    }
  }
}
```

### Response8Da310D1D213_ScholarSearchResponse

`#/components/schemas/Response8Da310D1D213_ScholarSearchResponse`

```json
{
  "type": "object",
  "required": [
    "id",
    "results"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "搜索请求的唯一标识符"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Response8Da310D1D213_ScholarResult"
      },
      "description": "学术论文结果列表"
    }
  }
}
```
