# 搜索财务报表

**API:** Data API

**Endpoint:** `POST /v1/beta/financial/financials/search/screener`

**Tags:** Financial Data

查找符合数值条件的 ticker。请求体接收 `filters`——每项包含 `field`、`operator` 和 `value`——以及 `limit`。返回 `results`，包含 `ticker`、`currency`、`sector`、`industry` 以及所匹配的筛选字段。这是此处唯一无需预先知道 ticker 即可使用的工具；其他工具都需要输入 ticker。可筛选字段即 `get_financial_financial_metrics` 返回的指标名称。可用它构建候选列表，再用报表或指标工具逐一获取详情。

### 计费参考

- 计量方式：按成功请求的固定成本计费。
- 参考请求估算：0.02 美元。
- 参考客户倍率：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": [
    "filters"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "default": 10,
      "description": "要返回的最大结果数。"
    },
    "filters": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "field",
          "operator",
          "value"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "筛选条件。对于财务指标字段，请使用 'gt'、'lt'、'gte'、'lte'、'eq' 运算符。对于 'ticker' 和 'cik' 字段，请使用 'in' 运算符对多个值进行筛选。"
          },
          "operator": {
            "type": "string",
            "enum": [
              "gt",
              "lt",
              "gte",
              "lte",
              "eq",
              "in"
            ],
            "description": "比较运算符。'in' 运算符只能用于字段值为 'ticker' 或 'cik' 的情况，可对多个值进行筛选。"
          },
          "value": {
            "oneOf": [
              {
                "type": "number",
                "description": "单值运算符（gt、lt、gte、lte、eq）的比较值"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "使用 'in' 运算符时要比较的 ticker 或 cik 值数组"
              }
            ]
          }
        }
      },
      "minItems": 1,
      "description": "要应用到搜索的筛选对象数组。"
    }
  }
}
```

## Responses

### 200 — 搜索成功响应

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

**application/json**

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### ResponseE40Feb4D3D6B_FinancialsSearchResponse

`#/components/schemas/ResponseE40Feb4D3D6B_FinancialsSearchResponse`

```json
{
  "type": "object",
  "properties": {
    "search_results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string",
            "description": "公司的 ticker 代码。"
          },
          "report_period": {
            "type": "string",
            "format": "date",
            "description": "财务数据的报告期。"
          },
          "period": {
            "type": "string",
            "enum": [
              "annual",
              "quarterly",
              "ttm"
            ],
            "description": "财务数据的时间段。"
          },
          "currency": {
            "type": "string",
            "description": "财务数据的货币。"
          }
        },
        "additionalProperties": {
          "type": "string",
          "description": "基于搜索条件的其他财务指标。"
        }
      }
    }
  }
}
```
