Skip to content

← API reference

Reported road traffic accidents in the address's kommune, fylke and the country

traffic_accidents10 fields9 of these fields open in the demo
Source
SSB 12044
Geography
Municipality
Reported stale after
400 days
Access
Requires an API key granted this section
Contract version
1

What this does not say

Quoted verbatim from the section’s warnings field, exactly as the API returns it. They are not translated: a translation would show something other than what your response actually contains.

  • Annual totals for the address's kommune, its fylke and Norway, never incidents at or near the address. A kommune re-coded in the 2020 or 2024 reforms is followed across its codes (region_code says which code carried each year); a merged kommune's pre-merger years are those of the kommune that kept the name.
  • killed and injured are null where the collected rows do not carry them.

Fields

4 of 10 fields are value fields — the ones that decide whether a record actually says anything. The rest are context: identifiers, codes and timestamps. Fields marked “open” return values to anonymous callers; the rest require a key.

FieldTypeRoleDemo
table_idstring | nullcontextopen
region_codestring | nullcontextopen
region_namestring | nullcontextopen
region_scopestring | nullcontext—
time_periodstring | nullcontextopen
accidentsinteger | nullvalueopen
accidents_trendobject | nullvalueopen
killedinteger | nullvalueopen
injuredinteger | nullvalueopen
updated_atstring | nullcontextopen

Fetch this section

curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643?include=traffic_accidents"

# paginated, one section at a time
curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643/sections/traffic_accidents?limit=25"

Try it now

This is a real call against the public demo, from here. What appears below is what the API returned — not a sample.