DEV Community

Shariq Mirza
Shariq Mirza

Posted on

I built a real-time Indian Mandi Price API — here's how

What I built

A REST API that gives real-time daily agricultural commodity
prices from Indian mandis — filtered by state, crop, and district.

Data is sourced directly from Government of India (data.gov.in)
and updates daily.

Why I built it

India has 7000+ mandis but no clean API to access price data.
Agri-tech startups, commodity trading apps, and farmer apps
all need this data — but there was no easy way to get it.

So I built one.

Tech Stack

  • Node.js + Express
  • Deployed on Railway
  • Data from data.gov.in
  • Listed on RapidAPI

Endpoints

  • GET /api/mandi/prices — all prices
  • GET /api/mandi/prices/state/Kerala — filter by state
  • GET /api/mandi/prices/crop/Wheat — filter by crop
  • GET /api/mandi/prices/district/Alappuzha — filter by district

Try it free

https://rapidapi.com/shariqmirza139/api/india-mandi-price-api

Free plan available — no credit card needed.

Feedback welcome!

Top comments (0)