Iceland Statistics API

Official Icelandic statistics from Statistics Iceland (Hagstofa) as flat rows: pick any table, get one row per value with its labelled dimensions such as sex, age or region, the period and the number.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 8 fieldsv1.0

Data from px.hagstofa.is/pxen/api/v1/en/Ibuar/mannfjoldi/1_yfirlit/Yfirlit_mannfjolda/MAN00101.px

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Table path
Path of the table under the English database, ending in .px.
Example: Ibuar/mannfjoldi/1_yfirlit/Yfirlit_mannfjolda/MAN00101.px
Periodsoptional
How many of the latest periods (years, quarters or months) to return.
Example: 2
Filtersoptional
Optional value selection as variable code, equals sign and value codes joined by a bar; separate variables with a semicolon.
Example: Kyn=1|2;Aldur=0|1|2

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/iceland-hagstofa-statistics/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/iceland-hagstofa-statistics/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "table_path": "Ibuar/mannfjoldi/1_yfirlit/Yfirlit_mannfjolda/MAN00101.px"
  },
  "max_items": 50
}'

Inputs

Send them as input in the request body. Leave one out to use its default.

table_pathtextrequired
Path of the table under the English database, ending in .px.
example: Ibuar/mannfjoldi/1_yfirlit/Yfirlit_mannfjolda/MAN00101.px
periodsnumber
How many of the latest periods (years, quarters or months) to return.
default: 3example: 2
filterstext
Optional value selection as variable code, equals sign and value codes joined by a bar; separate variables with a semicolon.
example: Kyn=1|2;Aldur=0|1|2

What's in each record

8 fields: 7 here, 1 technical one under Technical details.

Basics

  • Table

    Statistics Iceland's table id, such as MAN00101.

    Example MAN00101

  • Table title

    Example Population 1841-2026 by Sex, Age and Year

  • Period

    Period code of the value, usually a year such as 2025 or a month such as 2025M03.

    Example 2025

  • Dimensions

    Dimension names with their readable labels, such as Sex: Males.

    Example Sex: Total · Age: Under 1 year · Year: 2025

  • Dimension codes

    The same dimensions as the source's variable and value codes.

    Example Kyn: Total · Aldur: 0 · R: 2025

  • Value

    The statistic.

    Example 4,330

Dates

  • Updated

    Update time the source reports for the data set (UTC); it can be older than the latest periods.

    Example Mar 23, 2018

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • ID idTable id and dimension codes joined by colons.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
tabletextTable3 of 3
table_titletextTable title3 of 3
periodtextPeriod3 of 3
dimensionsgroup of valuesDimensions3 of 3
dimension_codesgroup of valuesDimension codes3 of 3
valuenumberValue3 of 3
updated_atdate and timeUpdated3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTableTable titlePeriodDimensionsDimension codesValueUpdated
1MAN00101Population 1841-2026 by Sex, Age and Year2025Sex: Total · Age: Under 1 year · Year: 2025Kyn: Total · Aldur: 0 · R: 20254,330Mar 23, 2018
2MAN00101Population 1841-2026 by Sex, Age and Year2026Sex: Total · Age: Under 1 year · Year: 2026Kyn: Total · Aldur: 0 · R: 20264,415Mar 23, 2018
3MAN00101Population 1841-2026 by Sex, Age and Year2025Sex: Total · Age: 1 year · Year: 2025Kyn: Total · Aldur: 1 · R: 20254,336Mar 23, 2018

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • You must give the table_path of a table (ending in .px) from the Statistics Iceland database; folders are not listed.
  • By default only the latest 3 periods are returned. Raise periods (up to 200) or narrow with filters; a request over 60,000 values is refused.
  • Dimensions differ by table, so each record carries them in dimensions (labels) and dimension_codes (codes) instead of fixed columns.
  • Missing or suppressed values come back as null. Table labels are in English where Statistics Iceland provides them.
  • Open data from Statistics Iceland (Hagstofa Islands); credit Statistics Iceland. Tables update on the institute's own schedule.
  • Statistics Iceland limits query volume per 10 seconds; this API makes at most about 2 requests a second.

Version history

A run uses the live version unless the request names another one with version.