Skip to content

← API reference

Current NVE and MET hazard warnings for the municipality

hazard_warnings10 fields10 of these fields open in the demo
Source
Varsom.no / MetAlerts
Geography
Municipality
Reported stale after
2 hours
Access
Requires an API key granted this section
Contract version
1
In packages
prevention_context, hazard_screen

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.

  • Regional warnings (flood, landslide, avalanche, weather) whose validity interval includes now for regions that include this municipality. Future, expired and unknown-validity warnings are excluded from this current section; retained history is not an active warning. No result means no matching active warning in our latest fetch, not safe conditions or confirmation that the source is current.

Fields

2 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
warning_idstring | nullcontextopen
warning_typestring | nullvalueopen
region_namestring | nullcontextopen
danger_levelinteger | nullvalueopen
danger_level_namestring | nullcontextopen
valid_fromstring | nullcontextopen
valid_tostring | nullcontextopen
main_textstring | nullcontextopen
advice_textstring | nullcontextopen
updated_atstring | nullcontextopen

Fetch this section

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

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