Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

X Trends API

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

X Trends API is one of 4 APIs that X publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Trends. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 1 operation across 1 path. It is described by OpenAPI 3.1.0, at version 2.0.

Requests are made against a single base URL, https://api.x.com/2.

1 operations 1 paths 0 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0
Server
https://api.x.com/2
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

X Trends API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — App-only authentication using an OAuth 2.0 Bearer Token issued by the X Developer Platform, passed via the Authorization header.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Trends 1
GET
/trends/by/woeid/{woeid}
Retrieve trending topics for a Where On Earth ID
getTrendsByWoeid 1 param → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

x-trends-api-openapi.yml Raw ↑

Other APIs X publishes across the network.