T

Twitter/X API · Locations

by Twitter/X API

GETBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

List the geographic locations available for Twitter/X trends, including WOEIDs, place types and country details.

Endpoint

GET https://twitter.use.x402atlas.com/locations

4

Calls / 30d

3

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://twitter.use.x402atlas.com/locations", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://twitter.use.x402atlas.com/locations" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "location_count": 2,
  "locations": [
    {
      "name": "Worldwide",
      "place_type": "Supername",
      "place_type_code": 19,
      "woeid": 1
    },
    {
      "country": "United States",
      "country_code": "US",
      "name": "Los Angeles",
      "parent_woeid": 23424977,
      "place_type": "Town",
      "place_type_code": 7,
      "woeid": 2442047
    }
  ],
  "queried_at": "2026-07-26T12:00:00Z"
}

Payment details

Pay to0x51d577c8cbb8b3fb1ba0ce31c7923cc27a07f78b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from Twitter/X API & similar services