# 解释搜索结果

**API:** Data API

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

**Tags:** Scholar Search

解释先前获取的搜索结果。提供 Scholar 搜索返回的 search_id，以及可选的 detail_level 和 language。response_mode=NON_STREAMING 返回带 message 的 JSON；COMPLETE 和 INCREMENTAL 返回 text/event-stream，其中每个事件包含累积的解释。本操作解释已有搜索，不会发起新的搜索。

### 计费参考

- 计量方式：按成功请求的固定成本计费。
- 参考请求估算：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`)

## Request body

Required: **yes**

### application/json

Schema:

```json
{
  "type": "object",
  "required": [
    "search_id"
  ],
  "properties": {
    "search_id": {
      "type": "string",
      "description": "要解释的搜索 ID"
    },
    "response_mode": {
      "type": "string",
      "enum": [
        "COMPLETE",
        "INCREMENTAL",
        "NON_STREAMING"
      ],
      "default": "NON_STREAMING",
      "description": "解释响应的格式。COMPLETE 和 INCREMENTAL 以服务器发送事件流式返回；NON_STREAMING 返回 JSON 响应。"
    },
    "language": {
      "type": "string",
      "default": "en",
      "description": "解释的语言代码（例如 en、zh、ar）",
      "example": "ar"
    },
    "detail_level": {
      "type": "string",
      "enum": [
        "BRIEF",
        "MODERATE",
        "DETAILED"
      ],
      "default": "MODERATE",
      "description": "解释的详细程度"
    }
  }
}
```

## Responses

### 200 — 成功的解释响应。COMPLETE/INCREMENTAL 流式返回 text/event-stream；NON_STREAMING 返回 application/json。

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

**application/json**

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

**text/event-stream**

Schema: string

```json
{
  "type": "string"
}
```

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response8Da310D1D213_ExplainSearchResponse

`#/components/schemas/Response8Da310D1D213_ExplainSearchResponse`

```json
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "生成的解释文本。"
    }
  },
  "description": "当 response_mode 为 NON_STREAMING 时返回的 JSON 解释响应。"
}
```
