The IBAN API allows you to look up and validate any International Bank Account Number (IBAN).
https://api.api-ninjas.com/v1/iban
Returns detailed information on a given IBAN.
iban
requiredThe IBAN to look up.
X-Api-Key
requiredAPI Key associated with your account.
iban
The IBAN that was looked up.
bank_name
premium onlyThe name of the bank associated with the IBAN.
account_number
The account number portion of the IBAN.
bank_code
The bank code portion of the IBAN.
country
The country code portion of the IBAN.
checksum
The checksum portion of the IBAN.
valid
Whether the IBAN is valid or not.
bban
The Basic Bank Account Number (BBAN) portion of the IBAN.
https://api.api-ninjas.com/v1/iban?iban=DE16200700000532013000
Headers
X-Api-Key
Log in or sign up to get your API Key
1
2
3
4
5
6
7
8
9
10
{
"iban": "DE16200700000532013000",
"bank_name": "Deutsche Bank",
"account_number": "0532013000",
"bank_code": "20070000",
"country": "DE",
"checksum": "16",
"valid": true,
"bban": "200700000532013000"
}
1
2
3
4
5
6
7
8
9
import requests
iban = 'DE16200700000532013000'
api_url = 'https://api.api-ninjas.com/v1/iban?iban={}'.format(iban)
response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'})
if response.status_code == requests.codes.ok:
print(response.text)
else:
print("Error:", response.status_code, response.text)
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.