Skip to content

← API reference

Reported crime, annual averages over two years

crime13 fields13 of these fields open in the demo
Source
SSB 08487
Geography
Municipality
Reported stale after
400 days
Access
Requires an API key granted this section
Contract version
1
In packages
prevention_context

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.

  • Area statistics, not household or street-level crime risk. Null and withheld values are not zero.

Fields

1 of 13 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
crime_type_codestring | nullcontextopen
crime_type_namestring | nullcontextopen
measure_codestring | nullcontextopen
measure_namestring | nullcontextopen
period_codestring | nullcontextopen
period_startstring | nullcontextopen
time_periodstring | nullcontextopen
valuenumber | nullvalueopen
source_statusstring | nullcontextopen
updated_atstring | nullcontextopen

Fetch this section

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

# paginated, one section at a time
curl -H "X-API-Key: $APPROACH_API_KEY" \
  "https://api.approach.no/api/v1/addresses/285717643/sections/crime?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.