# 获取趋势

**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"
    }
  }
}
```
