# 搜尋學術論文

**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` 使用。

### 定價參考

- 計量方式：以成功請求為固定成本基礎。
- 參考請求預估：USD 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": "學術論文結果清單"
    }
  }
}
```
