InfraNode.dev

GET /api/v1/cities/{slug}/base

City master data from Wikidata

Returns a city's population, area and geo coordinates from Wikidata in the canonical envelope with attribution and license tag. If the source is disabled, the route responds with 200, data=null and meta.source_status="disabled" (never 5xx). If the upstream is down and no cached value exists, it returns 503 with a hint pointing to GET /api/v1/health.

Parameters

Name In Required Type Description
slug path yes string

Code samples

curl "https://infranode.dev/api/v1/cities/hamburg/base"

Try it