IFSC Lookup API
Takes an 11-character IFSC and returns the bank, branch, address, city, state, MICR and the payment rails that branch supports. Retired codes from bank mergers are flagged.
- Source
- RBI's published IFSC and branch lists
- Turnaround
- Instant
- Endpoint
- POST /v1/ifsc/lookup
- Who can use it
- Open to any business account. No end-user consent is needed because no personal data is involved.
Overview
Type-checking an IFSC isn't enough. Branches close, banks merge, and some branches can't take RTGS or IMPS. This API checks an IFSC against the RBI branch list and tells you the bank, branch, address and the rails it supports, so you catch bad payout details before they turn into failed transfers.
Good to know
It describes the branch, not the account. A valid IFSC with a wrong account number will still fail at payout time.
What you get
- RBI branch listWe keep the IFSC master in sync with RBI's published lists, including codes retired after mergers.
- Rails per branchKnow whether a branch takes NEFT, RTGS, IMPS and UPI before you pick a payout mode.
- Autofill for formsShow the bank and branch as soon as a user types the IFSC, so they notice their own typos.
- Free with account verificationBank account verification already includes the IFSC details, so you don't need two calls for the same payout.
Request
POST https://api.ampletrails.com/v1/ifsc/lookup
| Field | Type | Status | Description |
|---|---|---|---|
ifsc | string | Required | 11-character Indian Financial System Code |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
valid | Whether the IFSC exists in the RBI directory | true |
bank | Bank name | HDFC Bank |
branch | Branch name | Connaught Place |
address | Branch address | Block A, Connaught Place, New Delhi 110001 |
city | Branch city | New Delhi |
state | Branch state | Delhi |
micr | MICR code where available | 110240001 |
rails | Payment rails the branch supports | NEFT, RTGS, IMPS, UPI |
Example
curl -X POST https://api.ampletrails.com/v1/ifsc/lookup \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ifsc": "HDFC0001234", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/ifsc/lookup",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"ifsc": "HDFC0001234",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/ifsc/lookup", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"ifsc": "HDFC0001234",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/ifsc/lookup");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["ifsc" => "HDFC0001234", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"valid": true,
"bank": "HDFC Bank",
"branch": "Connaught Place",
"address": "Block A, Connaught Place, New Delhi 110001",
"city": "New Delhi",
"state": "Delhi",
"micr": "110240001",
"rails": "NEFT, RTGS, IMPS, UPI"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Payout forms
Fill in the bank and branch name as the user types, which cuts down wrong IFSCs at the source.
Bulk payout checks
Run a vendor or employee file through the API before month end and fix bad IFSCs before the payment run.
Choosing a rail
Pick RTGS or NEFT for large amounts and IMPS for small ones, based on what the branch actually supports.
Questions about this API
What happens with an IFSC from a bank that merged?
We return valid: false along with the successor bank where we know it. Ask the customer for the new IFSC; most banks have printed new cheque books by now.
How often is the data updated?
We refresh it when RBI publishes changes. New branches can take a few days to appear everywhere.
Does a valid IFSC mean the account is valid?
No. It only tells you the branch exists. Use bank account verification to check the account itself.
Is there a charge for IFSC lookup?
It is priced well below a verification call, and it is included in bank account verification responses. Ask us for a quote if you need high volumes.
Try the IFSC Lookup API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.