Free IFSC Code JSON REST API
Integrate RBI-verified IFSC lookup directly into your checkout, payroll, or fintech application. Our JSON endpoints are compatible with standard IFSC response payloads and require no authentication key.
⚠️ Usage Terms & Attribution Requirement
This API is provided 100% free of charge for commercial and non-commercial projects under the Creative Commons Attribution (CC BY 4.0) license. There are no rate limits for standard usage.
Attribution Required: In exchange for free access, you must place a visible, clickable link back to https://searchpincode.in in your application's footer, "Credits", or "About Us" page. (e.g., "IFSC Data powered by SearchPincode.in").
Live API Endpoint Tester
Click "Test GET /api/ifsc/{code}" to inspect live JSON response...
1. Lookup Branch by IFSC Code
GET https://searchpincode.in/ifsc/api/ifsc/{IFSC} or GET https://searchpincode.in/ifsc/api/ifsc.php?ifsc={IFSC}
Example: https://searchpincode.in/ifsc/api/ifsc/SBIN0000300
{
"success": true,
"BANK": "State Bank of India",
"IFSC": "SBIN0000300",
"BRANCH": "MUMBAI MAIN",
"ADDRESS": "MUMBAI SAMACHAR MARG, FORT, MUMBAI, MAHARASHTRA",
"CONTACT": "022-22660694",
"CITY1": "MUMBAI",
"CITY2": "GREATER BOMBAY",
"DISTRICT": "GREATER BOMBAY",
"STATE": "MAHARASHTRA",
"PINCODE": "400001",
"BANKCODE": "SBIN",
"CATEGORY": "Public Sector Bank",
"RTGS": true,
"NEFT": true,
"IMPS": true,
"UPI": true
}
2. Hierarchy & Search Endpoints
| Endpoint | Description | Sample Link |
|---|---|---|
GET /api/banks.php |
List all 234 RBI banks with 4-letter bank codes & branch counts | Open JSON |
GET /api/states.php?bank={slug} |
List all states (or states where a specific bank operates) | Open JSON |
GET /api/districts.php?bank={slug}&state={slug} |
List districts in a state (filtered by bank if provided) | Open JSON |
GET /api/branches.php?bank={slug}&state={slug}&district={slug} |
List all branches of a bank in a district | Open JSON |
GET /api/search.php?q={query} |
Search banks, states, districts, and branches by keyword or PIN | Open JSON |
1-Click Code Snippets for Projects
Copy-paste ready implementation examples for fintech apps, payroll forms, and engineering college projects:
<!-- HTML & Vanilla JS: Verify Bank Branch details before payout -->
<input type="text" id="ifscCode" placeholder="Enter 11-char IFSC Code" maxlength="11">
<input type="text" id="bankName" placeholder="Bank Name" readonly>
<input type="text" id="branchName" placeholder="Branch Name" readonly>
<script>
document.getElementById('ifscCode').addEventListener('input', function(e) {
const code = e.target.value.trim().toUpperCase();
if (code.length === 11) {
fetch(https://searchpincode.in/ifsc/api/ifsc/ + code)
.then(res => res.json())
.then(data => {
if (data.success && data.BANK) {
document.getElementById('bankName').value = data.BANK;
document.getElementById('branchName').value = data.BRANCH;
} else {
alert('Invalid or unknown IFSC code');
}
})
.catch(err => console.error('API Error:', err));
}
});
</script>
// React / Next.js: Validate IFSC Code Component
import React, { useState } from 'react';
export default function IfscValidator() {
const [ifsc, setIfsc] = useState('');
const [bankData, setBankData] = useState(null);
const checkIfsc = async (val) => {
setIfsc(val.toUpperCase());
if (val.length === 11) {
try {
const res = await fetch(https://searchpincode.in/ifsc/api/ifsc/);
const data = await res.json();
if (data.success) setBankData(data);
} catch (e) {
console.error('Error fetching IFSC data');
}
} else {
setBankData(null);
}
};
return (
<div>
<input
value={ifsc}
onChange={e => checkIfsc(e.target.value)}
placeholder="Enter IFSC (e.g., SBIN0000300)"
maxLength={11}
/>
{bankData && (
<p>Verified: {bankData.BANK}, {bankData.BRANCH} branch ({bankData.CITY1})</p>
)}
</div>
);
}
# Python: Fetch IFSC Code Details
import requests
def get_ifsc_details(ifsc_code):
url = f"https://searchpincode.in/ifsc/api/ifsc/{ifsc_code}"
response = requests.get(url)
if response.status_code == 200:
data = response.json()
if data.get('success'):
print(f"Bank: {data['BANK']}")
print(f"Branch: {data['BRANCH']}")
print(f"Supports NEFT: {data['NEFT']}")
return data
return None
# Test the function
get_ifsc_details("SBIN0000300")
// Node.js: Quick fetch helper for Bank Details
async function lookupIfsc(ifscCode) {
try {
const res = await fetch(https://searchpincode.in/ifsc/api/ifsc/);
const data = await res.json();
if (data.success) {
console.log(Bank: , Branch: );
return data;
} else {
console.log('Invalid IFSC Code');
}
} catch (error) {
console.error('API Error:', error);
}
}
lookupIfsc('HDFC0000001');