India Government Data (data.gov.in) — Trade, Prices & More avatar

India Government Data (data.gov.in) — Trade, Prices & More

Pricing

Pay per usage

Go to Apify Store
India Government Data (data.gov.in) — Trade, Prices & More

India Government Data (data.gov.in) — Trade, Prices & More

Pull any Indian government open dataset from data.gov.in via the official OGD API: foreign trade (export/import), mandi prices, census, and thousands more. Filter, paginate, structured JSON. No anti-bot.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

The Mine Works

The Mine Works

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

2 days ago

Last modified

Share

India Government Data (data.gov.in) — Trade, Prices, Census & More

Pull any Indian government open dataset from data.gov.in — the official Open Government Data platform — as clean, structured JSON, through the official OGD API. Foreign trade (export/import), mandi commodity prices, census, agriculture, health, energy and thousands more. Filter, paginate, and stream straight into your pipeline. No anti-bot, no scraping fragility — this is the government's own API.

Keywords: data.gov.in API, India open data, OGD platform, India foreign trade data, export import India, mandi prices API, Indian government datasets, India statistics API.


Why this actor

India publishes a vast amount of open data through data.gov.in — but the OGD API is per-dataset, returns inconsistent envelopes, paginates by offset, and needs an API key. This actor wraps all of that into a single, reliable tool: give it a dataset's resource ID and it streams the whole dataset (or your filtered slice) as flat records.

  • Any dataset — trade, prices, census, agriculture, health, transport, energy. If it's on data.gov.in, this pulls it.
  • Server-side filters — narrow by any field the dataset exposes (state, commodity, year…).
  • Full pagination — pull a sample or the entire dataset.
  • Official API, no anti-bot — this is the government's own endpoint, so it's stable and legitimate.
  • Bring your own free key — use the shared sample key for testing, your own free data.gov.in key for production.

India's DGCIS / DGFT foreign-trade statistics — exports and imports by principal commodity and by country — are published on data.gov.in. Find the dataset you want on data.gov.in (search "foreign trade" or "export import"), copy its resource ID, and this actor pulls it: commodity, country, year, value — structured and ready for analysis. The same actor also gives you mandi prices, census, and the rest of the catalog.


How to find a resource ID

  1. Go to data.gov.in and search for your dataset (e.g. "foreign trade", "export", "mandi price").
  2. Open the dataset and click its API tab (or look at the resource URL).
  3. Copy the resource ID — a UUID like 9ef84268-d588-465a-a308-a864a43d0070.
  4. Paste it into resourceId.

Input

FieldTypeDescription
resourceIdstringThe data.gov.in dataset resource ID. Required.
apiKeystringYour free data.gov.in API key. Blank = shared sample key (rate-limited; testing only).
filtersstring[]field=value filters (e.g. state=Maharashtra, commodity=Onion). Combined with AND.
maxResultsintegerMax records to return (default 1000).

Example input

{
"resourceId": "9ef84268-d588-465a-a308-a864a43d0070",
"filters": ["state=Maharashtra", "commodity=Onion"],
"maxResults": 500,
"apiKey": "your-free-data-gov-in-key"
}

Output

Each record is returned exactly as the dataset defines it (schemas vary by dataset), plus _resource_id and _scraped_at. For the mandi-price dataset, for example:

{
"state": "Maharashtra",
"district": "Mumbai",
"market": "Mumbai-Onion & Potato Market APMC",
"commodity": "Onion",
"variety": "Red",
"arrival_date": "11/06/2026",
"min_price": 1000,
"max_price": 1600,
"modal_price": 1350,
"_resource_id": "9ef84268-d588-465a-a308-a864a43d0070",
"_scraped_at": "2026-06-11T13:00:00.000Z"
}

A final {"_type": "summary"} record reports the dataset title, how many records were returned, and the total available.


Pricing

Your first 25 records are free — every Apify account, no card, no trial clock. After that it is a flat $0.001 per record.

  • First 25 records free per account (lifetime), then $0.001/record ($1 per 1,000)
  • Zero charge on empty runs
  • No monthly minimum, no rental

FAQ

Do I need an API key? A free data.gov.in key is recommended for production (instant signup at data.gov.in → My Account). The actor falls back to a shared sample key for testing, but it's heavily rate-limited.

Can I get India's export/import data? Yes — the DGCIS/DGFT foreign-trade datasets are on data.gov.in. Find the resource ID and pass it in.

Which datasets are supported? All of them — data.gov.in hosts hundreds of thousands of resources across every ministry. This actor works against any of them.

Is this legal / reliable? Yes — it uses the government's own official OGD API. No scraping of rendered pages, no anti-bot circumvention.