Documentation
API access
All data on sverigefakta.com is free to use under CC BY 4.0. Most endpoints are fully open. Three heavier endpoints require a free API key — so a single bot can't take the site down for everyone else.
Requires a key
/api/all.zipThe complete data bundle as a zip archive.
/api/manifest.jsonMachine-readable manifest with size, columns and URL for every dataset.
/api/dataset-index.jsonSearch index over all datasets (for crawlers and third-party clients).
Request a key
To request a free API key, email us using the alias address shown on the Support the website page. Include a short note about what you'll use the data for (research, journalism, student project, your own build — anything is fine, but we want to know). You'll get a key back within a day.
Use the key
Send the key either as the HTTP header x-api-key or as the query parameter ?key=.
# Header (recommended) curl -H "x-api-key: YOUR_KEY" \ https://sverigefakta.com/api/all.zip -o sverigefakta.zip # Query (handy in a browser) https://sverigefakta.com/api/manifest.json?key=YOUR_KEY
Open endpoints (no key)
/api/trends.json/api/trends.csv/api/kommuner.json/api/kommuner.csv/api/sources.json/api/sources.csv/api/utsatta.json/api/kohorter.json/api/lander.json/api/demokrati.json/api/claims.json/api/citat.json/api/sitemap.xml
These files are small, heavily cached and cover most use cases. Try them first.
