# 加密新闻

**API:** Data API

**Endpoint:** `GET /v1/beta/coingecko/news`

**Tags:** CoinGecko

来自 CoinGecko 的加密新闻标题，可按 `coin_id`、`language` 和 `type`（`news` 或 `guides`）筛选，并用 `page` 和 `per_page` 分页。可用性警告：此端点仅限 CoinGecko Analyst 及以上套餐使用，在当前上游订阅下会返回 HTTP 401，响应体带有升级提示。在上游套餐变更之前，请视为不可用。如需当前可用的代币背景信息，`get_coingecko_coins_id` 会返回 `description` 和 `links`（含官方渠道）。

### 计费参考

- 计量方式：按请求参考。
- 参考请求估算：暂无。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 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 |
| --- | --- | --- | --- | --- |
| `coin_id` | query | no | string | 按 CoinGecko 币种 ID 筛选新闻。 |
| `language` | query | no | string | 按语言筛选新闻。 |
| `type` | query | no | string, enum: "news", "guides" | 按文章类型筛选。 |
| `page` | query | no | integer, default: 1 | 分页浏览结果。 |
| `per_page` | query | no | integer, default: 100 | 每页结果总数。 |

## Responses

### 200 — 新闻文章数组。

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

**application/json**

Schema: array

```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "title": {
        "type": "string"
      },
      "url": {
        "type": "string"
      },
      "image": {
        "type": "string"
      },
      "author": {
        "type": "string"
      },
      "posted_at": {
        "type": "string"
      },
      "type": {
        "type": "string"
      },
      "source_name": {
        "type": "string"
      },
      "related_coin_ids": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "additionalProperties": true
  }
}
```

Example:

```json
[
  {
    "title": "Example market news",
    "url": "https://example.com/article",
    "posted_at": "2026-09-01T00:00:00Z",
    "source_name": "Example Publisher"
  }
]
```

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

### 401 — 上游提供方返回的 CoinGecko 套餐限制或授权错误。

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "object",
      "additionalProperties": true
    },
    "error": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
```

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

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

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

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

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

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

### default — 操作失败。联系 Felo 支持时请保留响应的请求 ID。
