zapi.
APISPRICINGDOCSMCP
GitHub
zapi.
APISPRICINGDOCSMCP
GitHub
← Finance
Logo PIHPS (Harga Pangan)

PIHPS (Harga Pangan)

Harga pangan strategis harian dari Bank Indonesia: per komoditas, per provinsi, di empat tingkat pasar (tradisional, modern, pedagang besar, produsen).

3endpoints4requests

▸ Query parameters

Sent as a URL query string
commoditystringOptional

Commodity or category id from `pihps/commodities` (default cat_1, rice).

marketenumOptional

Market tier: 1 traditional (default), 2 modern, 3 wholesaler, 4 producer.

Values:1234
provincestringOptional

Province id from `pihps/regions`. Omit for all provinces.

fromstringOptional

Start date (YYYY-MM-DD or YYYYMMDD). Default 7 days back.

tostringOptional

End date (YYYY-MM-DD or YYYYMMDD). Default today.

Endpoints

Select an endpoint to explore

3

Details

Endpoint metadata

Category
Finance →
Cache TTL
3600s
Params
5
Requests
4
Last update
21 hours ago
LLM reference
llms.txt

Full reference

3 endpoints · plain text
GETFood Prices/v1/finance:pihps/pricesHarga harian satu komoditas per provinsi. Hari tanpa survei dikembalikan sebagai null, bukan nol.

Parameters

commoditystringoptional
Commodity or category id from `pihps/commodities` (default cat_1, rice).
marketenumoptional
Market tier: 1 traditional (default), 2 modern, 3 wholesaler, 4 producer. Values: 1, 2, 3, 4.
provincestringoptional
Province id from `pihps/regions`. Omit for all provinces.
fromstringoptional
Start date (YYYY-MM-DD or YYYYMMDD). Default 7 days back.
tostringoptional
End date (YYYY-MM-DD or YYYYMMDD). Default today.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pihps/prices?commodity=cat_1&market=1&province=13&from=2026-08-01&to=2026-08-08" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "to": "2026-08-07",
  "from": "2026-08-03",
  "count": 35,
  "dates": [
    "2026-08-03",
    "2026-08-04",
    "2026-08-05",
    "2026-08-06",
    "2026-08-07"
  ],
  "items": [
    {
      "level": 0,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 16200
        },
        {
          "date": "2026-08-04",
          "price": 16250
        },
        {
          "date": "2026-08-05",
          "price": 16250
        },
        {
          "date": "2026-08-06",
          "price": 16250
        },
        {
          "date": "2026-08-07",
          "price": 16250
        }
      ],
      "region": "Semua Provinsi"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 15650
        },
        {
          "date": "2026-08-04",
          "price": 15350
        },
        {
          "date": "2026-08-05",
          "price": 15650
        },
        {
          "date": "2026-08-06",
          "price": null
        },
        {
          "date": "2026-08-07",
          "price": 15350
        }
      ],
      "region": "Aceh"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 15350
        },
        {
          "date": "2026-08-04",
          "price": 15400
        },
        {
          "date": "2026-08-05",
          "price": 15400
        },
        {
          "date": "2026-08-06",
          "price": 15400
        },
        {
          "date": "2026-08-07",
          "price": 15400
        }
      ],
      "region": "Sumatera Utara"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 17900
        },
        {
          "date": "2026-08-04",
          "price": 17900
        },
        {
          "date": "2026-08-05",
          "price": 18150
        },
        {
          "date": "2026-08-06",
          "price": 17900
        },
        {
          "date": "2026-08-07",
          "price": 17900
        }
      ],
      "region": "Sumatera Barat"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 16650
        },
        {
          "date": "2026-08-04",
          "price": 16650
        },
        {
          "date": "2026-08-05",
          "price": 16650
        },
        {
          "date": "2026-08-06",
          "price": 16800
        },
        {
          "date": "2026-08-07",
          "price": 16700
        }
      ],
      "region": "Riau"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 15500
        },
        {
          "date": "2026-08-04",
          "price": null
        },
        {
          "date": "2026-08-05",
          "price": 15500
        },
        {
          "date": "2026-08-06",
          "price": 15500
        },
        {
          "date": "2026-08-07",
          "price": null
        }
      ],
      "region": "Kepulauan Riau"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 15550
        },
        {
          "date": "2026-08-04",
          "price": 15550
        },
        {
          "date": "2026-08-05",
          "price": 15550
        },
        {
          "date": "2026-08-06",
          "price": 15550
        },
        {
          "date": "2026-08-07",
          "price": 15550
        }
      ],
      "region": "Jambi"
    },
    {
      "level": 1,
      "prices": [
        {
          "date": "2026-08-03",
          "price": 15800
        },
        {
          "date": "2026-08-04",
          "price": 15800
        },
        {
          "date": "2026-08-05",
          "price": 15850
        },
        {
          "date": "2026-08-06",
          "price": 15850
        },
        {
          "date": "2026-08-07",
          "price": 15850
        }
      ],
      "region": "Bengkulu"
    }
  ],
  "market": "1",
  "source": "bank-indonesia-pihps",
  "currency": "IDR",
  "commodity": "cat_1"
}
GETCommodities/v1/finance:pihps/commoditiesDaftar acuan komoditas dan kategori beserta satuannya, plus empat tingkat pasar yang bisa dipilih.

Parameters

This endpoint takes no parameters.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pihps/commodities" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 31,
  "items": [
    {
      "id": "cat_1",
      "name": "Beras",
      "unit": "kg",
      "order": 1,
      "categoryId": null
    },
    {
      "id": "com_1",
      "name": "Beras Kualitas Bawah I",
      "unit": "kg",
      "order": 1,
      "categoryId": "cat_1"
    },
    {
      "id": "cat_2",
      "name": "Daging Ayam",
      "unit": "kg",
      "order": 2,
      "categoryId": null
    },
    {
      "id": "com_2",
      "name": "Beras Kualitas Bawah II",
      "unit": "kg",
      "order": 2,
      "categoryId": "cat_1"
    },
    {
      "id": "cat_3",
      "name": "Daging Sapi",
      "unit": "kg",
      "order": 3,
      "categoryId": null
    },
    {
      "id": "com_3",
      "name": "Beras Kualitas Medium I",
      "unit": "kg",
      "order": 3,
      "categoryId": "cat_1"
    },
    {
      "id": "cat_4",
      "name": "Telur Ayam",
      "unit": "kg",
      "order": 4,
      "categoryId": null
    },
    {
      "id": "com_4",
      "name": "Beras Kualitas Medium II",
      "unit": "kg",
      "order": 4,
      "categoryId": "cat_1"
    }
  ],
  "source": "bank-indonesia-pihps",
  "markets": [
    {
      "id": "1",
      "name": "Pasar Tradisional"
    },
    {
      "id": "2",
      "name": "Pasar Modern"
    },
    {
      "id": "3",
      "name": "Pedagang Besar"
    },
    {
      "id": "4",
      "name": "Produsen"
    }
  ]
}
GETRegions/v1/finance:pihps/regionsProvinsi, atau kabupaten/kota di satu provinsi kalau `province` diisi.

Parameters

provincestringoptional
Province id. When set, returns that province's regencies instead of the province list.
marketenumoptional
Market tier the regency list applies to (default 1). Values: 1, 2, 3, 4.

Request

curl -X GET "https://api.zpi.web.id/v1/finance:pihps/regions?province=13&market=1" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "count": 1,
  "items": [
    {
      "id": "34",
      "name": "Kota Jakarta Pusat"
    }
  ],
  "level": "regency",
  "source": "bank-indonesia-pihps",
  "province": "13"
}
▸ Related

More from this category

Logo TradingView

TradingView

finance/tradingview

Screener, charts, technical indicators, fundamentals, news and the macro calendar across 16 markets — Indonesian equities, US equities, crypto, forex and futures.

28K·10·300s
Logo Stockbit

Stockbit

finance/stockbit

Data saham IDX dari Stockbit: harga, chart intraday, profil emiten, diskusi komunitas, dan kamus investasi.

11.4K·7·86400s
Logo Yahoo Finance

Yahoo Finance

finance/yahoo-finance

Global quotes, fundamentals, statements, options, earnings, ownership and analyst coverage. Jakarta listings via the .JK suffix.

2K·13·300s
Logo IDX (Bursa Efek Indonesia)

IDX (Bursa Efek Indonesia)

finance/idx

Data Bursa Efek Indonesia: ringkasan saham & indeks, top movers, broker, emiten, laporan keuangan, berita, dan passthrough ke ratusan endpoint /primary/.

25.5K·21·86400s
Logo Binance

Binance

finance/binance

Global crypto spot market data — 24h statistics, candles and order book depth from the largest venue.

633·4·300s
Logo Indodax

Indodax

finance/indodax

Indonesia's crypto exchange — prices in rupiah from the venue that actually trades them, with order book and tape.

446·5·300s
Major outage
zapi. — Public REST API catalog. No fabricated numbers.
TermsPrivacyAUP© 2026