# Explain search results

**API:** Data API

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

**Tags:** Scholar Search

Explain previously fetched search results. Supply the search_id returned by a Scholar search, with optional detail_level and language. response_mode=NON_STREAMING returns JSON with message; COMPLETE and INCREMENTAL return text/event-stream, where each event contains the accumulated explanation. This operation explains an existing search and does not start another search.

### Pricing reference

- Metering: Fixed successful-request cost basis.
- Reference request estimate: USD 0.01.
- Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

## 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 of the search to explain"
    },
    "response_mode": {
      "type": "string",
      "enum": [
        "COMPLETE",
        "INCREMENTAL",
        "NON_STREAMING"
      ],
      "default": "NON_STREAMING",
      "description": "Format of the explanation response. COMPLETE and INCREMENTAL stream server-sent events; NON_STREAMING returns a JSON response."
    },
    "language": {
      "type": "string",
      "default": "en",
      "description": "Language code for the explanation (e.g., en, zh, ar)",
      "example": "ar"
    },
    "detail_level": {
      "type": "string",
      "enum": [
        "BRIEF",
        "MODERATE",
        "DETAILED"
      ],
      "default": "MODERATE",
      "description": "Level of detail in the explanation"
    }
  }
}
```

## Responses

### 200 — Successful explanation response. COMPLETE/INCREMENTAL stream text/event-stream; NON_STREAMING returns application/json.

Headers:
- `X-Request-Id` (string) — Request identifier to include when contacting Felo support.

**application/json**

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

**text/event-stream**

Schema: string

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

### 400 — The request could not be processed. Check the request parameters.

### 401 — A valid Felo API key is required.

### 402 — The request cannot proceed because a billing requirement is not met.

### 403 — The account is not permitted to perform this operation.

### 429 — A request or spending limit has been reached.

### 502 — The service could not complete the request.

### 503 — The API or billing service is temporarily unavailable.

### 504 — The service timed out while processing the request.

### default — Error response; upstream passthrough responses may use provider formats

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response8Da310D1D213_ExplainSearchResponse

`#/components/schemas/Response8Da310D1D213_ExplainSearchResponse`

```json
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "Generated explanation text."
    }
  },
  "description": "JSON explanation response returned when response_mode is NON_STREAMING."
}
```
