image

SteadyAPI already has a marketing note about X data. It does not show how to pull the trend list for a place. This guide uses the trends endpoint, plus the location list that supplies a Where On Earth id.

👉 To access these endpoints, you must obtain an API key: https://steadyapi.com/register


Authentication

Every call uses a Bearer token from your SteadyAPI dashboard.

Documentation:
https://docs.steadyapi.com/#authenticating-requests

headers = {
  'Authorization': 'Bearer YOUR_API_KEY'
}

1. Pick a location

Trends take a Where On Earth id. The default is 2459115 (United States). Worldwide is 1. The location list returns the rest.

Endpoint: GET /v1/twitter/woeid

Documentation:
https://docs.steadyapi.com/#twitter-social-GETapi-v1-twitter-woeid

This call takes no query parameters. Each item in body includes name, country, countryCode, and woeid.


2. Fetch trends

Pass the woeid you want. Omit it to use the United States default.

Endpoint: GET /v1/twitter/trends

Documentation:
https://docs.steadyapi.com/#twitter-social-GETapi-v1-twitter-trends

Parameters

  • woeid — optional location id (default 2459115)

Request

GET https://api.steadyapi.com/v1/twitter/trends?woeid=2459115
Authorization: Bearer YOUR_API_KEY

Python

import requests

url = "https://api.steadyapi.com/v1/twitter/trends"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"woeid": 2459115}

response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
trends = response.json().get("body", [])

for trend in trends[:10]:
    print(trend.get("name"), trend.get("tweet_volume"), trend.get("query"))

Response fields

meta.woeid echoes the location you asked for. Each item in body includes:

  • name — trend label
  • query — search query for that trend
  • url — link to the trend search
  • tweet_volume — tweet volume when the source provides it

Practical use

Poll one woeid on a schedule and store name plus tweet_volume. Switch the id when you want another country or city from /v1/twitter/woeid.

👉 Get your API key and track trends: https://steadyapi.com/register

How to Get NHL Scores Using SteadyAPI Sep 25, 2026

How to Get NHL Scores Using SteadyAPI

Learn how to fetch NHL scores with SteadyAPI. Pull a day's games, including both clubs, the venue, and the game state.

How to Track Trending Topics on X Using SteadyAPI Sep 25, 2026

How to Track Trending Topics on X Using SteadyAPI

Learn how to pull trending topics on X with SteadyAPI. Choose a location id, then read trend names, queries, and tweet volume.

How to Search Flights Using SteadyAPI Sep 25, 2026

How to Search Flights Using SteadyAPI

Learn how to search flights with SteadyAPI. Resolve an airport code, then pull offers, times, carriers, and prices from the Booking.com flight endpoints.

How to Build a Custom Real Estate Website Using a Realtor API Jun 28, 2026

How to Build a Custom Real Estate Website Using a Realtor API

A step-by-step developer's guide to building a custom real estate website. Learn how to implement address autocomplete, search filters, and property details with SteadyAPI.