# 取得趨勢

**API:** Data API

**Endpoint:** `GET /v1/beta/twitter/trends`

**Tags:** Twitter / X

取得某個地區的熱門話題，地區以其 Yahoo WOEID（Where On Earth ID）識別，可選用 `count`（預設 30）。用它即時掌握特定市場當下在討論什麼——有助於安排內容時機或發現新興話題。趨勢名稱與熱度位於 `trends` 之下。選定趨勢後，以 `get_twitter_tweet_advanced_search` 搜尋相關貼文。

### 計費參考

- 計量方式：方案資源單位。
- 參考請求估算：0.00015 美元。
- 單位成本基準：1e-05 美元。
- 資源單位：`provider_credit`。
- 參考客戶乘數：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`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `count` | query | no | string |  |
| `woeid` | query | no | string |  |

## Responses

### 200 — 成功回應

Headers:
- `X-Request-Id` (string) — 聯絡 Felo 支援時需提供的請求識別碼。

**application/json**

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

### 400 — 無法處理該要求。請檢查請求參數。

### 401 — 需要有效的 Felo API 金鑰。

### 402 — 由於未符合計費要求，要求無法繼續。

### 403 — 該帳戶無權執行此操作。

### 429 — 已達到要求或支出上限。

### 502 — 服務無法完成該要求。

### 503 — API 或計費服務暫時無法使用。

### 504 — 服務在處理要求時逾時。

### default — 錯誤回應；上游透傳回應可能採用供應商格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response0D1E98E052C3_Trend

`#/components/schemas/Response0D1E98E052C3_Trend`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "target": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        }
      }
    },
    "rank": {
      "type": "integer",
      "format": "int64"
    },
    "meta_description": {
      "type": "string"
    }
  }
}
```

### Response0D1E98E052C3_TrendsResponse

`#/components/schemas/Response0D1E98E052C3_TrendsResponse`

```json
{
  "type": "object",
  "properties": {
    "trends": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Response0D1E98E052C3_Trend"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "success",
        "error"
      ]
    },
    "msg": {
      "type": "string"
    }
  }
}
```
