Ir al contenido
GET /v1/cpi/groups

Latest CPI across all published categories

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/singapore-stats-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/singapore-stats-api/v1/cpi/groups" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/singapore-stats-api/v1/cpi/groups", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/singapore-stats-api/v1/cpi/groups");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/singapore-stats-api/v1/cpi/groups",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "base": "2024 = 100",
        "count": 23,
        "period": "2026 Apr",
        "source": "SingStat M213751",
        "country": "Singapore",
        "indicator": "CPI by category",
        "categories": [
            {
                "index": 102.052,
                "label": "All Items",
                "series_no": "1",
                "change_yoy_pct": 1.76
            },
            {
                "index": 102.73,
                "label": "Food",
                "series_no": "1.0",
                "change_yoy_pct": 1.64
            },
            {
                "index": 103.626,
                "label": "Food Excl Food & Beverage Serving Services",
                "series_no": "1.01",
                "change_yoy_pct": 2.32
            },
            {
                "index": 103.774,
                "label": "Rice & Cereal Products",
                "series_no": "1.01.1",
                "change_yoy_pct": 1.68
            },
            {
                "index": 103.602,
                "label": "Rice",
                "series_no": "1.01.1.1",
                "change_yoy_pct": -0.31
            },
            {
                "index": 102.328,
                "label": "Flour",
                "series_no": "1.01.1.2",
                "change_yoy_pct": 5.76
            },
            {
                "index": 103.339,
                "label": "Bread",
                "series_no": "1.01.1.3",
                "change_yoy_pct": 0.92
            },
            {
                "index": 99.546,
                "label": "Macaroni, Noodles & Similar Pasta Products",
                "series_no": "1.01.1.4",
                "change_yoy_pct": -1.44
            },
            {
                "index": 105.544,
                "label": "Biscuits & Cookies",
                "series_no": "1.01.1.5",
                "change_yoy_pct": 1.98
            },
            {
                "index": 105.311,
                "label": "Cakes & Pastries",
                "series_no": "1.01.1.6",
                "change_yoy_pct": 3.63
            },
            {
                "index": 100.319,
                "label": "Breakfast Cereals",
                "series_no": "1.01.1.7",
                "change_yoy_pct": 0.37
            },
            {
                "index": 103.861,
                "label": "Other Cereal Products Nec",
                "series_no": "1.01.1.8",
                "change_yoy_pct": 3.27
            },
            {
                "index": 101.678,
                "label": "Meat",
                "series_no": "1.01.2",
                "change_yoy_pct": 1.11
            },
            {
                "index": 102.037,
                "label": "Pork, Chilled Or Frozen",
                "series_no": "1.01.2.1",
                "change_yoy_pct": 1.86
            },
            {
                "index": 107.008,
                "label": "Beef, Chilled Or Frozen",
                "series_no": "1.01.2.2",
    
…