Zum Inhalt springen
GET /v1/cpi/groups

Latest CPI across all published categories

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/singapore-stats-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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",
    
…