Note: the deployed version might take upto 50 seconds for the first time as the free version of Render will auto shut off after certain time of inactivity.
- Clone the repository
- Create a
.env
file in the root directory with content from .env.example - Install the dependencies with
npm install
- use
npm start
to start the server - the server should run on port 8080
Returns all the banks
{
"data": [
{
"name": "STATE BANK OF INDIA",
"id": "1"
},
{
"name": "PUNJAB NATIONAL BANK",
"id": "2"
}
]
}
Returns all the branches of the bank name
{
"data": [
{
"ifsc": "PUNB0309100",
"bank_id": "2",
"branch": "NEW DELHI JANPATH N-86 (MERGED",
"address": "DISTT. NEW DELHI (DELHI)",
"city": "DELHI",
"district": "DELHI",
"state": "DELHI",
"bank_name": "PUNJAB NATIONAL BANK"
},
{
"ifsc": "PUNB0309200",
"bank_id": "2",
"branch": "L BLOCK CON CIRCUS ",
"address": "4, L-BLOCK, CONNAUGHT PLACE",
"city": "NEW DELHI",
"district": "NEW DELHI",
"state": "DELHI",
"bank_name": "PUNJAB NATIONAL BANK"
}
]
}
Returns the bank branch details by the ifsc code.
{
"data": [
{
"ifsc": "SMBC0000001",
"bank_id": "170",
"branch": "RTGS-HO",
"address": "13TH FLOOR, HINDUSTAN TIMES HOUSE, 18-20, KG MARG,NEW DELHI - 110001",
"city": "NEW DELHI",
"district": "NEW DELHI",
"state": "DELHI"
}
]
}
Return the bank branch details by the bankid and the ifsc code.
{
"data": [
{
"ifsc": "SMBC0000001",
"bank_id": "170",
"branch": "RTGS-HO",
"address": "13TH FLOOR, HINDUSTAN TIMES HOUSE, 18-20, KG MARG,NEW DELHI - 110001",
"city": "NEW DELHI",
"district": "NEW DELHI",
"state": "DELHI",
"bank_name": "SUMITOMO MITSUI BANKING CORPORATION"
}
]
}
This API provides information about banks and their branches.
Endpoint | Description |
---|---|
GET /api/v1/banks |
Get a list of all banks |
GET /api/v1/bank-branches?bankName={bankName} |
Get all branches for a specific bank |
GET /api/v1/branch-details/{ifsc} |
Get details for a specific branch by IFSC code |
GET /api/v1/branch-detailsbybankId/{ifsc}?bankId={bankId} |
Get details for a specific branch by IFSC and bank ID |