IBAN API

The IBAN API allows you to look up and validate any International Bank Account Number (IBAN).

/v1/iban GET

https://api.api-ninjas.com/v1/iban

Returns detailed information on a given IBAN.


Parameters

  • iban  required

    The IBAN to look up.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Sample Request Live Demo!

iban
https://api.api-ninjas.com/v1/iban?iban=DE16200700000532013000

Sample Response

JSON
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" }

Code Examples

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.