Docs / Money and business

Mandi prices API

Today's wholesale prices of vegetables, fruit, grain and pulses in India's markets, from Agmarknet.

The prices that agricultural markets (mandis) report to Agmarknet each day: minimum, maximum and modal price in rupees a quintal, by market, commodity, variety and grade. From data.gov.in, checked every three hours, the last 30 days kept.

Base URL https://api.dharun.devNo key needed for most600 units a minute, 3000 with a free keyThis page as Markdown

Prices by commodity, state, district or market

GET/v1/mandi

The latest day's prices unless date is given, 100 rows unless limit says otherwise.

ParameterDescription
commodityqueryAs Agmarknet names it: Tomato, Onion, Potato, Paddy(Dhan)(Common) ... (see /v1/mandi/commodities).
statequerySuch as Tamil Nadu.
districtquerySuch as Dharmapuri.
marketqueryPart of a market's name.
datequeryYYYY-MM-DD, within the last 30 days. Default the latest.
limitquery1 to 1000. Default 100.

curl

curl "https://api.dharun.dev/v1/mandi?commodity=Tomato&state=Tamil%20Nadu&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/mandi?commodity=Tomato&state=Tamil%20Nadu&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);

Python

import requests

response = requests.get("https://api.dharun.dev/v1/mandi?commodity=Tomato&state=Tamil%20Nadu&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])
Try it here

Change the values and send the request from your browser. Needs JavaScript.

What was reported on the latest day

GET/v1/mandi/commodities

Each commodity with how many markets reported it and the range of their modal prices.

ParameterDescription
statequeryOnly this state's markets.

curl

curl "https://api.dharun.dev/v1/mandi/commodities?state=Karnataka&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/mandi/commodities?state=Karnataka&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);

Python

import requests

response = requests.get("https://api.dharun.dev/v1/mandi/commodities?state=Karnataka&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])
Try it here

Change the values and send the request from your browser. Needs JavaScript.

Data source

Current daily price of various commodities from various markets (Mandi), f1bbf450987c. Retrieved 2026-11-13T22:08:29Z. Licence: Government Open Data License - India. Mandi prices from Agmarknet, published on data.gov.in under the Government Open Data License - India.

Using an AI assistant? Connect the MCP server and it can call this API by itself. Want every endpoint on one bench? Open the playground.