Docs / Money and business

IFSC and banks API

IFSC to bank and branch.

Branch details for every IFSC in the Reserve Bank's NEFT and RTGS lists: bank, branch, address, MICR and which payment systems the branch supports.

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

Branch for an IFSC

GET/v1/ifsc/{code}

ParameterDescription
codepath, required11-character IFSC.

curl

curl "https://api.dharun.dev/v1/ifsc/SBIN0000001?utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/ifsc/SBIN0000001?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/ifsc/SBIN0000001?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.

Response

{
  "data": {
    "ifsc": "SBIN0000001",
    "bank": {
      "code": "SBIN",
      "name": "State Bank of India"
    },
    "branch": "KOLKATA MAIN",
    "address": "SAMRIDDHI BHAWAN, 1 STRAND ROAD, KOLKATA 700 001",
    "city": "Kolkata",
    "centre": "Kolkata",
    "district": "Kolkata",
    "stateCode": "WB",
    "state": "West Bengal",
    "contact": null,
    "micr": "700002021",
    "swift": null,
    "imps": true,
    "neft": true,
    "rtgs": true,
    "upi": true
  },
  "meta": {
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    }
  }
}

Search a bank's branches

GET/v1/ifsc

Lists branches of one bank, filtered by state, city or text in the branch name or address.

ParameterDescription
bankquery, requiredFour-letter bank code, for example SBIN.
qqueryText to find in the branch name, address or city.
statequeryState code or name, for example TN or Tamil Nadu.
cityqueryExact city name.
limitqueryResults per page, 1 to 100.
offsetqueryResults to skip.

curl

curl "https://api.dharun.dev/v1/ifsc?bank=SBIN&state=TN&q=namakkal&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/ifsc?bank=SBIN&state=TN&q=namakkal&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/ifsc?bank=SBIN&state=TN&q=namakkal&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.

Response, with lists and long text shortened

{
  "data": [
    {
      "ifsc": "SBIN0011060",
      "bank": {
        "code": "SBIN",
        "name": "State Bank of India"
      },
      "branch": "PARAMATHY VELUR",
      "address": "DIST NAMAKKAL, TAMIL NADU",
      "city": "Erode",
      "centre": "Paramathi",
      "district": "Paramathi",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "contact": null,
      "micr": "638002870",
      "swift": null,
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    },
    {
      "ifsc": "SBIN0062472",
      "bank": {
        "code": "SBIN",
        "name": "State Bank of India"
      },
      "branch": "R AND DB RACC NAMAKKAL",
      "address": "NO.2 DR. SANKARAN ROAD, NAMAKKAL 637001",
      "city": "Erode",
      "centre": "Erode",
      "district": "Erode",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "contact": null,
      "micr": null,
      "swift": null,
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    },
    {
      "ifsc": "SBIN0018751",
      "bank": {
        "code": "SBIN",
        "name": "State Bank of India"
      },
      "branch": "ERUMAIPATTI",
      "address": "THURAIYUR MAIN ROAD, ERUMAIPATTI, DIST.NAMAKKAL, TN-637013",
      "city": "Namakkal",
      "centre": "Erumaipatti",
      "district": "Erumaipatti",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "contact": "+919445864441",
      "micr": "636002135",
      "swift": null,
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    }
  ],
  "meta": {
    "total": 19,
    "limit": 20,
    "offset": 0,
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    }
  }
}

Bank for a four-letter code

GET/v1/banks/{code}

ParameterDescription
codepath, requiredFour-letter bank code.

curl

curl "https://api.dharun.dev/v1/banks/HDFC?utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/banks/HDFC?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/banks/HDFC?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.

Response

{
  "data": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "type": "Private",
    "micr": "400240001",
    "upi": true,
    "branches": 11007
  },
  "meta": {
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    }
  }
}

Search banks

GET/v1/banks

Finds banks by name or code, largest branch network first.

ParameterDescription
qqueryText to find in the bank name or code.
limitqueryResults per page, 1 to 100.
offsetqueryResults to skip.

curl

curl "https://api.dharun.dev/v1/banks?q=gramin&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/banks?q=gramin&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/banks?q=gramin&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.

Response, with lists and long text shortened

{
  "data": [
    {
      "code": "PKGB",
      "name": "Karnataka Gramin Bank",
      "upi": false,
      "branches": 1818
    },
    {
      "code": "RMGB",
      "name": "Rajasthan Marudhara Gramin Bank",
      "upi": false,
      "branches": 1650
    },
    {
      "code": "MAHG",
      "name": "Maharashtra Gramin Bank",
      "upi": false,
      "branches": 778
    }
  ],
  "meta": {
    "total": 44,
    "limit": 50,
    "offset": 0,
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    }
  }
}

Branch from a MICR code

GET/v1/micr/{code}

The nine-digit code at the foot of a cheque, to the bank branch and its IFSC.

ParameterDescription
codepath, requiredNine digits.

curl

curl "https://api.dharun.dev/v1/micr/400240003?utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/micr/400240003?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/micr/400240003?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.

Response

{
  "data": [
    {
      "ifsc": "HDFC0000001",
      "bank": {
        "code": "HDFC",
        "name": "HDFC Bank"
      },
      "branch": "TULSIANI CHMBRS - NARIMAN PT",
      "address": "101-104 TULSIANI CHAMBERSFREE PRESS JOURNAL MARGNARIMAN POINTMUMBAI MAHARASHTRA 400 021",
      "city": "Greater Mumbai",
      "centre": "Mumbai",
      "district": "Mumbai",
      "stateCode": "MH",
      "state": "Maharashtra",
      "contact": "+919890603333",
      "micr": "400240003",
      "swift": "HDFCINBB",
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    },
    {
      "ifsc": "HDFC0000501",
      "bank": {
        "code": "HDFC",
        "name": "HDFC Bank"
      },
      "branch": "MUMBAI - MISTRY BHAVAN EXTN CTR",
      "address": "D.VACHA ROAD122 BACKBAY RECLAMATION,CHURCHGATEMUMBAIMAHARASHTRA400 020",
      "city": "Greater Mumbai",
      "centre": "Mumbai",
      "district": "Mumbai",
      "stateCode": "MH",
      "state": "Maharashtra",
      "contact": "+919890603333",
      "micr": "400240003",
      "swift": "HDFCINBB",
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    }
  ],
  "meta": {
    "total": 2,
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    },
    "note": "The branches whose IFSC record carries this MICR code."
  }
}

Branches with a SWIFT code

GET/v1/swift/{code}

ParameterDescription
codepath, required8 or 11 characters, such as HDFCINBB.

curl

curl "https://api.dharun.dev/v1/swift/HDFCINBB?utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/swift/HDFCINBB?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/swift/HDFCINBB?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.

Response, with lists and long text shortened

{
  "data": [
    {
      "ifsc": "HDFC0000001",
      "bank": {
        "code": "HDFC",
        "name": "HDFC Bank"
      },
      "branch": "TULSIANI CHMBRS - NARIMAN PT",
      "address": "101-104 TULSIANI CHAMBERSFREE PRESS JOURNAL MARGNARIMAN POINTMUMBAI MAHARASHTRA 400 021",
      "city": "Greater Mumbai",
      "centre": "Mumbai",
      "district": "Mumbai",
      "stateCode": "MH",
      "state": "Maharashtra",
      "contact": "+919890603333",
      "micr": "400240003",
      "swift": "HDFCINBB",
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    },
    {
      "ifsc": "HDFC0000002",
      "bank": {
        "code": "HDFC",
        "name": "HDFC Bank"
      },
      "branch": "MUMBAI - KHAR WEST",
      "address": "SWAGATAM,OPP. KHAR POLICE STATION,S.V.ROAD, KHAR WEST MUMBAI MAHARASHTRA400 052",
      "city": "Greater Mumbai",
      "centre": "Mumbai",
      "district": "Mumbai",
      "stateCode": "MH",
      "state": "Maharashtra",
      "contact": "+919890603333",
      "micr": "400240004",
      "swift": "HDFCINBB",
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    },
    {
      "ifsc": "HDFC0000003",
      "bank": {
        "code": "HDFC",
        "name": "HDFC Bank"
      },
      "branch": "K G MARG",
      "address": "209 - 214, KAILASH BUILDING, 26, KASTURBA GANDHI MARG, NEW DELHI 110001",
      "city": "New Delhi",
      "centre": "Delhi",
      "district": "Delhi",
      "stateCode": "DL",
      "state": "Delhi",
      "contact": "+9118002026161",
      "micr": "110240001",
      "swift": "HDFCINBB",
      "imps": true,
      "neft": true,
      "rtgs": true,
      "upi": true
    }
  ],
  "meta": {
    "total": 50,
    "source": {
      "name": "IFSC dataset",
      "url": "https://github.com/razorpay/ifsc/releases/tag/v2.0.62",
      "licence": "Public domain (dataset), as stated by the publisher",
      "version": "v2.0.62",
      "retrieved": "2026-11-24T02:51:14Z",
      "attribution": "IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications."
    },
    "note": "The branches whose IFSC record carries this SWIFT code (an 8-character code matches every branch code under it). Many branches have none; foreign transfers ofte…"
  }
}

Data source

IFSC dataset, v2.0.62. Retrieved 2026-11-24T02:51:14Z. Licence: Public domain (dataset), as stated by the publisher. IFSC data from the open razorpay/ifsc dataset, compiled from Reserve Bank of India and NPCI publications.

Guides

Handle India API errors, rate limits and retries

IFSC lookup in Node.js with caching and clean errors

Pincode autofill and IFSC lookup in a Flutter app

Pincode autofill and IFSC lookup in an Android app (Kotlin)

Show the bank and branch for an IFSC code

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.