apyhub
Back
DATA VALIDATION · FINANCE

Validate IFSC API

Hosted on ApyHub

What it does

The IFSC Code API checks whether an Indian bank IFSC code is valid and returns the branch it belongs to. Send an 11-character IFSC code, such as SBIN0000001, and get back the bank name, branch, address, city, state, phone number, and STD code. Codes are accepted in upper or lower case.

If the code doesn't exist or has been retired, the API returns false, so you can stop the flow before a payment or payout fails.

Use it to verify beneficiary bank details before saving them, show users the branch name as they type an IFSC code, or clean up bank records in payroll, lending, and payout systems. For international transfers, use the SWIFT/BIC Validation API, and to check Indian addresses, the Indian Postcode Validation API.

You can start on ApyHub's free tier with no card required.

POST
Validate an IFSC bank code
https://api.eu.apyhub.com/apyhub/validate-ifsc-bank-code

QUICKSTART

GUIDE

Quickstart

Look up a bank by its IFSC code.

curl -X POST "https://api.eu.apyhub.com/apyhub/validate-ifsc-bank-code" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ifsc":"BARB0PAULUD"}'

What you'll get back

Returns a JSON object with a data field. data is either an object with bank details and a valid boolean, or false when the IFSC is not found or deleted.

{
  "data": {
    "bank": "Bank of Baroda",
    "city": "New Delhi",
    "ifsc": "BARB0PAULUD",
    "phone": "01123456789",
    "state": "Delhi",
    "valid": true,
    "branch": "Paschim Vihar",
    "address": "A-1, Paschim Vihar, New Delhi",
    "std_code": "011"
  }
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
IFSC code to look up (case-insensitive, 11 characters).

About this endpoint

What it does

Validates an IFSC bank code by accepting an ifsc value in the request body and returning a data payload that is either a detailed lookup object or false when the IFSC is not found or deleted.

Request Body

ParameterTypeMandatoryDescription
ifscStringYesIFSC code to look up; case-insensitive, 11 characters.

Response

Returns a JSON object with a required data field. data is either an object containing bank lookup details, or a boolean false when the IFSC is not found or deleted.

ParameterTypeMandatoryDescription
dataObject / BooleanYesEither a lookup object with bank details, or false when the IFSC is not found or deleted.
data.bankStringNoBank name.
data.cityStringNoCity name.
data.ifscStringNoIFSC code.
data.phoneStringNoPhone number.
data.stateStringNoState name.
data.validBooleanNoWhether the IFSC is valid.
data.branchStringNoBranch name.
data.addressStringNoBranch address.
data.std_codeStringNoSTD code.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.