# 結合網路與學術結果的智慧搜尋

**API:** Data API

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

**Tags:** Scholar Search

同時搜尋網路與學術來源，適用於橫跨兩者的問題。⚠️ 參數放在**查詢字串**中：`query`（必填）、`max_num_results`、`as_ylo`/`as_yhi`。傳回搜尋 `id` 與 `results[]`；**項目結構因來源而異**——每筆結果都有 `title`、`link` 與 `snippet`，學術結果還額外帶有 `authors` 與 `number_of_citations`，因此請將這兩項視為可選，不要假設它們一定存在。當無法預先判斷哪類來源能回答時使用。若能判斷，`post_scholar_search_web` 或 `post_scholar_search_scholar` 更可預測。請保留 `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_SmartSearchResponse` (`#/components/schemas/Response8Da310D1D213_SmartSearchResponse`)

### 400 — 無法處理該要求。請檢查請求參數。

### 401 — 需要有效的 Felo API 金鑰。

### 402 — 由於未符合計費要求，要求無法繼續。

### 403 — 該帳戶無權執行此操作。

### 429 — 已達到要求或支出上限。

### 502 — 服務無法完成該要求。

### 503 — API 或計費服務暫時無法使用。

### 504 — 服務在處理要求時逾時。

### default — 錯誤回應；上游透傳回應可能採用供應商格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response8Da310D1D213_SmartResult

`#/components/schemas/Response8Da310D1D213_SmartResult`

```json
{
  "type": "object",
  "required": [
    "title",
    "link",
    "snippet"
  ],
  "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": "引用次數（學術內容）"
    },
    "type": {
      "type": "string",
      "enum": [
        "web",
        "academic"
      ],
      "description": "結果類型"
    },
    "relevance_score": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "結果的相關性分數"
    }
  }
}
```

### Response8Da310D1D213_SmartSearchResponse

`#/components/schemas/Response8Da310D1D213_SmartSearchResponse`

```json
{
  "type": "object",
  "required": [
    "id",
    "results"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "搜尋請求的唯一識別碼"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Response8Da310D1D213_SmartResult"
      },
      "description": "結合網路與學術內容的智慧搜尋結果清單"
    },
    "search_type": {
      "type": "string",
      "enum": [
        "web",
        "academic",
        "hybrid"
      ],
      "description": "包含的搜尋結果類型"
    }
  }
}
```
