Cities Lookup
CitiesLookupCities Lookup: Cities Lookup is a city search API that searches over 150,000 global cities to find country codes, population counts, and city size classifications by name, with an optional country filter. Paid plans add region codes, capital status, GeoJSON coordinates and custom match limits. (Cost: 2 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"city": "<city>"
},
"name": "CitiesLookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | The city name for which you want to get the data (e.g., New York) | |
| limit | No | Limit number of cities that match your search criteria | |
| country | No | Two-letter ISO country code to restrict matches to one country (e.g., US) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |