India API

India API

Free APIs for India.

Pincodes, IFSC codes, GSTIN checks, holidays, RTO codes, UPI QR codes and more: 31 APIs, one simple shape. No key. No sign-up. Open source.

curl https://api.dharun.dev/v1/pincode/637001
{
  "data": {
    "pincode": "637001",
    "district": "Namakkal",
    "stateCode": "TN",
    "state": "Tamil Nadu",
    "offices": [
      {
        "name": "Namakkal H.O",
        "type": "Head Office",
        "delivery": true,
        "division": "Namakkal",
        "region": "Western Region, Coimbatore",
        "circle": "Tamilnadu",
        "district": "Namakkal",
        "stateCode": "TN",
        "state": "Tamil Nadu",
        "latitude": 11.2155833,
        "longitude": 78.1702778
      },
      {
        "name": "Namakkal Bazaar S.O",
        "type": "Post Office",
        "delivery": false,
        "division": "Namakkal",
        "region": "Western Region, Coimbatore",
        "circle": "Tamilnadu",
        "district": "Namakkal",
        "stateCode": "TN",
        "state": "Tamil Nadu",
        "latitude": 11.2240556,
        "longitude": 78.1703333
      },
      {
        "name": "Namakkal Fort S.O",
        "type": "Post Office",
        "delivery": false,
        "division": "Namakkal",
        "region": "Western Region, Coimbatore",
        "circle": "Tamilnadu",
        "district": "Namakkal",
        "stateCode": "TN",
        "state": "Tamil Nadu",
        "latitude": 11.238,
        "longitude": 78.166
      }
    ]
  },
  "meta": {
    "source": {
      "name": "All India Pincode Directory",
      "url": "https://www.data.gov.in/resource/all-india-pincode-directory-till-last-month",
      "licence": "Government Open Data License - India (GODL)",
      "version": "23760720 bytes",
      "retrieved": "2026-10-13",
      "attribution": "Contains data from the All India Pincode Directory, Department of Posts, published on data.gov.in under the Government Open Data License - India."
    }
  }
}

No key, no sign-up

Call it from your server or straight from a browser. CORS is open, and every answer has the same { data, meta } shape.

Open source

The code is on GitHub under AGPL-3.0. Every response names its data source, its version and its licence.

Private by default

No cookies, no tracking, no IP addresses in the logs. Personal values you send are never logged. Details

Every API.

Each has its own page with parameters, a real response and code to copy.

Ready for AI assistants.

Connect the MCP server and Claude, ChatGPT, Cursor or VS Code can look up Indian data on their own. Add the Agent Skill and your coding agent knows the whole API.

Set it up
claude mcp add --transport http india-api https://api.dharun.dev/mcp

Questions.

Is it free?

Yes. There is no API key, no sign-up and no paid plan. Each client can make 600 requests a minute; a few endpoints that do heavy work count as more than one.

Can I use it in a commercial app?

Yes. Calling the API puts no licence on your app. The data keeps the licence of its source, named in every response under meta.source; a few sources ask for a credit line. The code examples on this site are MIT-0, so you can paste them anywhere.

Where does the data come from?

From official publications such as the Reserve Bank of India, India Post, NSE and the GST council, and from open datasets such as OurAirports and Wikipedia. Every response says which source it used, its version and when it was retrieved.

What do you log?

One line per request with the path, the status and the time taken. IP addresses are never written to the log, and endpoints that take personal values (phone numbers, email addresses, text you send) leave their input out of the log entirely.

Can I run it myself?

Yes. The whole service is open source under AGPL-3.0: one Go program and its datasets. The README explains how to build and run it.

Does it work with AI assistants?

Yes. There is an MCP server at /mcp with no authentication, an Agent Skill, a Claude Code plugin, an OpenAPI description and llms.txt.