Central Statistics Office (CSO), Ireland

PxStat — Central Statistics Office (Ireland)

PxStat is the open-data platform of Ireland's Central Statistics Office (CSO). Its RESTful API gives machine-to-machine access to Ireland's full statistical tables — census, demographics, economy, labour market and prices — in the JSON-stat 2.0 standard, with no key and no registration.

Official source Ireland no key JSON-stat 2.0
GET ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset/{matrix}/JSON-stat/2.0/{lang}

Verified 2026-09

About this API

PxStat data is organised into multidimensional cubes, each identified by a unique matrix code (e.g. EP001 — preliminary change in population 2011–2016). The ReadDataset method returns a chosen cube at ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset/{matrix}/{format}/{version}/{language}. Besides JSON-stat 2.0, the PX, CSV and XLSX formats are available, with content in English and Irish. JSON-stat 2.0 responses carry full dimension metadata (categories, labels, units), so an agent can interpret the figures without a separate codebook. Access is anonymous (www-authenticate: Anonymous), and the server returns a CORS header reflecting the request Origin, so the API can also be called from browser code. The data is published under the Creative Commons Attribution 4.0 licence (CC BY 4.0) — free to reuse, including commercially, provided the source (CSO) is credited.

Frequently asked questions

Do I need an API key?

No. The PxStat API is fully anonymous — no key and no registration are required. You call it with a plain GET request and the server responds with an Anonymous authentication header.

What data does this API return?

Ireland's official statistics from the PxStat database: census and demographic data, economy, labour market, prices, trade and many other domains. Each dataset is a multidimensional cube addressed by a matrix code (e.g. EP001) and returned as JSON-stat 2.0 (PX, CSV and XLSX are also available) in English or Irish.

Can this API be called directly from a browser?

Yes. The server returns a CORS header that reflects the request Origin (access-control-allow-origin), so the API works directly from front-end JavaScript — which is why there is a working "Try it" button here.

Who runs this API?

The Central Statistics Office (CSO) — Ireland's national statistical office. The API is part of its PxStat open-data platform (data.cso.ie).