Skip to the content.

How to get Norwegian restaurant inspection results as CSV or JSON

Also published on dev.to: How to get Norwegian restaurant inspection results (Mattilsynet smilefjes) as CSV or JSON

Every place that serves food in Norway is inspected by Mattilsynet, the Norwegian Food Safety Authority, and has to show a smilefjes poster: a smiling face, a straight mouth or a sad face. Mattilsynet publishes all results as open data under CC BY 4.0. This guide shows how to turn that into a clean spreadsheet or JSON feed.

What the data contains

About 8,700 food businesses and 45,000 inspections since 2016. For each inspection: restaurant name, 9-digit organisation number, address, postcode, date, overall grade (0–3), the four theme grades (routines, premises, food handling, labelling) and a link to the restaurant’s smilefjes page.

Grades 0 and 1 give a smiling face, 2 a straight mouth (follow-up needed) and 3 a sad face.

Option 1: Mattilsynet’s raw CSV

Mattilsynet publishes a nightly CSV at https://smilefjes.mattilsynet.no/api/tilsyn.csv. It is semicolon-separated, uses Norwegian column names, has one row per inspection (not per restaurant) and no municipality or county. You will need to clean, translate and group it yourself.

Option 2: a one-click scraper with clean fields

Norway Restaurant Inspection Scraper reads the same official data and returns English field names, typed values, municipality and county, the latest result per restaurant and optional inspection history.

Real rows from a run in Oslo on 30 November 2026:

name city inspectionDate grade smiley
Munch box Oslo 2026-11-17 2 straight
Sushi og Thai Ensjø Oslo 2026-11-17 1 smiling

Steps

  1. Open the Actor and press Try for free. The prefilled input returns the 25 newest Oslo inspections in seconds.
  2. Filter by city, postcode, municipality, organisation number, name or grade. Set minimum grade 2 to list places that did not get a smiling face.
  3. Export as CSV, Excel or JSON, or schedule a daily run and push new inspections to Google Sheets.

Cost: $0.01 per run plus $2 per 1,000 rows. A 25-row test costs about six cents.

Who uses this

Licence

Credit “Mattilsynet (smilefjes.mattilsynet.no), CC BY 4.0” when you publish the data, and do not imply that Mattilsynet endorses your product.

Run it from Python

A ready-to-run example is in notebooks/norway_restaurant_hygiene.py. It reads your token from the APIFY_TOKEN environment variable.

All open data APIs