Bank Data API is a REST API that is able to check and validate IBAN and SWIFT numbers. With this API you will be able to get IBAN examples and structure by country, required fields for generating IBANs, banks by country, and all major banks and SWIFT codes.
Example Request
curl --request GET 'https://api.apilayer.com/bank_data/iban_validate?iban_number=DE89370400440532013000' \
--header 'apikey: YOUR API KEY'
Example Response
{
"valid": true,
"iban": "DE89370400440532013000",
"iban_data": {
"country": "Germany",
"country_code": "DE",
"sepa_country": true,
"checksum": "89",
"BBAN": "370400440532013000",
"bank_code": "37040044",
"account_number": "0532013000",
"branch": "",
"national_checksum": "",
"country_iban_format_as_swift": "DE2!n8!n10!n",
"country_iban_format_as_regex": "^DE(\\d{2})(\\d{8})(\\d{10})$"
},
"bank_data": {
"bank_code": "37040044",
"name": "Commerzbank",
"zip": "50447",
"city": "Köln",
"bic": "COBADEFFXXX"
},
"country_iban_example": "DE89370400440532013000"
}