Data
Place facts from Wikidata API
Resolve a city/region/country name to structured geographic facts from Wikidata (keyless) — country, type, administrative parent, capital, population, area, elevation, coordinates, timezones, and head of government. Answers 'what is the population of X', 'what country is X in', 'where is X located', 'what is the capital of X'.
Price$0.01per request
MethodPOST
Route/v1/data/kb-place
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
datawikidataplacegeographycitycountrypopulationentity
API URL
Integration docshttps://x402.hexl.dev/v1/data/kb-placeExample request
{
"query": "New York City"
}Example response
{
"id": "Q60",
"name": "New York City",
"description": "most populous city in the United States",
"country": "United States",
"instanceOf": [
"megacity"
],
"population": 8804190,
"coordinates": {
"latitude": 40.7127,
"longitude": -74.0059
},
"timezones": [
"Eastern Time Zone"
],
"url": "https://www.wikidata.org/wiki/Q60"
}Input schema
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"examples": [
"New York City",
"Q60"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}