Free data API and downloads
Every statistic on this site can be downloaded as CSV or read as JSON. There is no key, account or charge. Please keep requests reasonable (the API allows about 120 requests a minute per address) and credit the source named in each response.
CSV downloads
- One measure, all places and years: https://data.pispace.eu/download/{slug}.csv
- Your selection: add ?geo=portugal,spain&from=2010, or a breakdown such as &b_sex=F
- One country, every measure and year: https://data.pispace.eu/download/countries/{country}.csv
Every row carries the unit, flag, source, original producer, licence and a citation link. Numbers keep the precision published by the source.
JSON API (version 1)
| Request | Returns |
|---|---|
| /api/v1/indicators | Every measure with its unit, frequency, topic and source |
| /api/v1/indicators/{slug} | Definition, licence, dates and the latest value for each place |
| /api/v1/indicators/{slug}/data | Observations. Filters: geo (codes or slugs), from, to, b_sex, breakdown=all |
| /api/v1/countries | Places with data and the number of measures for each |
| /api/v1/countries/{slug} | The latest value of every measure for one place |
Example: /api/v1/indicators/regional-population/data?geo=PRT,ESP&from=2015
Responses include a publication number. Add ?pub= with that number to repeat a request against the same data later, while that publication is retained. Places use World Bank ISO 3166-1 alpha-3 codes; groups use World Bank aggregate codes such as EUU and WLD.
Embedding charts
Each measure page has an "Embed" option that gives you an HTML snippet for your own site. The chart keeps its source line and a link to the full data.
Licences and attribution
- Eurostat: Eurostat reuse policy (attribution). Credit: “Source: Eurostat”.
- FAOSTAT: CC BY 4.0 (FAO statistical database terms). Credit: “Source: FAO, FAOSTAT. Licence: CC BY 4.0”.
- INE Spain: CC BY 4.0. Credit: “Source: INE website, www.ine.es”.
- ONS: Open Government Licence v3.0. Credit: “Source: Office for National Statistics, licensed under the Open Government Licence v3.0”.
- ILOSTAT: CC BY 4.0. Credit: “Source: ILO, ILOSTAT (ILO Modelled Estimates)”.
- OECD: CC BY 4.0. Credit: “Source: OECD Data Explorer”.
- ECB: ESCB statistics reuse policy. Credit: “Source: ECB statistics”.
- UNESCO UIS: CC BY-SA 4.0. Credit: “Source: UNESCO Institute for Statistics (UIS), databrowser.uis.unesco.org”.
- UN Population Division: CC BY 3.0 IGO. Credit: “Source: United Nations, DESA, Population Division (2024). World Population Prospects 2024”.
- WHO: CC BY 4.0 (WHO datasets, with additional terms). Credit: “Source: World Health Organization, Global Health Observatory”.
- World Bank: CC BY 4.0 (per series metadata). Credit: “Source: World Bank, World Development Indicators”.
For World Bank series, also credit the original producer named in the response.