82trust / 100

Locations

by Twitter/X API in News & content

x402 APIPassing, checked 5 h ago

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

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
108 ms typical, 108 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://twitter.use.x402atlas.com/locations"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftwitter.use.x402atlas.com%2Flocations
const res = await pay("https://twitter.use.x402atlas.com/locations");
console.log(await res.json());

Example output

{
  "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"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402108 ms$0.006