The SWIFT Code API allows you to find the SWIFT Code(s) for any bank in the world. Our database contains hundreds of thousands of different bank branches and on file.
https://api.api-ninjas.com/v1/swiftcode
Returns a list of bank information (including SWIFT Code) that match the input parameter. Returns at most 100 results.
At least one of the parameters below must be set.
swift
optionalThe SWIFT Code of the bank to look up.
bank
optional premium onlyThe name of the bank to look up. This parameter supports partial matching (e.g., Silicon Valley
will match Silicon Valley Bank
).
city
optionalName of the city in which the bank is located.
country
optionalISO 3166 2-letter country code of the bank's country.
X-Api-Key
requiredAPI Key associated with your account.
bank_name
premium onlyThe full official name of the bank.
city
The city where the bank branch is located.
region
The region where the bank branch is located.
country
The full name of the country where the bank is located.
country_code
The ISO 3166 2-letter country code.
swift_code
The SWIFT/BIC code for the bank branch.
https://api.api-ninjas.com/v1/swiftcode?swift=BOFAUS3N
Headers
X-Api-Key
Log in or sign up to get your API Key
1
2
3
4
5
6
7
8
9
10
[
{
"bank_name": "Bank of America, N.A.",
"city": "New York",
"region": "NY",
"country": "United States",
"country_code": "US",
"swift_code": "BOFAUS3N"
}
]
1
2
3
4
5
6
7
8
9
10
import requests
swift = 'BOFAUS3N'
api_url = 'https://api.api-ninjas.com/v1/swiftcode?swift={}'.format(swift)
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.