Instructions to work with data from the NSI (National Statistics Institute) or INE (Instituto Nacional de Estadísticas). - Lemoncode/simplechart GitHub Wiki

The NSI or INE, build and deliver statistics from Spain.

Thematic groups statistics: https://www.ine.es/dyngs/INEbase/listaoperaciones.htm

This server contains:

  1. Population and Housing Censuses
  2. General information
  3. Dissemination products
  4. Spain in figures
  5. Short-term data
  6. Municipal data, etc.

Suppose we want to take active population by provinces.

  • We must go to the Labour Market section and we display Economic activity, employment and unemployment. Click on plus icon and then on Economically Active Population Survey Detailed information icon .

  • This will take us to the source of the statistics. We should go to the menu on the left and click on Results.

  • We display Provincial results, and choose what interest us, for example Active population.

  • It gives us again the chance to choose how we want to do the 'drill down', if it is by age, by group, by economic sector, etc ... It’s up to you. As you can see, a lot of maps of the active population can be drawn since it is classified by different parameters.

  • If we select filters, for example by age range, we are going to be redirected to the table which is going to serve us the data. Ex: We can get an active population map for people who is 55 years old by provinces in current year.

  • We throw the query and we get the following data:

  • From the menu on the top right, these data can be downloaded in different formats, but obviously we will have to 'massage' them and adapt their format to consume it from our project.

  • It would be necessary to add a field with province id, or simply replace the province name with the id that defines the standard (NATCODE).

  • As a side project, an interface could be done (or script) which can do the mapping to a JSON for example with the NATCODE already mapped.

  • Also, for those who want to get a little deeper, the INE has a web API to do all these queries.