India IFSC Code API Lookup Documentations

Our India IFSC Code API lookup function allows you to automate IFSC Code Lookup by a simple HTTP GET request. For casual user who is not interested to use API, similar function is available in IFSC Code page.

The function will return the result in either XML or JSON format. The default format is XML, but if you prefer to have the result in JSON format simply specify JSON format in the request. You can parse both format easily into various programming languages and platforms.

This page will describe on how to use our IFSC Code API and the expected result you will receive from our systems.

As part of system security and protection, you require to have an API key in order to access our API function, which will be given once you register for API Access.

How to do IFSC Code Lookup through API?


IFSC Code Lookup through our API is very simple. What you need to do is make a GET request.

General API Call Format

The default result format is in XML. If you want to get the result in this format, simply follow the API request as below,


https://api.bank.codes/in-ifsc/?format=[FORMAT]&api_key=[API_KEY]&ifsc=[IFSC]

OR
https://api.bank.codes/in-ifsc/[FORMAT]/[API_KEY]/[IFSC]/

Input DataExplanation
[FORMAT]Specify the format of the output. Accept "xml" or "json"
[API_KEY]API Key assign to your account
[IFSC]IFSC Code which you would like to check.

1. XML Format Example


https://api.bank.codes/in-ifsc/?format=xml&api_key=9fc53b3db09ca830488d19546a4fc2a1&ifsc=MAHB0001821

OR
https://api.bank.codes/in-ifsc/xml/9fc53b3db09ca830488d19546a4fc2a1/MAHB0001821/

Expected Result in XML


<?xml version="1.0" encoding="utf-8"?>
<result>
  <ifsc>MAHB0001821</ifsc>
  <micr>444014548</micr>
  <bank>BANK OF MAHARASHTRA</bank>
  <branch>CHANDUR BAZAR</branch>
  <address>NEAR KALPANA GAS SERVICE, PLOT NO.128, WARD NO.12, BELORA ROAD, CHANDUR BAZAR, DIST AMRAVATI, PIN CODE 444704</address>
  <city>AMRAVATI</city>
  <district>CHANDUR BAZAR</district>
  <state>MAHARASHTRA</state>
  <contact>243232</contact>
  <valid>true</valid>
</result>

2. JSON Format Example


https://api.bank.codes/in-ifsc/?format=json&api_key=9fc53b3db09ca830488d19546a4fc2a1&ifsc=MAHB0001821

OR
https://api.bank.codes/in-ifsc/json/9fc53b3db09ca830488d19546a4fc2a1/MAHB0001821/

Expected Result in JSON


{
    "ifsc": "MAHB0001821",
    "micr": "444014548",
    "bank": "BANK OF MAHARASHTRA",
    "branch": "CHANDUR BAZAR",
    "address": "NEAR KALPANA GAS SERVICE, PLOT NO.128, WARD NO.12, BELORA ROAD, CHANDUR BAZAR, DIST AMRAVATI, PIN CODE 444704",
    "city": "AMRAVATI",
    "district": "CHANDUR BAZAR",
    "state": "MAHARASHTRA",
    "contact": "243232",
    "valid": "true"
}

3. Error Messages

In some cases, the API may return a response containing error message. Below you can find a description of all possible error messages.

Error IDError MessageExplanation
1001API Key Not SpecifiedYou need to specify your API Key while making API request. Kindly check the API Key in user area.
1002Invalid API KeyPlease make sure that you specify the correct API Key assign to your account. Kindly check the correct API Key in the user area.
1003Suspended API KeyYour API Key was suspended due to system abuse. Kindly contact support.
1004API Usage Limit ExceededYou have exceeded the daily limit allocated to your account. You may purchase additional credit in the user area.
1005IFSC Code Not SpecifiedYou need to specify IFSC Code you want to check.
1006Invalid IFSC CodePlease make sure that you specify IFSC Code in the correct format which is 11 characters without any space or dash.
1007IFSC Code Not FoundThe IFSC Code that you submitted is not found in our database.