... | ... | @@ -12,8 +12,25 @@ |
|
|
|
|
|
## Data accessibility
|
|
|
|
|
|
- API, see http://www.beta.inegi.org.mx/servicios/api_biinegi.html
|
|
|
- Ask a token [on this page](http://www3.inegi.org.mx//sistemas/api/indicadores/v1/tokenVerify.aspx) for API V1
|
|
|
- API, see https://www.inegi.org.mx/servicios/api_indicadores.html
|
|
|
- Ask an API token [on this page](http://www3.inegi.org.mx//sistemas/api/indicadores/v1/tokenVerify.aspx)
|
|
|
- parameters:
|
|
|
- indicator: id of indicator, e.g. 1002000001
|
|
|
- lang: `en` or `es`
|
|
|
- geo: `00` for national, `01` to `99` for state information, `001` to `999` for cities
|
|
|
- onlyrecentdata: `true` to only get recent data, `false` to get complete historical series
|
|
|
- token: api token sent by INEGI
|
|
|
- format: `json` or `xml`
|
|
|
|
|
|
### Download an indicator:
|
|
|
**URL template:** https://www.inegi.org.mx/app/api/indicadores/desarrolladores/jsonxml/INDICATOR/{indicator}/{lang}/{geo}/{onlyrecentdata}/BISE/2.0/{token}?type={format}
|
|
|
|
|
|
e.g. https://www.inegi.org.mx/app/api/indicadores/desarrolladores/jsonxml/INDICATOR/1002000001/es/00/false/BISE/2.0/123-456-789?type=json
|
|
|
|
|
|
### Download a catalogue:
|
|
|
**URL template:** https://www.inegi.org.mx/app/api/indicadores/desarrolladores/jsonxml/CL_INDICATOR/{indicator}/{lang}/BISE/2.0/{token}?type={format}
|
|
|
|
|
|
e.g. https://www.inegi.org.mx/app/api/indicadores/desarrolladores/jsonxml/CL_INDICATOR/1002000001/es/BISE/2.0/123-456-789?type=json
|
|
|
|
|
|
|
|
|
|
... | ... | |