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)

RequestReturns
/api/v1/indicatorsEvery 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}/dataObservations. Filters: geo (codes or slugs), from, to, b_sex, breakdown=all
/api/v1/countriesPlaces 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

For World Bank series, also credit the original producer named in the response.

Related pages