API Reference

Food Prices & Anomaly Index (National Food Agency)

Official National Food Agency (Bapanas) food-price data: monthly average consumer prices (since 2021) and producer prices (since 2019), national and per-province. The latest available open price edition ends in January 2026, not real-time prices, plus the Price Anomaly Index (QIPA/AIPA/IFPA) to flag abnormal spikes and drops. Sourced from BPN Open Data.

Main endpoint
GET https://use.apiindonesia.id/api/v1/harga-pangan
Endpoints
3
Authentication
x-api-key header (create one free in the dashboard)
Price
2 credits (Rp2) per successful request; failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Data source
Data source: National Food Agency, Open Data Pangan (data.badanpangan.go.id). Data follows official BPN releases and may change with agency updates. API Indonesia adds an access and aggregation layer, not a replacement for official channels in government decision-making.
Product Brief

What this API gives you

Official National Food Agency (Bapanas) food-price data: monthly average consumer prices (since 2021) and producer prices (since 2019), national and per-province. The latest available open price edition ends in January 2026, not real-time prices, plus the Price Anomaly Index (QIPA/AIPA/IFPA) to flag abnormal spikes and drops. Sourced from BPN Open Data.

Data source: National Food Agency, Open Data Pangan (data.badanpangan.go.id). Data follows official BPN releases and may change with agency updates. API Indonesia adds an access and aggregation layer, not a replacement for official channels in government decision-making.

Coverage
3

ready-to-use endpoints in this product, with JSON responses and consistent error handling.

Access
API key

Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.

Sample resource
https://use.apiindonesia.id/api/v1/harga-pangan

Returns a summary of every series (consumer/producer level x national/province region): commodity count, row count, and the available month range.

Example product scenarios

This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.

  • Food-price apps & media: surface beras, cooking oil, and chili prices per province automatically for content and widgets.
  • Inflation & commodity analysis: track historical price trends (producer since 2019, consumer since 2021, through the January 2026 open edition) and flag strategic price anomalies for research or economic dashboards.
  • E-commerce & agritech: estimate farm-input or food-logistics costs from producer and consumer price data.

Example Usage

Request
curl "https://use.apiindonesia.id/api/v1/harga-pangan" -H "x-api-key: YOUR_API_KEY"
Response · 200 OK
{
  "success": true,
  "data": [
    { "tingkat": "konsumen", "wilayah": "nasional", "komoditas": 46, "rows": 1146, "dari": "2021-01", "sampai": "2026-01" },
    { "tingkat": "konsumen", "wilayah": "provinsi", "komoditas": 27, "rows": 36348, "dari": "2021-01", "sampai": "2026-01" }
  ]
}

Related Articles

Pricing 2 credits (Rp2) per successful request; failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

Food Prices & Anomaly Index (National Food Agency) API questions

Which food-price data is available?

Monthly average consumer prices (since 2021) and producer prices (since 2019), national and per province, from the National Food Agency open data.

Are prices real-time?

No. The latest open edition ends in January 2026, so use it for trend analysis rather than daily prices.

What is the price anomaly index?

GET /api/v1/harga-pangan/anomali returns the QIPA/AIPA/IFPA indices that flag abnormal price spikes and drops per commodity.

Get Started

Start Integrating
Today

Sign up for free and get a 3,000 credit bonus (Rp3,000) once your email is verified, grab an API key, and call your first endpoint right away. No credit card, no tedious approval process.

Dot wave visualization