Skip to content

SWEDEN API

Locations in Sweden

A point in Sweden, given as lat,lon, placed in SCB’s DeSO area and municipality, with sections read live from Swedish open sources. Same keys and allowance as the address API, but the Sweden capability must be on the subscription. A point counts as one lookup per day; /resolve is free. With neither sections nor package you get the core package; package=all returns every section, and a subset costs the same single lookup. Swedish addresses and properties are not included: Lantmäteriet’s registers need an agreement we do not have yet.

Full answer or a subset: sections, package and meta work the same in every API.

API version
1.4.0
Endpoints
5
Sections
9
Contents

Endpoints

https://api.approach.no/api/v1/sweden/locations · OpenAPI contract

GET

/catalog

no key required

Discover versioned section and field contracts. Unauthenticated. Cacheable: ETag, 304 on If-None-Match. Narrow with category=, kind=, package= (comma-separated where several make sense) and project each descriptor with fields=. A deprecated section carries deprecated {since, sunset, successor}.

Parameters

NameTypeBounds and defaultDescription
category
query
string—Only sections in these categories (comma-separated).
kind
query
string—Only sections of these kinds (comma-separated).
package
query
string—Only the sections of this package; unknown is 400 unknown_package.
fields
query
string—Project each descriptor to these members (id is always kept); an unknown member is 400 invalid_parameter.
Datakilde-Version
header
stringdatePin a calendar date (YYYY-MM-DD), independently of the release channel. Absent means latest. A date between releases resolves to the newest contract on or before it; a date before the first resolves to the first, and a date after the latest resolves to the latest. Read Datakilde-Version on the response for the actual resolution. This does not select a historical source snapshot; only documented compatibility shims preserve older response behavior.
Datakilde-Channel
header
stringstable | preview
default stable
Independent of Datakilde-Version. Omit for stable. Preview on customer data requires an explicit preview subscription grant; packages, test keys and date pins do not grant it. Ungranted preview is refused with preview_channel_not_granted (403), never silently downgraded. Public metadata remains stable.

Responses and error codes

HTTPMeaningCodes in the body
200Section catalog (each section with its category, kind, sensitivity and time shape), the categories in display order, packages and the defaults an unqualified request gets.—
400Unknown package or fields member
GET

/catalog/sections/{section}

no key required

Get one section's contract. Unauthenticated. The catalogue descriptor of one section.

Parameters

NameTypeBounds and defaultDescription
section
path · required
string——
Datakilde-Version
header
stringdatePin a calendar date (YYYY-MM-DD), independently of the release channel. Absent means latest. A date between releases resolves to the newest contract on or before it; a date before the first resolves to the first, and a date after the latest resolves to the latest. Read Datakilde-Version on the response for the actual resolution. This does not select a historical source snapshot; only documented compatibility shims preserve older response behavior.
Datakilde-Channel
header
stringstable | preview
default stable
Independent of Datakilde-Version. Omit for stable. Preview on customer data requires an explicit preview subscription grant; packages, test keys and date pins do not grant it. Ungranted preview is refused with preview_channel_not_granted (403), never silently downgraded. Public metadata remains stable.

Responses and error codes

HTTPMeaningCodes in the body
200{api_version, catalog_version, section}—
404section_not_found
GET

/resolve

Place a point: DeSO area, municipality and county, without reading any section.

Parameters

NameTypeBounds and defaultDescription
lat
query · required
number55–69.2WGS84 latitude
lon
query · required
number10.5–24.3WGS84 longitude
Datakilde-Version
header
stringdatePin a calendar date (YYYY-MM-DD), independently of the release channel. Absent means latest. A date between releases resolves to the newest contract on or before it; a date before the first resolves to the first, and a date after the latest resolves to the latest. Read Datakilde-Version on the response for the actual resolution. This does not select a historical source snapshot; only documented compatibility shims preserve older response behavior.
Datakilde-Channel
header
stringstable | preview
default stable
Independent of Datakilde-Version. Omit for stable. Preview on customer data requires an explicit preview subscription grant; packages, test keys and date pins do not grant it. Ungranted preview is refused with preview_channel_not_granted (403), never silently downgraded. Public metadata remains stable.

Responses and error codes

GET

/{id}

Get all granted sections.

Parameters

NameTypeBounds and defaultDescription
id
path · required
string^-?[0-9]{1,2}(\.[0-9]{1,8})?,-?[0-9]{1,3}(\.[0-9]{1,8})?$WGS84 latitude and longitude in decimal degrees, comma-separated, e.g. 58.94,11.17
sections
query
array<string>—Comma-separated section ids, each at most once. A subset fetches fewer providers and answers faster; it costs the same single lookup per subject per day as a full profile. Restricted or unavailable sections are returned with a status, not omitted. Where the family offers fields=, it selects fields within sections.
include
query
array<string>—Alias of sections, the same on every family. Send sections or include, never both.
package
query
stringall | core | flood | area_contextCurated preset from /catalog; cannot be combined with sections. Grants still apply. With neither sections nor package the default package (core) is returned with X-Sections-Hint; package=all returns every section.
meta
query
stringfull | compact
default full
full repeats each section's complete source descriptor; compact keeps {id, version, access, max_age_hours, max_age_days} and the quality verdict. The descriptor is the /catalog entry for that id and version.
limit
query
integer1–100
default 100
—
Datakilde-Version
header
stringdatePin a calendar date (YYYY-MM-DD), independently of the release channel. Absent means latest. A date between releases resolves to the newest contract on or before it; a date before the first resolves to the first, and a date after the latest resolves to the latest. Read Datakilde-Version on the response for the actual resolution. This does not select a historical source snapshot; only documented compatibility shims preserve older response behavior.
Datakilde-Channel
header
stringstable | preview
default stable
Independent of Datakilde-Version. Omit for stable. Preview on customer data requires an explicit preview subscription grant; packages, test keys and date pins do not grant it. Ungranted preview is refused with preview_channel_not_granted (403), never silently downgraded. Public metadata remains stable.

Responses and error codes

HTTPMeaningCodes in the body
200Subject with each section's own status
304Not modified: If-None-Match named the current ETag. No body, never counted.—
400Invalid id, section, cursor or parameter
401Authentication required
402Account request allowance exhausted
403Endpoint or section not granted
404Not found
413—
429Rate limit exceeded
500—
503Source unavailable
GET

/{id}/sections/{section}

Get one section with pagination.

Parameters

NameTypeBounds and defaultDescription
id
path · required
string^-?[0-9]{1,2}(\.[0-9]{1,8})?,-?[0-9]{1,3}(\.[0-9]{1,8})?$WGS84 latitude and longitude in decimal degrees, comma-separated, e.g. 58.94,11.17
section
path · required
stringriver_flood | coastal_flood | cloudburst_mapping | wells | protected_nature | weather_warnings | weather | municipal_indicators | police_events—
cursor
query
string——
limit
query
integer1–100
default 100
—
meta
query
stringfull | compact
default full
full repeats each section's complete source descriptor; compact keeps {id, version, access, max_age_hours, max_age_days} and the quality verdict. The descriptor is the /catalog entry for that id and version.
Datakilde-Version
header
stringdatePin a calendar date (YYYY-MM-DD), independently of the release channel. Absent means latest. A date between releases resolves to the newest contract on or before it; a date before the first resolves to the first, and a date after the latest resolves to the latest. Read Datakilde-Version on the response for the actual resolution. This does not select a historical source snapshot; only documented compatibility shims preserve older response behavior.
Datakilde-Channel
header
stringstable | preview
default stable
Independent of Datakilde-Version. Omit for stable. Preview on customer data requires an explicit preview subscription grant; packages, test keys and date pins do not grant it. Ungranted preview is refused with preview_channel_not_granted (403), never silently downgraded. Public metadata remains stable.

Responses and error codes

HTTPMeaningCodes in the body
200One section; follow next_cursor for more records
304Not modified: If-None-Match named the current ETag. No body, never counted.—
400Invalid id, section, cursor or parameter
401Authentication required
402Account request allowance exhausted
403Endpoint or section not granted
404Not found
413—
429Rate limit exceeded
500—
503Source unavailable

Sections

IdTitle and sourceDetails
river_floodRiver and lake flood mapping at the point (MCF)
Myndigheten för civilt försvar (MCF, formerly MSB) översvämningskarteringar, live at the point
Caveats
  • MCF maps selected watercourses and lakes, not all of Sweden. not_found means the point is outside every mapped extent; it does not mean the point cannot flood, because the watercourse may never have been mapped.
  • The maps are overview mappings (översiktliga karteringar) intended for planning; most are based on a 2 m elevation model, some older ones on 50 m. They are not a site assessment.
  • Climate-adjusted scenarios assume end-of-century flows as MCF states them for each mapping; the scenario set differs between mappings.
  • Source: Myndigheten för civilt försvar (MCF), översvämningskarteringar. Service metadata states no fees and no access constraints.
6 fields · address
coastal_floodLand under water at raised sea levels along the coast (MCF)
Myndigheten för civilt försvar (MCF, formerly MSB) kustöversvämning, live at the point
Caveats
  • A static level model: land below the stated sea water level in RH 2000. It does not model waves, wind set-up, storm duration, barriers or drainage, and is not a storm-surge forecast or return period.
  • Levels are tested at 0.5, 1.0, 1.5, 2.0, 3.0, 4.0 and 5.0 m, so the answer is a band between highest_dry_level_m and lowest_flooding_level_m, not an exact elevation.
  • MCF removed islands smaller than 5 000 m² from the layers; they show as flooded at every level.
  • not_found with reason above_5_m_sea_level means the point stays dry at 5.0 m; inland points answer the same way.
  • Source: Myndigheten för civilt försvar (MCF). Service metadata states no fees and no access constraints.
4 fields · address
cloudburst_mappingMunicipal cloudburst mapping covering the point (MCF overview)
MCF Skyfallskartering översikt (mappings by municipalities and county boards), live at the point
Caveats
  • This is an index of which areas have a cloudburst mapping, not the mapping itself: the depth maps are held by the municipality. Ask the municipality for the result.
  • not_found means MCF's overview lists no mapping here; a municipality may have one that has not been reported to MCF.
  • Source: Myndigheten för civilt försvar (MCF).
6 fields · municipality
wellsDrilled wells within 500 m (SGU brunnsarkivet)
Sveriges geologiska undersökning (SGU) brunnsarkivet, OGC API Features (CC0), live at the point
Caveats
  • Figures are what drillers reported to SGU, often at the time of drilling; capacity and water level change over time and are not measured by SGU.
  • Well positions carry an accuracy class; many are only accurate to within 100 m. The distance is to the recorded position.
  • A neighbouring well's yield suggests, but does not establish, what a new well here would give. Energy wells (geothermal) are included and do not supply water.
  • Property designations recorded with each well are not returned.
  • Source: Sveriges geologiska undersökning (SGU), CC0.
11 fields · nearby
protected_natureProtected nature at and around the point (Naturvårdsregistret)
Naturvårdsverket, Naturvårdsregistret skyddade områden (CC0), WFS live at the point
Caveats
  • contains_point false means the area intersects a 2 × 2 km square around the point, not that it lies within a stated distance; up to 50 areas are returned.
  • Protection constrains what may be built or done, under the decision for each area; read the decision before relying on a constraint.
  • Source: Naturvårdsverket, Naturvårdsregistret, CC0.
8 fields · nearby
weather_warningsSMHI warnings in force at the point
SMHI impact-based warnings (IBWW) open data (CC BY 4.0), live
Caveats
  • Only warnings whose warning area contains the point are listed. A warning for an area that ends nearby is not.
  • not_found means no SMHI warning is in force at the point at the time of the call; it is not a forecast of calm weather.
  • Source: SMHI, CC BY 4.0.
10 fields · address
weatherLatest observations at the nearest SMHI stations
SMHI meteorological observations (metobs) open data (CC BY 4.0), live
Caveats
  • Observations are from the nearest active station for each parameter, which can be tens of kilometres away and at a different height; they describe the station, not the point.
  • value is null when the station has not reported in the latest hour.
  • Source: SMHI, CC BY 4.0.
9 fields · nearby
municipal_indicatorsMunicipal key figures (Kolada)
Kolada (RKA, Rådet för främjande av kommunala analyser), CC BY 4.0, live
Caveats
  • Each figure is the latest year Kolada has for the municipality; years differ between indicators.
  • Figures describe the whole municipality, not the point.
  • Källa: Kolada. CC BY 4.0. The use of Kolada does not imply any partnership with RKA.
7 fields · municipality
police_eventsPolice events reported in the municipality, last 30 days
Polisen öppna data, händelser (polisen.se/api/events), ingested by Approach
Caveats
  • Polisen's feed lists a selection of events the police chose to publish, placed at municipality or county level; it is not crime statistics and not a count of crimes at the point.
  • Events placed only at county level are not counted for a municipality.
  • The feed holds recent events only; history before Approach began collecting is absent, so early periods undercount.
  • Source: Polisen, öppna data.
5 fields · municipality