> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取趋势

> 按 Yahoo WOEID（Where On Earth ID）获取某个地区的热门话题，可选 count（默认 30）。

按 Yahoo WOEID（Where On Earth ID）获取某个地区的热门话题，可选 `count`（默认 30）。适合用于实时了解某个市场当下在讨论什么——对内容发布时机把握和捕捉新兴话题很有用。

在 `trends` 下返回话题名称和热度。

选定某个话题后，可用 [`get_twitter_tweet_advanced_search`](/docs/zh/api-reference/twitter/get_twitter-tweet-advanced-search) 搜索其相关帖子。

<Note>
  **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
  Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
  Allow，不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
  [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。
</Note>

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/twitter/get_twitter-trends)


## OpenAPI

````yaml openapi/zh/twitter-trend.json GET /twitter/trends
openapi: 3.0.3
info:
  title: TwitterAPI Unified API
  version: 1.0.0
  description: TwitterAPI 端点的统一 OpenAPI 3.0 规范。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /twitter/trends:
    get:
      tags:
        - https://docs.twitterapi.io/api-reference/endpoint/get_trends
      summary: 获取趋势
      description: >-
        按 Yahoo WOEID（Where On Earth ID）获取某个地区的热门话题，可选 `count`（默认
        30）。适合用于实时了解某个市场当下在讨论什么——对内容发布时机把握和捕捉新兴话题很有用。在 `trends`
        下返回话题名称和热度。选定某个话题后，可用 `get_twitter_tweet_advanced_search` 搜索其相关帖子。
      operationId: get_twitter_trends
      parameters:
        - name: woeid
          in: query
          required: true
          schema:
            type: integer
            format: int64
          description: 位置的 WOEID。示例：2418046。
        - name: count
          in: query
          required: false
          schema:
            type: integer
            format: int64
            default: 30
            minimum: 30
          description: 要返回的趋势数量。默认值为 30。
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrendsResponse'
components:
  schemas:
    TrendsResponse:
      type: object
      properties:
        trends:
          type: array
          items:
            $ref: '#/components/schemas/Trend'
        status:
          type: string
          enum:
            - success
            - error
        msg:
          type: string
    Trend:
      type: object
      properties:
        name:
          type: string
        target:
          type: object
          properties:
            query:
              type: string
        rank:
          type: integer
          format: int64
        meta_description:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.