inei_get_indicator_data
Get census data for a Peruvian geography using indicator and geography IDs. Returns population totals, housing, education, and economic indicators for the area.
Instructions
Get census data for a geography, referencing a specific indicator ID.
Requires both id_indicador (from inei_search_indicators) and id_geografia (from inei_get_departments). Returns the full census profile for that geography including population totals, housing, education, and economic indicators.
Note: due to API changes, returns all available census data for the geography rather than a single filtered indicator. Scan seccion1/seccion2 for your indicator.
Common indicator IDs (Census 2017):
516654: Población Total
262215: Población Censada
262218: Población Censada Urbana
262221: Población Censada Rural
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_geografia | No | Optional geography ID (from inei_get_departments) to filter and compare. E.g. 2150000 for Lima. | |
| id_indicador | Yes | Indicator ID from inei_search_indicators. E.g. 516654 for Población Total. |