X

X Trends API

The Trends API from X — 1 operation(s) for trends.

OpenAPI Specification

x-trends-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: X API v2 Posts Trends API
  version: '2.0'
  description: 'The X (formerly Twitter) API v2 provides programmatic access to posts, users,

    spaces, direct messages, lists, and trends. Endpoints derived from the public

    X API v2 introduction documentation at docs.x.com.

    '
  contact:
    name: X Developer Platform
    url: https://docs.x.com/x-api/introduction
servers:
- url: https://api.x.com/2
  description: X API v2 production server
security:
- BearerAuth: []
tags:
- name: Trends
paths:
  /trends/by/woeid/{woeid}:
    get:
      tags:
      - Trends
      summary: Retrieve trending topics for a Where On Earth ID
      operationId: getTrendsByWoeid
      parameters:
      - name: woeid
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Trends for the location
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'App-only authentication using an OAuth 2.0 Bearer Token issued by the

        X Developer Platform, passed via the Authorization header.

        '