x_trends_locations
List X trends locations with names, WOEIDs, place types, and country codes, or resolve the nearest location from latitude and longitude. Use WOEIDs with x_trends to fetch local trending topics.
Instructions
List or resolve X trends locations. Without coordinates, returns X's complete trends location catalog: each location's name, WOEID, place type, parent WOEID, country and ISO country code. Pass those WOEIDs to x_trends for that location's trending topics. With both lat and long, resolves the single nearest catalog location instead of listing the catalog; both coordinates are required together.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x_trends_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude (-90 to 90) for nearest-location resolution; requires long. | |
| long | No | Longitude (-180 to 180) for nearest-location resolution; requires lat. |