Portuguese Official Statistics Indicator Data
ine-portugal.stats.indicator_dataGet observation data for a Statistics Portugal (INE) indicator by its 7-digit varcd code (e.g. "0008273" for resident population by NUTS region, sex and age group). Optionally filter by up to 6 generic dimensions (Dim1 is usually the reference period, the rest are indicator-specific, e.g. geography/sex/age) — get valid codes first from ine-portugal.indicator_metadata. There is no upstream search/catalog endpoint, so the varcd must already be known. Data: www.ine.pt (Statistics Portugal open JSON indicator API), no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim1 | No | Filter code for Dimension 1 (usually the reference period, e.g. "S7A2023" for year 2023 or "2023" depending on the indicator). Get valid codes from ine-portugal.indicator_metadata before calling. Omit to fetch data across all periods. | |
| dim2 | No | Filter code for Dimension 2 (indicator-specific, e.g. a NUTS geography code). Get valid codes from ine-portugal.indicator_metadata. Omit to include all values of this dimension. | |
| dim3 | No | Filter code for Dimension 3 (indicator-specific, e.g. sex). Get valid codes from ine-portugal.indicator_metadata. Omit to include all values of this dimension. | |
| dim4 | No | Filter code for Dimension 4 (indicator-specific, e.g. age group). Get valid codes from ine-portugal.indicator_metadata. Omit to include all values of this dimension. | |
| dim5 | No | Filter code for Dimension 5, if the indicator has one. Get valid codes from ine-portugal.indicator_metadata. Omit to include all values of this dimension. | |
| dim6 | No | Filter code for Dimension 6, if the indicator has one. Get valid codes from ine-portugal.indicator_metadata. Omit to include all values of this dimension. | |
| lang | No | Response language for labels: "EN" (English, default) or "PT" (Portuguese). | |
| varcd | Yes | INE (Statistics Portugal) 7-digit indicator code, zero-padded (e.g. "0008273" for resident population by NUTS/sex/age group). There is no upstream search/catalog endpoint — find valid codes via the official INE indicator database (www.ine.pt/xportal) or ine-portugal.indicator_metadata once you have a code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |