Refnusa Food Prices API

The Food Prices API from Refnusa — 3 operation(s) for food prices.

GitHub OpenAPI

Operations 3

GET /v1/food-prices/commodities The 10 staple food groups and 21 items PIHPS Nasional reports, with unit… #
GET /v1/food-prices/latest Latest PIHPS Nasional price per province and staple food, in Rp/kg: tradisional… #
GET /v1/food-prices/series Monthly PIHPS Nasional price series for one province and one staple food, in… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/refnusa-dev:refnusa-dev-food-prices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

refnusa-dev-food-prices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Refnusa Dev Food Prices API
  version: 0.2.0
  description: 'Operations tagged Food Prices across 2 of this provider''s published API definitions: openapi.json, refnusa-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://refnusa.dev
tags:
- name: Food Prices
paths:
  /v1/food-prices/commodities:
    get:
      summary: The 10 staple food groups and 21 items PIHPS Nasional reports, with unit…
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      tags:
      - Food Prices
      operationId: getV1FoodPricesCommodities
      x-operation-id-source: derived
    servers:
    - url: https://refnusa.dev
  /v1/food-prices/latest:
    get:
      summary: 'Latest PIHPS Nasional price per province and staple food, in Rp/kg: tradisional…'
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      parameters:
      - name: commodity
        in: query
        required: false
        schema:
          type: string
          description: Commodity code from list_food_commodities (a group or an item), optional; with month, groups only
          enum:
          - beras
          - daging_ayam
          - daging_sapi
          - telur_ayam
          - bawang_merah
          - bawang_putih
          - cabai_merah
          - cabai_rawit
          - minyak_goreng
          - gula_pasir
          - beras_bawah_1
          - beras_bawah_2
          - beras_medium_1
          - beras_medium_2
          - beras_super_1
          - beras_super_2
          - daging_ayam_ras
          - daging_sapi_1
          - daging_sapi_2
          - telur_ayam_ras
          - bawang_merah_sedang
          - bawang_putih_sedang
          - cabai_merah_besar
          - cabai_merah_keriting
          - cabai_rawit_hijau
          - cabai_rawit_merah
          - minyak_goreng_curah
          - minyak_goreng_kemasan_1
          - minyak_goreng_kemasan_2
          - gula_pasir_premium
          - gula_pasir_lokal
      - name: market
        in: query
        required: false
        schema:
          type: string
          description: 'tradisional or modern; omit for one row per province and commodity, tradisional first then modern (with month: tradisional only)'
          enum:
          - tradisional
          - modern
      - name: province_code
        in: query
        required: false
        schema:
          type: string
          description: 'Kemendagri province code, optional (Papua and Papua Barat only: 91, 92)'
          pattern: ^\d{2}$
      - name: month
        in: query
        required: false
        schema:
          type: string
          description: Return this month instead of the newest on file, optional
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
      tags:
      - Food Prices
      operationId: getV1FoodPricesLatest
      x-operation-id-source: derived
    servers:
    - url: https://refnusa.dev
  /v1/food-prices/series:
    get:
      summary: Monthly PIHPS Nasional price series for one province and one staple food, in…
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      parameters:
      - name: commodity
        in: query
        required: true
        schema:
          type: string
          description: Commodity code from list_food_commodities
          enum:
          - beras
          - daging_ayam
          - daging_sapi
          - telur_ayam
          - bawang_merah
          - bawang_putih
          - cabai_merah
          - cabai_rawit
          - minyak_goreng
          - gula_pasir
      - name: province_code
        in: query
        required: true
        schema:
          type: string
          description: Kemendagri province code
          pattern: ^\d{2}$
      - name: from
        in: query
        required: false
        schema:
          type: string
          description: First month, optional
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
      - name: to
        in: query
        required: false
        schema:
          type: string
          description: Last month, optional
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
      tags:
      - Food Prices
      operationId: getV1FoodPricesSeries
      x-operation-id-source: derived
    servers:
    - url: https://refnusa.dev
components:
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              message:
                type: string
x-refined-from:
- openapi.json
- refnusa-dev-openapi.yml