# 加密新聞

**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。
