Till innehållet
kart-api.se

Getting started

No registration. The first 200 calls per day per IP address are open, and map tiles never count against the quota.

Three calls

1. Where is this place?

curl 'https://api.kart-api.se/v1/geocode?q=Fridhem&limit=3'

Read spridning (spread) before you read results: Fridhem exists in hundreds of municipalities, and the three hits you got are not the whole truth. Add &kommunkod=0562 when you know which municipality you mean.

2. Which municipality is this point in?

curl 'https://api.kart-api.se/v1/kommun/lookup?lat=58.705&lon=15.77'

3. How high is it?

curl 'https://api.kart-api.se/v1/hojd?lat=58.705&lon=15.77'

What exists

GroupEndpoints
Geocoding/v1/geocode · /v1/geocode/reverse · /v1/ortnamn (place names)
Municipalities and areas/v1/kommun/{code} · /v1/kommun/lookup · /v1/kommun/{code}/grannar (neighbours) · /v1/postnummer/{postcode} · /v1/deso
Terrain and nature/v1/hojd (elevation) · /v1/marktacke (land cover) · /v1/hydrografi (water)
Live data/v1/trafik · /v1/trafik/{operator}
Registers/v1/skyddsrum (civil defence shelters) · /v1/avverkning (logging notifications) · /v1/befolkningsrutor (population grid) · /v1/valresultat (election results)
Basemap/v1/styles/ljus.json (light) · /v1/styles/morker.json (dark) · /v1/tiles/sverige-vektor.pmtiles · /v1/tiles/terrain-rgb-{code}-1m.pmtiles
Rendering/v1/render/karta · /v1/render/vinjett
Routing/v1/route/isochrone · /v1/route/route
Agents/v1/mcp

The full contract with every field: openapi.json. That file is the source; this page is a shortcut.

What is NOT here, and why

Cadastral boundaries, building footprints, the national address register and aircraft positions exist in the platform but are not part of the public API. Lantmäteriet's terms for the first three bind the processing to the purpose we applied for — journalism — and an open API is somebody else's purpose. Aircraft positions are ODbL-licensed in a way that makes a JSON endpoint a database in its own right.

We would rather write it out than let you discover a gap. If you need one of them, get in touch.

Limits