Kildeverk

v0.2.1
io.github.Solvelangseth/kildeverk Checked 2 days ago Published 7 days ago

Live Norwegian public data: transit, SSB statistics, weather, roads, laws, with source and licence.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

statistics_search_tables Search statistics tables

Find Statistics Norway (SSB) tables by keyword, or Sweden's, Finland's or Iceland's with `country`. Returns table ids, titles, the period each table covers and when it was last updated. Start here for any question about official statistics (population, prices, employment, housing, trade and so on), then call statistics_describe_table on a promising table with the same country.

ParameterTypeDescription
query *stringWords to look for in table titles, e.g. 'population municipality'.
countrystring'no' Norway (SSB), 'se' Sweden, 'fi' Finland, 'is' Iceland.
include_discontinuedbooleanAlso tables no longer updated (Norway and Sweden).
langstringTitles and labels: 'en' or the country's own. Codes are the same.
limitintegerMax results.
pageintegerResult page.
updated_within_daysintegerOnly tables updated in the last N days.

statistics_describe_table Describe a statistics table

Show what a table contains before fetching data: its dimensions and their value codes, units, available codelists (such as counties or 5-year age groups) and footnotes. Use value_search to find a code, e.g. the code for a municipality. The answer includes example_arguments that statistics_get_data accepts as they are.

ParameterTypeDescription
table_id *stringTable id, e.g. '07459'. Find ids with statistics_search_tables.
countrystring'no' Norway (SSB), 'se' Sweden, 'fi' Finland, 'is' Iceland.
langstringTitles and labels: 'en' or the country's own. Codes are the same.
value_searchstringOnly list dimension values whose code or label contains this text, e.g. 'Bergen'. Use it to find the code for a place or category.
values_limitintegerMost values to list per dimension.

statistics_get_data Get data from a statistics table

Fetch numbers from a table as labelled rows. Choose values per dimension in `select` with codes from statistics_describe_table: a list of codes, '*' for all, {'latest': N} for the last N periods, or {'from': code}. Dimensions you leave out are totalled where the table allows it; time defaults to the latest period. The size is checked before anything is fetched.

ParameterTypeDescription
table_id *stringTable id, e.g. '07459'. Find ids with statistics_search_tables.
codelistsobjectOptional codelist per dimension, e.g. {'Region': 'agg_Fylker2024'} to get counties. Codes in `select` then refer to that codelist.
countrystring'no' Norway (SSB), 'se' Sweden, 'fi' Finland, 'is' Iceland.
langstringTitles and labels: 'en' or the country's own. Codes are the same.
max_rowsintegerMax rows returned.
selectobjectValues to fetch per dimension code. A time dimension left out gets its latest value; other dimensions that can be omitted are totalled.

regions_list List municipalities or counties

List every Norwegian municipality or county with its code and name, as of today or any date since 1960. Use it to get the current codes, or the codes that applied in a past year.

ParameterTypeDescription
level *string'municipality' (kommune) or 'county' (fylke).
on_datestringDefaults to today.

regions_resolve Find a municipality or county

Look up a Norwegian municipality or county by name or code, including former ones. Each match shows when the code was valid and what it is part of today, so 'Tromsø' returns 1902 (until 2019), 5401 (2020-2023) and 5501 (from 2024).

ParameterTypeDescription
query *stringA name or part of one (e.g. 'Tromsø', 'Viken') or a code (e.g. '1902').
levelstringLeave out to search both levels.
limitintegerMax results.

regions_changes Region changes over time

List the mergers, splits, renumberings and renamings of Norwegian municipalities or counties between two dates, grouped into events. Filter by code to see one region's history.

ParameterTypeDescription
from_date *stringFirst day to include, e.g. 2019-01-01.
level *string'municipality' (kommune) or 'county' (fylke).
codestringOnly changes involving this code.
to_datestringLast day to include; defaults to today.

regions_harmonise Convert a regional series to other borders

Convert values by municipality or county to the borders of another date, so a series spanning the 2020 and 2024 reforms lines up. Mergers are summed for additive values and renumberings are followed. Anything that cannot be converted exactly (a split, a missing piece, a rate that would need weights) is listed in `unconverted` with the reason, never estimated. Rows usually come from statistics_get_data: pass {region, period, value}.

ParameterTypeDescription
level *string'municipality' (kommune) or 'county' (fylke).
measure *string'additive' if values can be summed across regions (counts, totals, areas). 'non_additive' for rates, shares, averages and indices: these are only renumbered, never summed.
rows *arrayThe series: region, period, value.
target *stringBorders to convert to: '2020' (2020-2023), '2024' (2024 onwards), 'latest' (today), or a date like '2018-01-01'.

companies_get Look up a legal entity

Get one entity by its nine-digit organisation number: name, legal form, industries, addresses, employees, share capital, register memberships, bankruptcy and liquidation status, former names, roles (board, managing director, auditor and others, by name) and who may sign, and optionally its sub-units. Works for sub-units too. Birth dates and contact details are not included; for revenue and results, use companies_accounts. follow_up points to food inspections and work approvals.

ParameterTypeDescription
org_number *stringNine-digit organisation number, e.g. '923609016'.
include_subunitsbooleanAlso list the entity's establishments (sub-units).
rolesbooleanBoard, managing director, auditor and other roles, and who may sign. Names only; birth dates are left out.
subunits_limitintegerEstablishments to list.

city_bikes City bikes now (Oslo, Bergen, Trondheim)

City bike stations in Oslo, Bergen or Trondheim right now, from the open GBFS feeds: bikes and free docks at each station, the city's totals, and the stations nearest a point or matching a name.

ParameterTypeDescription
city *stringWhose bike system.
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
namestringWords in a station's name.

companies_accounts Annual accounts of a company

Key figures from a Norwegian company's filed annual accounts (Brreg's Regnskapsregisteret), the last three years: revenue, operating profit, result, assets, equity, debt and cash, with margins and change; group accounts for parent companies. In the company's reporting currency.

ParameterTypeDescription
org_number *stringNine-digit organisation number, e.g. '923609016'.
kindstring'company' for the entity's own accounts, 'group' for a parent company's consolidated accounts.
yearintegerOne year; leave out for all that are open.

weather_forecast Weather forecast for a point

Forecast from MET Norway for any latitude and longitude: temperature, precipitation, wind, cloud, humidity, pressure and a weather symbol. Hourly for about the first 2.5 days, then 6-hourly up to 10 days. Needs no configuration.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
altitude_mintegerGround height in metres. Improves temperature in hilly terrain; MET estimates it if left out.
hoursintegerHow far ahead, from the first step.

weather_find_stations Find weather stations

Find MET Norway weather stations nearest a point, or by name. Returns station ids for weather_station_elements and weather_observations, with location, elevation and operator. Closed stations are left out unless asked for.

ParameterTypeDescription
include_closedbooleanAlso return stations no longer in use.
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
namestringPart of the station's name.

weather_station_elements What a weather station measures

List what a MET Norway station measures (temperature, precipitation, snow depth and so on), at which time resolutions, and over which years. Use the element ids it returns in weather_observations.

ParameterTypeDescription
station *stringFrost station id, e.g. 'SN18700' (Oslo - Blindern). Find ids with weather_find_stations.
element_searchstringOnly elements whose id contains this text, e.g. 'precipitation'.

weather_observations Observed weather at a station

Measured weather from a MET Norway station over a period: hourly readings or daily and monthly aggregates, back to when the station opened. Use friendly element names like 'daily_mean_temperature' or 'daily_precipitation', or any Frost element id.

ParameterTypeDescription
elements *arrayWhat to fetch. Friendly names: temperature, daily_mean_temperature, daily_max_temperature, daily_min_temperature, hourly_precipitation, daily_precipitation, wind_speed, max_wind_gust, snow_depth, humi…
end *End of the period, not included.
start *First time included, e.g. '2024-01-01'.
station *stringFrost station id, e.g. 'SN18700' (Oslo - Blindern). Find ids with weather_find_stations.
max_rowsintegerMax rows returned.

weather_normals Climate normals at a weather station

30-year climate normals at a MET Norway station (Frost): monthly and yearly mean temperature and precipitation for 1991-2020 (or 1961-1990, 1931-1960). Give a year to compare its months with normal: was a month warmer or wetter than usual. Station ids from weather_find_stations.

ParameterTypeDescription
station *stringFrost station id, e.g. 'SN18700' (Oslo - Blindern). Find ids with weather_find_stations.
periodstringThe 30-year normal period; 1991-2020 is the current one.
yearintegerCompare this year's months with the normal: observed mean temperature and precipitation, the temperature difference and precipitation as per cent of normal.

weather_warnings Official weather warnings

MET Norway's official weather warnings for land and sea: wind, gale, rain, snow, ice, storm surge, forest fire danger and more, with level (yellow, orange, red), area, period, consequences and advice. Filter by point, county or land/sea; give a month for past warnings. For flood, landslide and avalanche warnings use the hazards_ tools.

ParameterTypeDescription
countystringCounty number as it was when the warning was issued, or a county name (resolved to today's number).
domainstringLand or sea.
geometrybooleanEach warning's area as GeoJSON, for maps.
languagestring'nb' for MET's Norwegian (bokmål) texts.
latnumberWarnings covering this point.
limitintegerMax results.
lonnumberLongitude, WGS84.
min_levelinteger1 green, 2 yellow, 3 orange, 4 red; compared with the highest level a warning reached.
monthstringA past month ('2023-08'); one not yet archived is read from the last 30 days. Leave out for warnings in force or announced now.

weather_lightning Lightning strikes

Lightning strikes detected by MET Norway: time, position, ground or cloud, and peak current, in the last minutes (default 15) or any past window, near a point or over the whole Nordic network.

ParameterTypeDescription
endstringEnd of the window (UTC if no offset); default now.
latnumberLatitude, WGS84.
limitintegerMax listed; 0 for the totals only.
lonnumberLongitude, WGS84.
minutesintegerHow far back to look.
radius_kmnumberAround lat/lon.

weather_nowcast Rain in the next two hours

MET Norway's radar nowcast for a point in the Nordic area: precipitation every five minutes for the next two hours, whether it is raining now and when rain starts or stops, plus the temperature and wind now. Use weather_forecast for anything beyond two hours.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.

sea_forecast Waves and sea temperature

MET Norway's ocean forecast for a point at sea along the Norwegian coast: wave height and direction, sea temperature, and current speed and direction, hourly for up to about eight days, with the highest waves ahead. The forecast is for the nearest sea grid point, which the result gives. For water level and tides, use sea_level.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
hoursintegerHow far ahead, from the first step.

air_quality_forecast Air quality forecast

MET Norway's air quality forecast at a place in Norway, hourly for about two days: the index (low to very high), the pollutant behind it, NO2, PM10, PM2.5 and ozone, and where the worst hour's pollution comes from (traffic, road dust, wood burning, shipping, industry).

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
areastringThe area the forecast is for: 'grunnkrets' (the smallest statistical area, a few streets), 'delomrade' (part of a municipality) or 'kommune' (the municipality).

water_find_stations Find hydrological stations

Find NVE's river, lake, snow and groundwater stations by name, municipality code, county, or distance from a point, optionally only those measuring a given parameter (e.g. 'discharge'). Each station lists its series with available resolutions and years, plus catchment size and flood statistics (mean annual and 5- to 50-year floods).

ParameterTypeDescription
countystringCounty name.
include_closedbooleanAlso closed stations.
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
municipalitystringMunicipality code, e.g. '4621' (Voss).
namestringPart of the name.
parameterstringOnly stations measuring this, e.g. 'discharge'.
radius_kmnumberWith lat and lon.
stationstringOne station by id.

water_observations Observed river and lake data

Measured hydrology at an NVE station: discharge, water level, water temperature, snow, groundwater and more, as daily or hourly means or raw readings. Leave out start and end for the latest value. Each value says whether NVE has quality-checked it, and gives the normal for that day of the year.

ParameterTypeDescription
station *stringNVE station id, three numbers with dots, e.g. '62.5.0'. Find ids with water_find_stations.
endNot included.
max_rowsintegerMax rows returned.
parameterstringOne of precipitation, water_level, discharge, water_temperature, reservoir_volume, air_temperature, snow_depth, snow_water_equivalent, groundwater_level, or a HydAPI parameter number.
resolutionstringTime step.
startLeave start and end out for the latest value only.

svalbard_place_names Svalbard place names (Norsk Polarinstitutt)

Svalbard's official place names near a point or by name, from Norsk Polarinstitutt's S0 Stedsnavn: the kind of feature, the distance, and what each name describes and where it comes from. On the mainland, use places_search.

ParameterTypeDescription
detailsbooleanAdd each name's description and origin.
latnumberIn Svalbard.
limitintegerMax results.
lonnumberLongitude, WGS84.
namestringPart of a name.
radius_kmnumberAround lat/lon.

power_plants Hydropower and wind power plants (NVE)

Power plants from NVE's registers: every hydropower plant in operation (owner, maximum output in MW, head, year) and the licensed wind power plants (owner, capacity, expected GWh, turbines, NVE's case), by name, owner, municipality or county and year first in operation, largest first, with the count and summed MW. For production and use over time, see the Elhub tools.

ParameterTypeDescription
countystringCounty number ('46') or name ('Vestland'); names are resolved to today's number.
in_operation_fromintegerFirst in operation this year or later.
in_operation_tointegerFirst in operation this year or earlier.
kindstringPlant type.
limitintegerMax results.
min_mwnumberAt least this capacity.
municipalitystringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code.
namestringWords in the name.
ownerstringWords in the owner's name.
wind_stagearrayWind plants: operating, under_construction or licensed (not built).

transit_find_stops Find public transport stops

Find bus, tram, metro, train, ferry and airport stops anywhere in Norway, from the national stop register. Search by name, near a point, or by municipality code, optionally only some kinds of stop (e.g. 'railStation'). Returns stop ids for transit_departures, with the modes served, location and fare zones.

ParameterTypeDescription
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
municipalitystringMunicipality code, e.g. '4601' (Bergen).
querystringStop name, e.g. 'Oslo S'.
radius_kmnumberWith lat and lon and no query: how far to look.
stop_typesarrayOnly these kinds of stop, e.g. ['railStation'].

transit_departures Upcoming departures

Next departures from a stop (all its platforms) or from one quay, for every operator in Norway: scheduled and real-time times, delay, platform, line, destination and cancellations, plus any disruption notices. Optionally only some modes, or from a later start time.

ParameterTypeDescription
stop *stringNSR id of a stop place ('NSR:StopPlace:59872', all its platforms) or of one quay ('NSR:Quay:571', one platform or side of the road). Find ids with transit_find_stops.
include_cancelledbooleanAlso cancelled departures.
limitintegerMax results.
modesarraye.g. ['rail'].
startstringLook from this time instead of now (local Norwegian time unless an offset is given). Real-time data only exists for the next few hours.
within_minutesintegerOnly departures within this many minutes.

transit_vehicles Buses, trams, trains and ferries now

Public transport vehicles now from Entur's real-time positions: buses, trams, metro, trains, coaches and ferries near a point, on one line or nationwide, with line, destination, operator, delay and when each last reported.

ParameterTypeDescription
latnumberLatitude, WGS84.
limitintegerMax listed; 0 for the totals only.
linestringOne line by its Entur id, e.g. 'RUT:Line:31'; else every line.
lonnumberLongitude, WGS84.
max_age_minutesintegerLeave out older reports.
modesarrayOnly these; default all.
radius_kmnumberAround lat/lon.

transit_journeys Journeys from A to B

Plan a public transport journey anywhere in Norway with Entur, all operators: the next journeys (or arriving by a time) with times, duration, changes, walking, and each leg's mode, line, stops, platforms, real-time times and cancellations. Each end as a stop id, a stop name or coordinates.

ParameterTypeDescription
arrive_bybooleanTreat time as the latest arrival.
destinationstringAs for origin.
destination_latnumberEnd, WGS84.
destination_lonnumberEnd, WGS84.
limitintegerMax results.
modesarrayOnly these modes, e.g. ['rail'] for train only. Default: all.
originstringA stop place id ('NSR:StopPlace:337') or a stop's name ('Oslo S').
origin_latnumberStart, WGS84.
origin_lonnumberStart, WGS84.
timestringNorwegian local time unless an offset is given; default now.

terrain_elevation Elevation at points

Height above sea level at up to 50 points in Norway, from Kartverket's 1 m terrain model where available. Lakes give their surface height and the sea its depth (negative). Each value says which model it came from.

ParameterTypeDescription
points *arrayPoints to look up.

regions_at_point Municipality and county at a point

Which municipality and county a coordinate lies in, by Kartverket's current boundaries, and optionally which it was in on an earlier date (via SSB Klass). The codes plug straight into the statistics, company, address, warning and region tools, so this joins a location to everything filed by municipality.

ParameterTypeDescription
lat *numberLatitude, WGS84.
lon *numberLongitude, WGS84.
datestringAlso say which municipality and county the point was in on this date (1960 or later), following today's back through SSB Klass.

currency_exchange_rates Exchange rates against the krone

Norges Bank's exchange rates: how many kroner one unit of a currency costs, for about 40 currencies and the krone's trade-weighted indices. Daily (business days) or as monthly or annual averages; leave out start for the latest rate.

ParameterTypeDescription
currenciesarrayPriced in NOK.
endstringIncluded.
frequencystringDaily rates (business days), or monthly or annual averages.
max_rowsintegerMax rows returned.
startstringLeave start and end out for the latest.

rates_policy_rate Norges Bank's key policy rate

The key policy rate set by Norges Bank: its level now, when it took effect, and every change since a given date (by default the last five years).

ParameterTypeDescription
sincestringList changes from this date. Defaults to five years ago.

rates_market NOWA, Treasury bill and government bond yields

Norwegian market interest rates from Norges Bank: NOWA (the overnight rate), and the generic yields on Treasury bills (3, 6, 12 months) and government bonds (3, 5, 7, 10 years), latest or over a period. The policy rate itself is rates_policy_rate.

ParameterTypeDescription
endstringInclusive.
ratesarrayNOWA, Treasury bills, government bonds.
startstringLeave out for the latest values.

hazards_flood_landslide Flood and landslide warnings

NVE's flood and landslide warnings from varsom.no, for Norway, a county or a municipality: level (green, yellow, orange, red), when it applies, what to expect, the causes, consequences and advice. Defaults to today and the next two days, yellow and above; any past period works too.

ParameterTypeDescription
countystringCounty number ('46') or name ('Vestland'); names are resolved to today's number.
endstringLast day, included.
kindsarrayWarning types.
languagestring'nb' for NVE's Norwegian texts.
min_levelinteger1 green, 2 yellow, 3 orange, 4 red. The default leaves out green days.
municipalitystringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code.
startstringFirst day. Leave start and end out for today and two more days.

hazards_avalanche Avalanche forecasts

NVE's avalanche forecasts from varsom.no: danger level 1-5 per forecasting region, with avalanche problems (type, aspects, heights, size), advice and the forecaster's assessment. Ask by region id or by point; with neither, every region's level and id. Forecasts are published in winter and spring.

ParameterTypeDescription
endstringLast day, included.
languagestring'nb' for NVE's Norwegian texts.
latnumberLatitude, WGS84.
lonnumberLongitude, WGS84.
regionintegerForecasting region id, e.g. 3011 (Tromsø). Leave region, lat and lon out for a summary of every region with their ids.
startstringFirst day. Leave start and end out for today and two more days.

hazards_field_observations Field observations of avalanches, landslides, floods and ice

What people observed on the ground near a point, from Regobs (varsom.no): avalanche activity, danger signs, snow, landslides, flooding, water levels and ice, each with place, time, observer, text and link. Newest first; default the last two weeks within 20 km. The official warnings are hazards_avalanche and hazards_flood_landslide.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
endstringLast day, inclusive; default today.
hazardsarray'snow' covers snow and avalanches; also 'landslide', 'flood', 'ice'.
limitintegerMax results.
radius_kmnumberAround lat/lon.
startstringFirst day; default two weeks ago.

sea_level Water level and tides

Sea level on the Norwegian coast from Kartverket: observed at tide gauges, the tidal prediction, the effect of wind and air pressure, and a forecast for the next days; or a tide table of high and low water. Ask by coastal point or tide gauge code.

ParameterTypeDescription
endstringDefaults to 24 hours (water_level) or 3 days (tide_table) on.
interval_minutesintegerTime step.
kindstring'water_level': observed, predicted and forecast series. 'tide_table': times and heights of high and low water.
latnumberA point on the coast.
lonnumberLongitude, WGS84.
referencestringZero level. Chart datum is what tide tables and sea charts use; mean sea level shows the water above or below normal.
startstringNorwegian local time unless an offset is given. Defaults to 6 hours ago (water_level) or now (tide_table).
stationstringTide gauge code, e.g. 'BGO' (Bergen). Results for a point name the gauge they are based on.

sea_level_extremes Storm surge and record sea levels

How high and low the sea gets at a place on the coast, from Kartverket: storm-surge levels for return periods of 1 to 1000 years, the highest and lowest ever observed with dates, and the tidal levels; in NN2000 by default, comparable with heights on land. For the water level now and tide tables, use sea_level.

ParameterTypeDescription
latnumberA point on the coast.
lonnumberLongitude, WGS84.
referencestringZero level. NN2000 is the height system of maps and buildings on land, so levels can be compared with terrain heights; chart datum is what sea charts use.
stationstringTide gauge code, e.g. 'BGO' (Bergen).

energy_reservoirs Hydropower reservoir fill

How full Norway's hydropower reservoirs are, from NVE's weekly statistics: per cent of capacity and TWh for the whole country, each electricity price area (NO1-NO5) or watercourse region, with the change from last week and the 20-year low, median and high for the same week. Latest week by default, with the same week last year; any years and weeks back to 1995.

ParameterTypeDescription
areasarray'NO' for the whole country, NO1-NO5 for electricity price areas, VASS1-VASS4 for watercourse regions.
from_yearintegerLeave out for the latest week only.
to_yearintegerInclusive.
weeksarrayOnly these ISO weeks, with from_year.

electricity_municipality Electricity use in a municipality

Electricity consumption in one Norwegian municipality from Elhub: MWh per day or hour for homes and cabins, business and industry, with shares and metering points, and the production capacity installed (hydro, wind, solar, thermal). Up to 31 days since 2021; default the last seven full days. Codes, old or current, or names.

ParameterTypeDescription
municipality *stringA municipality code, old or current ('1201', '4601'), or a name ('Bergen').
from_datestringFirst day, in Norwegian time, from 2021-01-01. Leave out both dates for the last seven full days.
resolutionstring'hour' adds every hour, for periods of up to 3 days.
to_datestringLast day, inclusive; at most 31 days from from_date.

electricity_price_areas Electricity by price area

Electricity consumption and production in the five price areas (NO1-NO5) from Elhub: MWh per day and for the period, consumption by households, cabins and industry, production by hydro, wind, solar and thermal, and the balance; a Norway total with all five. Up to 31 days since 2021; default the last seven full days. Not prices.

ParameterTypeDescription
areasarrayElectricity price areas; with all five, a total for Norway is added.
from_datestringFirst day, in Norwegian time, from 2021-01-01. Leave out both dates for the last seven full days.
to_datestringLast day, inclusive; at most 31 days from from_date.

electricity_grid_area Grid loss and consumption in a grid area (Elhub)

One electricity grid area (nettområde, e.g. EIDSIVA-D, BKK) from Elhub, over up to 31 days (default the last seven): grid loss in MWh and as a share of net infeed (nettap), and consumption by group (household, cabin, primary, secondary, tertiary) with shares, and its price area.

ParameterTypeDescription
grid_area *stringThe grid area's name as Elhub gives it, e.g. 'EIDSIVA-D', 'BKK', or part of it.
from_datestringDefault: seven days ago.
to_datestringDefault: yesterday. Up to 31 days.

parliament_cases Search Stortinget's cases

Cases before the Norwegian parliament in a session (by default the current one): bills, budgets, members' proposals and more, filtered by words in the title, type, status or committee. Titles are in Norwegian. Use parliament_case for the decision and how the parties voted.

ParameterTypeDescription
committeestringCommittee id, e.g. 'FIN'.
limitintegerMax results.
querystringWords that must all appear in the title (Norwegian), e.g. 'strømpris'.
sessionstringDefaults to the current session.
sincestringOnly cases updated since this date.
statusstring'dealt_with' means the committee has dealt with it.
typestringCase type.

parliament_case A Stortinget case and its votes

One case in the Norwegian parliament: title, committee, rapporteurs, the decision, and every vote on it with the result, the counts, and how each party voted when votes were recorded by name.

ParameterTypeDescription
case_id *integerCase id from parliament_cases.
party_breakdownbooleanFor votes recorded by name, count how each party voted.

parliament_members Members of Stortinget

The members of the Norwegian parliament sitting today, or for an electoral period: party, constituency and committees, with a count per party. Filter by party or constituency.

ParameterTypeDescription
constituencystringConstituency (county) name, e.g. 'Hordaland'.
partystringParty id, e.g. 'A', 'H'.
periodstringElectoral period, e.g. '2021-2025'. Leave out for the members sitting today.

parliament_questions Questions to ministers

Questions members of Stortinget put to ministers in a session (default the current one): written questions, question time or interpellations, by words, minister, the asker's party and whether answered, with dates and links. In Norwegian. The answer's text is in parliament_question.

ParameterTypeDescription
answeredbooleanOnly answered (true) or unanswered.
kindstring'written' (skriftlige spørsmål), 'question_time' (spørretimen) or 'interpellation'.
limitintegerMax results.
ministerstringPart of the minister's title, e.g. 'energi' or 'helse', or their name.
partystringThe asker's party, e.g. 'FrP', 'H', 'SV'.
querystringWords that must all be in the question; each matches from the start of a word, so 'strøm' also finds 'strømpris'.
sessionstringe.g. '2025-2026'; default the current.

parliament_vote_details How each member of Stortinget voted

Every member's vote (for, against, absent) in the votes on a Stortinget case that were recorded by name, with party and constituency; filter by party or county. Case ids come from parliament_cases; parliament_case gives the totals by party.

ParameterTypeDescription
case_id *integerA case id from parliament_cases.
countystringOnly members from this constituency, e.g. 'Nordland'.
partystringOnly this party, e.g. 'H'.
vote_idintegerOne vote of the case; default every vote recorded by name.

parliament_hearings Stortinget's committee hearings

Committee hearings in Stortinget (høringer): which cases, committee, date, deadline for written submissions, and the programme of who was heard. Filter by words in the case titles, committee or case id.

ParameterTypeDescription
case_idintegerOnly hearings on this case.
committeestringPart of the committee's name or its id, e.g. 'ENE'.
limitintegerMax results.
querystringWords in the case titles the hearing is about.
sessionstringe.g. '2025-2026'; default the current.
with_programmebooleanInclude each hearing's programme: who was heard and when (one call each).

parliament_question One question to a minister, with the answer

One question from a member of Stortinget to a minister in full: the question, the asker's reasoning, and the minister's answer text with date. Ids come from parliament_questions.

ParameterTypeDescription
question_id *integerA question id from parliament_questions.

parliament_debates Speeches in Stortinget's debates

What was said in Stortinget's sittings, from the published transcripts (referater): each speech with speaker, party, time and agenda item. Search the latest sittings by words or speaker, or read one sitting by its id.

ParameterTypeDescription
limitintegerMax results.
querystringWords that must all be in a speech or in its agenda item's title.
sessionstringe.g. '2025-2026'; default the current.
sittingstringOne sitting's transcript id, e.g. 'refs-202526-11-18'. Default: the latest sittings of the session.
sittingsintegerHow many of the latest sittings to read.
speakerstringPart of the speaker's name, or a party, e.g. 'SV'.

traffic_find_points Find traffic counting points

Find Statens vegvesen's traffic registration points by name, municipality, county, road (e.g. 'E39') or distance from a point, for vehicles or bicycles. Each point gives its road reference, location, whether it counts all year, and the dates it has data for.

ParameterTypeDescription
countystringCounty number ('46') or name ('Vestland'); names are resolved to today's number.
include_inactivebooleanAlso points that are out of service or retired.
kindstringDefault both.
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
municipalitystringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code.
namestringWords in the point's name.
radius_kmnumberWith lat and lon.
roadstringRoad number, e.g. 'E39', 'Rv7', 'Fv5000'.

traffic_volumes Traffic volumes at a point

How many vehicles passed a traffic registration point per hour or per day, split by direction and into light and heavy vehicles, with how much of each period was counted; or the annual average daily traffic (ÅDT) for every year it has counted.

ParameterTypeDescription
point *stringPoint id from traffic_find_points (vehicle or bicycle).
endstringLast day, included.
resolutionstring'annual' gives the annual average daily traffic (ÅDT) for every year.
startstringFirst day. Defaults to 7 days ago (daily) or yesterday (hourly).

road_at_point The road at a point

The road nearest a point, from Statens vegvesen's NVDB: its reference and category (European, national, county, municipal, private), speed limit, annual average daily traffic, height limit, and any bridge or tunnel. For traffic counts over time, use traffic_find_points.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
max_distance_mintegerHow far to look for a road.

road_objects Toll stations, tunnels, bridges and roads in a municipality (NVDB)

Across a whole municipality, from Statens vegvesen's NVDB: its toll stations with prices for small and large vehicles, its tunnels (length, year, subsea) or bridges (length, year, type, owner), longest first, or the numbered roads through it with their length there. For the road at one point, use road_at_point.

ParameterTypeDescription
kind *string'roads': the numbered roads through it, with their length there.
municipality *stringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code.
limitintegerMax results.
min_length_mnumberTunnels and bridges at least this long.
road_categoryarrayOnly roads of these categories: E (European), R (national), F (county), K (municipal), P (private). Default for kind 'roads': E, R and F.

schools_get One school

One school or kindergarten from Udir's registers: pupils or children, staff, grades, owner, Bokmål or Nynorsk, address, position, website, and when it opened or closed.

ParameterTypeDescription
org_number *stringThe school's or kindergarten's organisation number, from schools_search.

school_survey Pupil Survey results (Elevundersøkelsen, Udir)

Results from Udir's Pupil Survey (Elevundersøkelsen) for the country, counties, municipalities and each school: the share of pupils bullied (mobbing), indicator scores 1-5 (trivsel, støtte fra lærer, motivasjon, …) or participation, by grade, sex and school year (the last five). Give schools_in a municipality to list its schools beside it; results from small groups are hidden by Udir.

ParameterTypeDescription
gradesarrayGrades: ['9'] (primary 5-10, secondary 1-3). Default: each.
levelstring'primary': grunnskole, grades 5-10. 'secondary': videregående.
placesarrayCountry, counties, municipalities or schools by name or number: ['Hele landet', 'Nordland', 'Bodø', '1804'].
reportstring'bullying' (share bullied), 'indicators' (scores 1-5: trivsel, støtte fra lærer …) or 'participation'.
school_yearsarrayE.g. ['2025-26', '2024-25']. Default: the latest.
schools_instringA municipality whose schools are each listed too, e.g. 'Bodø'.
selectobjectOther dimensions by key, values by code or name: {'KjoennID': ['J']}, {'SpoersmaalID': ['Trivsel']}. Default: 'Alle', and the indices for questions.

hazards_earthquakes Earthquakes near a point

Earthquakes near a point from the U.S. Geological Survey's worldwide catalogue: time, magnitude, depth, place, distance from the point, whether USGS has reviewed it and how many people reported feeling it. By default the last year within 500 km and magnitude 2.5 and up, newest first; order by magnitude for the largest.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
endstringLast day (UTC), inclusive; default today.
limitintegerMax results.
min_magnitudenumberSmallest to include.
orderstring'time' for the newest first, 'magnitude' for the largest.
radius_kmnumberAround lat/lon.
startstringFirst day (UTC); default a year ago.

dictionary_lookup Look up a Norwegian word

Look a word up in Bokmålsordboka and Nynorskordboka (UiB and Språkrådet): meanings with examples, word class, gender, every inflected form and origin, with similar words when not found. For spelling, the correct form or what a word means; explanations are in Norwegian.

ParameterTypeDescription
word *stringThe word, e.g. 'fjord'. '*' matches any letters ('spring*').
dictionarystring'bm' for Bokmålsordboka, 'nn' for Nynorskordboka.
limitintegerArticles per dictionary.

flights_airport Departures and arrivals at an airport

Departures and arrivals at a Norwegian airport from Avinor, by default from an hour ago to seven hours ahead: flight, airline, the other airport, scheduled and actual times with the delay, gate and belt, delayed or cancelled. Filter by direction, the other airport or a flight number. At most three minutes old.

ParameterTypeDescription
airport *stringIATA code ('BGO') or the airport's name in Avinor's list ('Bergen').
counts_onlybooleanOnly the counts per local day.
directionstringFlights to list.
flightstringOnly this flight number, e.g. 'SK274'.
hours_aheadintegerHours after now.
hours_backintegerHours before now.
other_airportstringOnly flights to or from this IATA code, e.g. 'OSL'.

world_indicators Compare Norway with other countries

A World Bank indicator for Norway and other countries: the latest value per country, ranked, or every year in a range. A WDI code or a common name (gdp, gdp_per_capita, gdp_per_capita_ppp, gdp_growth, population, life_expectancy, unemployment, …). Default the Nordic countries. For figures inside Norway, use SSB's statistics tools.

ParameterTypeDescription
indicator *stringA WDI code ('NY.GDP.PCAP.CD') or one of: gdp, gdp_per_capita, gdp_per_capita_ppp, gdp_growth, population, life_expectancy, fertility_rate, unemployment, inflation, co2_per_capita, renewable_energy_sha…
countriesarrayISO country codes ('NOR', 'SE') or World Bank aggregates ('WLD' for the world, 'EUU' for the EU, 'OED' for the OECD). Default: the Nordic countries.
from_yearintegerLeave out both years for the latest value.
to_yearintegerInclusive.

eurostat_data Read a Eurostat dataset

A slice of a Eurostat dataset as labelled rows: by default the last five periods for Norway, Sweden, Denmark, Finland, Iceland and the EU. Filter any dimension by its codes; the result lists every dimension's codes and labels, so a first call shows how to narrow the next. Values carry Eurostat's flags (provisional, estimated …).

ParameterTypeDescription
dataset *stringA dataset code from eurostat_search, e.g. 'une_rt_a'.
filtersobjectCodes to keep per dimension, e.g. {'sex': ['T'], 'age': ['Y15-74']}. Leave a dimension out to get all its values; the result lists each dimension's codes.
geoarrayCountry or region codes: 'NO', 'SE', 'EU27_2020', or NUTS regions such as 'NO08'. Eurostat writes Greece as 'EL'. Default: the Nordic countries and the EU.
last_periodsintegerOnly the last N periods. Default 5 without since.
sincestringFirst period, e.g. '2015' or '2020-01'.

laws_get_section Read a section of a law or regulation

The text of one section (§) of a Norwegian law or central regulation in force, word for word from Lovdata, with its heading, chapter and a link. Name the document by id, short title or abbreviation ('forurensningsloven', 'aml'). Without a section it lists the document's sections.

ParameterTypeDescription
document *stringAn id (LOV-1981-03-13-6), a short title (forurensningsloven) or its abbreviation (forurl).
sectionstringA section such as '§ 11', '11' or '14-7'. Leave out to list the document's sections.

map_layers_at_point Map layers at a point

What lies at or near a coordinate on open national map layers: quick clay, flood, landslide, rockfall and avalanche zones, cultural heritage, protected areas, Ramsar sites, nature types, alien (SE, HI) and red-listed (CR, EN, VU) species records, contaminated ground, radon, aquaculture, protected watercourses, grunnkrets, road noise, and at sea Kystverket's fairways (farled), speed limits, recommended routes, emergency ports (nødhavner) and port facilities (kaier), and reindeer districts. Each layer answers found or not, with the features' attributes and the owner's licence.

ParameterTypeDescription
lat *numberLatitude in Norway (WGS84).
lon *numberLongitude in Norway (WGS84).
layersarrayLayer keys to ask; leave out for all: quick_clay_hazard_zone, quick_clay_runout, quick_clay_susceptibility, flood_zone, flood_susceptibility, debris_flow_susceptibility, rockfall_susceptibility, avala…
radius_mnumber0 for what the point lies in; up to 10,000 for what is near it (emergency_port: 50,000).

ecb_exchange_rates Euro reference rates (ECB)

The European Central Bank's euro foreign exchange reference rates: how many units of a currency one euro buys, for about 30 currencies, NOK included. Daily, or monthly or annual averages; leave out start for the latest. For kroner per currency, use Norges Bank's currency_exchange_rates.

ParameterTypeDescription
currenciesarrayPriced in euros.
endstringInclusive.
frequencystringMonthly and annual are averages.
max_rowsintegerMax rows returned.
startstringLeave out for the latest rates.

ecb_policy_rates The ECB's key interest rates

The European Central Bank's three key interest rates (deposit facility, main refinancing operations, marginal lending facility): each one's level now, when it took effect, and every change since a date (by default five years ago).

ParameterTypeDescription
sincestringList changes from this date. Defaults to five years ago.

aquaculture_sites Aquaculture sites (fish farms)

Fish farms and other aquaculture sites from Fiskeridirektoratet's register, by municipality, county, name or the operator's organisation number: place and coordinates, capacity, species, sea or land, production area, and the licences on each site with who holds them. For sites near a point, use map_layers_at_point.

ParameterTypeDescription
countystringCounty code or name, e.g. 'Vestland'.
holdersbooleanLook up who holds each site's licences (one call per licence, up to 25).
limitintegerMax results.
municipalitystringMunicipality code or name, e.g. '4624' or 'Austevoll'.
namestringThe site's name.
org_numberstringThe licence holder's organisation number.
speciesstringOne of: salmon, trout, other_fish, shellfish, algae.

fish_buyers Registered fish buyers

Buyers of fish and their buying points from Fiskeridirektoratet's buyer register (Kjøperregisteret): name, organisation number, address and position, by words, municipality, county or kind of location.

ParameterTypeDescription
countystringCounty code or name, e.g. 'Finnmark'.
kindstringLocation type, e.g. 'ORDINARY_FACILITY_T' (a buying facility), 'DOCK_SALESPERSON_T', 'VESSEL_T', 'LEGAL_ENTITY'.
limitintegerMax results.
municipalitystringMunicipality code or name.
querystringWords in the name or address.

fish_landings Fish landings in Norway (Fiskeridirektoratet)

How much fish was landed in Norway, from Fiskeridirektoratet's sales notes since 2000: round weight (tonnes) and value per species, landing municipality, month, year or fleet (Norwegian or foreign vessels), for chosen years, a municipality and a species ('torsk'). A year not asked for before takes up to a minute to fetch.

ParameterTypeDescription
years *arrayYears, e.g. [2024, 2025]. A year not asked for before takes up to a minute.
bystringWhat the rows are summed by.
fleetstringVessel nationality.
limitintegerMax results.
municipalitystringWhere the fish was landed. Municipality code ('4601') or name ('Bergen'); names are resolved to today's code.
speciesstringWords in the species' Norwegian name, e.g. 'torsk', 'sei', 'laks'.

aquaculture_records NYTEK certificates, applications, surveys, escapes (Fiskeridirektoratet)

Fish farm records from Fiskeridirektoratet's map service: NYTEK installation certificates (valid to, inspection body), aquaculture applications under processing, B surveys of the seabed (condition 1-4, report), escapes, and the production areas' traffic-light colour; by site number, holder (name or organisation number) or municipality, newest first.

ParameterTypeDescription
kind *stringnytek (installation certificates), applications (under processing), surveys (B surveys of the seabed), escapes, production_areas (traffic light).
holderstringThe holder or applicant: words in its name, or its organisation number.
latnumberProduction areas: the one this point lies in.
limitintegerMax results.
lonnumberLongitude, WGS84.
municipalitystringA municipality's name.
site_numberintegerThe site's number (lokalitetsnummer).

fish_health Salmon lice and fish health per fish farm

Salmon lice per fish farm and week from BarentsWatch: adult female lice per fish as reported, treatments, cleaner fish, fallowing, PD and ILA, for every site in some municipalities or near a point, or one site in detail; with the national count above the limit. Default: last week.

ParameterTypeDescription
latnumberLatitude, WGS84.
limitintegerMax results.
localitiesarraySites.
localityintegerOne site's locality number, for its week in detail.
lonnumberLongitude, WGS84.
municipalityarrayMunicipality codes or names, e.g. ['Kvam', 'Ullensvang'] for Hardanger.
only_reportingbooleanOnly sites that reported lice.
org_numberstringThe sites whose licences this holder has.
radius_kmnumberAround lat/lon.
weekintegerISO week; default last week.
yearintegerISO year of the week.

ships_live Ships at sea now (AIS)

Ships at sea now from the Coastal Administration's open AIS: name, type, position, speed, destination and size, near a point or across Norwegian waters, with a count by kind of ship (cargo, passenger, fishing, tanker …).

ParameterTypeDescription
latnumberLatitude, WGS84.
limitintegerMax listed; 0 for the totals only.
lonnumberLongitude, WGS84.
radius_kmnumberAround lat/lon.
ship_typestringOnly one kind: cargo, dredging or diving, fishing, high-speed craft, law enforcement, medical transport, military, passenger, pilot, pleasure craft, port tender, sailing, search and rescue, tanker, to…

shelf_fields Oil and gas fields on the Norwegian shelf

Oil and gas fields on the Norwegian continental shelf from Sokkeldirektoratet: status (producing, shut down, approved), operator, area, hydrocarbon type, discovery year, and recoverable and remaining reserves; filter by name, status, operator or area. Counts by status come back too.

ParameterTypeDescription
areastringSea area.
limitintegerMax results.
namestringPart of a field's name.
operatorstringPart of the operator's name.
reservesbooleanAdd recoverable and remaining reserves.
statusstringField status.

shelf_wells Wells and discoveries on the shelf, by year

How many exploration (or development) wells were drilled on the Norwegian shelf each year, and how many made discoveries, from Sokkeldirektoratet; optionally for one sea.

ParameterTypeDescription
areastringSea area.
well_typestringWell purpose.
year_fromintegerEntry year, from.
year_tointegerInclusive.

shelf_objects Facilities, pipelines, licences and wellbores on the shelf

Facilities (platforms, templates, FPSOs), pipelines, production licences or wellbores on the Norwegian shelf from Sokkeldirektoratet, by name, field, operator, phase (IN SERVICE, INSTALLATION, SHUT DOWN, DECOMMISSIONED …; licences ACTIVE) or near a point, with counts by phase and by operator. Fields themselves are shelf_fields.

ParameterTypeDescription
kind *stringWhat to list.
fieldstringThe field it belongs to, e.g. 'Johan Sverdrup'.
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
namestringPart of its name.
operatorstringPart of the operator's name.
phasearrayFacilities and pipelines: IN SERVICE, INSTALLATION, SHUT DOWN, DECOMMISSIONED, REMOVED, ABANDONED IN PLACE …; licences: ACTIVE or INACTIVE.
radius_kmnumberAround lat and lon.

health_statistics_data Read an FHI health statistics table

Numbers from one FHI table as labelled rows: choose values per dimension in select (e.g. a disease, a county, an age group); dimensions left out take their total, and time its latest periods. The result lists each dimension's values for the next call.

ParameterTypeDescription
source *stringThe bank, from health_statistics_search, e.g. 'msis'.
table_id *integerFrom health_statistics_search.
latestintegerHow many latest periods.
selectobjectValues to keep per dimension code, e.g. {'diagnose': ['Kikhoste']}. Left out, a dimension takes its first value (usually the total), and time its latest periods.

species_observations Species observations (GBIF)

Species observed in Norway, through GBIF (mostly Artsobservasjoner and museum collections): in a municipality or within a radius of a point, for a taxon (scientific or common name) and dates: the number of records, the species with most records, the datasets and their licences, and the latest records with date and place. Its red list filter is the global IUCN list: for the Norwegian Red List (CR, EN, VU) or alien species risk (SE, HI), use species_records.

ParameterTypeDescription
iucnarrayGlobal IUCN categories, e.g. ['CR', 'EN', 'VU']; not the Norwegian Red List.
latnumberLatitude, WGS84.
limitintegerLatest records to list.
lonnumberLongitude, WGS84.
municipalitystringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code. Searched by its bounding box.
radius_kmnumberAround lat and lon.
sincestringObserved on or after.
taxonstringA species or group, scientific or common name: 'Lynx lynx', 'gaupe', 'Aves', 'Pinus'.
untilstringObserved on or before.

species_records Red-listed and alien species records (Artskart)

Species records from Artsdatabanken's Artskart in a municipality, county or near a point, between dates, by Norwegian Red List category (CR, EN, VU …) or Alien Species List risk (SE, HI …), optionally for one taxon: Artskart's total count, the species with most records and the latest records with date, place and source.

ParameterTypeDescription
categoryarrayNorwegian Red List (CR, EN, VU, NT, DD, RE) or Alien Species List risk (SE very high, HI high, PH, LO, NK). Default: any record.
countystringCounty number ('46') or name ('Vestland'); names are resolved to today's number.
latnumberLatitude, WGS84.
limitintegerLatest records to list.
lonnumberLongitude, WGS84.
municipalitystringMunicipality code ('4601') or name ('Bergen'); names are resolved to today's code.
radius_kmnumberA box around lat and lon.
sincestringObserved on or after.
taxonstringA species or group, Norwegian or scientific.
untilstringObserved on or before.

higher_education_tables Find a higher education statistics table (DBH)

Find tables in DBH, HK-dir's database for statistics on higher education: students, applicants and admissions, completion and drop-out (frafall), credits, degrees awarded, doctorates (doktorgrader), staff, finances and scientific publishing (publiseringspoeng per university). Each table lists its fields; read one with higher_education_data.

ParameterTypeDescription
query *stringWords in the table's name or fields: 'doktorgrader', 'publiseringspoeng', 'frafall', 'opptak'.
limitintegerMax results.

higher_education_data Read a higher education statistics table (DBH)

Numbers from one DBH table, summed by the fields in group_by (default: per year), for chosen institutions (UiO, UiB, NTNU, UiT …), years ('2016-2025') and exact field values. E.g. table 101 (doctorates awarded, women and men) or 373 (publication points per institution). The result lists the table's fields for the next call.

ParameterTypeDescription
table_id *integerFrom higher_education_tables, e.g. 373.
containsobjectText a field must contain, e.g. {'Internasjonal tittel': 'samfunnsforskning'}.
fieldsarrayFor list tables: the fields to return. Default: all.
filtersobjectExact values per field, e.g. {'Kjønnkode': ['2']} or {'Nivåkode': ['PHD']}.
group_byarrayFields to sum by (summable tables), e.g. ['Institusjonskode', 'Årstall']. Default: the year, and the institution when institutions are given.
institutionsarrayBy name, short name or code: 'UiB', 'NTNU', 'Universitetet i Oslo'.
limitintegerMax results.
yearsstringOne year or a range: '2024', '2016-2025'. Default: every year.

publication_channels Look up a journal's or publisher's level (DBH channel register)

The level (nivå 1 or 2, or 0) of a scientific journal or book publisher in the Norwegian register of publication channels, per year, by title or ISSN, with its ISSNs, publisher, open access status and field.

ParameterTypeDescription
issnstringA journal's print or online ISSN.
kindstringWhat to look up.
limitintegerMax results.
titlestringWords in the journal's or publisher's title, e.g. 'Tidsskrift for samfunnsforskning', 'Lancet', 'Universitetsforlaget'.

sun_and_moon Sunrise, sunset and the moon

When the sun rises and sets at a place on a date, in which direction, how high it gets at noon and how long the day is (or whether it is polar night or midnight sun), with moonrise, moonset and the moon's phase. From MET Norway.

ParameterTypeDescription
lat *numberLatitude in decimal degrees.
lon *numberLongitude in decimal degrees.
datestringDefault today.
utc_offsetstringOffset for the times: '+01:00' Norwegian winter time, '+02:00' summer time.

sea_text_forecast Sea and coast forecast in words (MET Norway)

MET Norway's forecast for a coastal stretch (kyststrekning) or sea area (havområde) as written for sailors: wind, sea state, weather and visibility, with gale, icing or polar low warnings, by area name ('Skagerrak') or a point. In Norwegian or English. For numbers at a point (waves, currents), use sea_forecast.

ParameterTypeDescription
areastringWords in the area's name, e.g. 'Skagerrak'.
kindstring'coast' (kyststrekninger) or 'sea' (havområder, further out).
languagestringNorwegian or English.
latnumberLatitude, WGS84.
lonnumberLongitude, WGS84.

road_messages Traffic messages: closures, road works, accidents

Traffic messages on Norwegian roads now, from Statens vegvesen: closures, road works, lane and speed restrictions, accidents, obstructions and diversions, with road number, place, description and period. Filter by road (E6, Rv7, Fv81), county or a point.

ParameterTypeDescription
active_nowbooleanOnly messages in force now.
countystringA county name, e.g. 'Nordland'.
kindstringOnly one kind: accident, animals on the road, closure or lane restriction, construction, damaged road, diversion, event, obstruction (landslide, flood, snow …), poor visibility or weather, road work…
latnumberLatitude, WGS84.
limitintegerMax results.
lonnumberLongitude, WGS84.
radius_kmnumberAround lat/lon.
roadstringA road number: 'E6', 'E39', 'Rv7' (riksvei), 'Fv81' (fylkesvei).

aid_totals Norwegian aid totals

Norwegian development aid disbursed (Norad), in NOK and USD, summed by year, country, region, partner, sector, target area, type of assistance, budget chapter or agency, with the same filters as aid_search. Policy markers (gender equality, climate …) take an explicit level; marker amounts overlap and cannot be added together.

ParameterTypeDescription
assistancestringType of assistance: 'Bilateral', 'Earmarked to multilaterals' …
chapterstringBudget chapter number ('170') or words.
countrystringRecipient country, English as Norad names it: 'Ukraine', 'South Sudan', 'Global Unspecified'.
group_bystringWhat the totals are summed by.
limitintegerMax results.
marker_levelstringprincipal = 2; significant_or_principal = 1 or 2.
markersarrayPolicy markers every agreement must have; 'climate' is mitigation or adaptation. Needs marker_level.
partnerstringWords in the agreement or implementing partner's name; Norwegian organisations by their Norwegian name ('Flyktninghjelpen').
partner_groupstring'NGO Norwegian', 'Multilateral institutions' …
regionstring'Africa', 'Asia' …
sectorstringDAC main sector code ('410') or words.
target_areastring'Education', 'Emergency assistance' …
textstringWords in the title or description, which are in English: 'oil', not 'olje'.
year_fromintegerFirst year.
year_tointegerDefault: the latest year published.

aid_agreement One Norwegian aid agreement

One Norwegian development aid agreement by number (Norad): its title, full description, and every year's disbursements with partner, country, sector, budget post and policy markers.

ParameterTypeDescription
number *stringE.g. 'MOZ-22/0005-1'.

food_inspections Smilefjes food inspections

Mattilsynet's smilefjes inspections of restaurants, cafés, bakeries and other places serving food since 2016, by the owner's organisation number, the place's name, postcode or town: each place with its latest inspections, the overall grade and smiley, and the grades for its four themes. Latest inspected first.

ParameterTypeDescription
inspectionsintegerInspections per place, latest first.
limitintegerPlaces to return.
namestringWords in the place's name.
org_numberstringThe owner's organisation number. A company's own number also finds the places run by its establishments (sub-units).
postcodestringPostnummer.
townstringPostal town (poststed), e.g. 'Bergen'.
worst_gradeintegerOnly places whose latest inspection has this grade or worse: 2 for a straight mouth or sad, 3 for sad.

work_approvals Approved cleaning companies and health services

Whether a company is approved by Arbeidstilsynet as a cleaning company (Renholdsregisteret) or as an occupational health service (bedriftshelsetjeneste), by organisation number, name or municipality: status, industry codes, website, address and establishments. An establishment's number finds its company.

ParameterTypeDescription
approved_onlybooleanLeave out not approved and pending.
limitintegerMax results.
municipalitystringMunicipality code or name, of the address.
namestringWords in the company's name.
org_numberstringA company's number, or one of its establishments'.
registersstringWhich register.
subunitsintegerEstablishments per company.

place_overview Overview of a place

Everything about a point in Norway in one call: municipality and county, elevation, the weather now and the next 6 hours, rain in the next two hours, warnings in force, the nearest stop for each mode (bus, tram, rail, ferry) and places nearby, plus ready follow-up calls. Parts that fail become notes.

ParameterTypeDescription
lat *numberLatitude, WGS84.
lon *numberLongitude, WGS84.

municipality_profile Profile of a municipality

One Norwegian municipality from several sources at once: population and its change (SSB), companies and largest employers with their results, schools, traffic counting points, electricity use and production capacity, and warnings in force. Accepts today's code, a code from before the 2020 or 2024 reforms, or a name.

ParameterTypeDescription
municipality *stringA municipality code, old or current ('1201', '4601'), or a name ('Bergen').
employer_accountsbooleanGive the largest employers' latest revenue and result (one call each).

compare_municipalities Compare municipalities

Two to five Norwegian municipalities side by side: population and its change, registered units in the business register (also per 1,000 inhabitants), schools, traffic counting points, electricity use per inhabitant and warnings in force. Accepts codes, old or current, and names. Built on municipality_profile, which gives each one in full.

ParameterTypeDescription
municipalities *arrayTwo to five codes (old or current) or names, e.g. ['Bergen', '0301'].

statistics_series A statistic over time for one region

One SSB statistic for Norway, a county or a municipality over every year, in one call. Uses SSB's series summed to today's borders where the table has one, so the series does not stop at the 2020 or 2024 reforms. Accepts codes, old or current, and names. Find tables with statistics_search_tables.

ParameterTypeDescription
region *string'0' for Norway, a county or municipality code (old or current), or a name.
table_id *stringSSB table, e.g. '07459'.
filtersobjectCodes for the table's other dimensions, e.g. {'Kjonn': ['2']}. Dimensions left out are summed where SSB allows it.
from_yearintegerInclusive.
measurestringThe ContentsCode value, when the table has more than one measure.
measure_kindstringWhen SSB has no series for today's borders: 'additive' (counts, totals) lets Kildeverk rebuild earlier years by summing the regions that became this one; 'non_additive' (rates, shares) follows renumbe…
to_yearintegerInclusive.

statistics_rank Rank municipalities or counties on a statistic

Every municipality or county ranked on one SSB statistic for one period, highest or lowest first, with Norway's figure for reference. Give compare_to for an earlier period to rank by change instead ('which municipalities grew fastest since 2015?'). Uses SSB's figures for today's borders where the table has them.

ParameterTypeDescription
table_id *stringSSB table, e.g. '07459'.
compare_tostringAn earlier period. Adds the change to each row and ranks by it.
countystringOnly municipalities in this county: County number ('46') or name ('Vestland'); names are resolved to today's number.
filtersobjectCodes for the table's other dimensions.
levelstringRegions to rank.
limitintegerMax results.
measurestringContentsCode, when there are several.
min_valuenumberLeave out regions whose value is below this, e.g. 1000 when ranking change, so that tiny municipalities with large swings don't top the list.
orderstringWhich end first.
periodstringe.g. '2025'. Defaults to the latest.

cite_sources Citations for a result

Turn the `provenance` of any Kildeverk result into references: BibTeX entries and CSL-JSON (for Zotero, Pandoc and citation processors). Repeated requests are merged. Runs locally; it fetches nothing.

ParameterTypeDescription
provenance *arrayThe `provenance` list of any Kildeverk result, as it came back.
stylestringOutput format.

sources_list List data sources

List every upstream source this service reads from, with its licence, rate limits, cache lifetimes, what it covers, its known gaps, and the tools that use it.

service_status Service status

Show how much request budget is left for each upstream, how full the cache is, and how each tool has been used since the service started: calls, errors by code, cache hits and average time. Useful after a RATE_LIMITED error.