SWIFT Code API
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.
/v1/swiftcode GET
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. For more results, use the offset parameter.
Parameters
At least one of the parameters below must be set.
- swiftoptional- The SWIFT Code of the bank to look up. 
- bankoptional premium only- The name of the bank to look up. This parameter supports partial matching (e.g., - Silicon Valleywill match- Silicon Valley Bank).
- cityoptional- Name of the city in which the bank is located. 
- countryoptional- ISO 3166 2-letter country code of the bank's country. 
- offsetoptional annual premium subscriptions only- The number of results to offset for pagination. Default is 0. 
Headers
- X-Api-Keyrequired- API Key associated with your account. 
Response
- bank_namepremium only- The full official name of the bank. 
- citypremium only- The city where the bank branch is located. 
- regionpremium only- 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. 
Sample Request Live Demo!
https://api.api-ninjas.com/v1/swiftcode?swift=BOFAUS3NHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
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"
  }
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/swiftcode?bank=JPMORGAN%20CHASE%20BANK" \
  -H "X-Api-Key: YOUR_API_KEY"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.