SWIFT Code API
The SWIFT Code API allows you to find the SWIFT (also known as BIC or Business Identifier Code) for any bank in the world.
Our database contains hundreds of thousands of different bank branches from over 11,000 banks worldwide, and any new codes are added via daily data updates.
From 6,053 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 329ms | 356ms | 428ms | 633ms | 1210ms |
Didn't find what you were looking for? Suggest an improvement
/v1/swiftcode GET
https://api.api-ninjas.com/v1/swiftcode
Returns a list of bank information (including SWIFT/BIC 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.
swiftoptionalThe SWIFT Code of the bank to look up.
bankoptional premium onlyThe name of the bank to look up. This parameter supports partial matching (e.g.,
Silicon Valleywill matchSilicon Valley Bank).cityoptionalName of the city in which the bank is located.
countryoptionalISO 3166 2-letter country code of the bank's country.
routing_numberoptional Business and Professional only9-digit US ABA routing number (e.g.
121000248). Returns the SWIFT/BIC codes of the US bank identified by the routing number — useful for finding the SWIFT code needed to receive an international wire into a US account. See our Routing Number API for the reverse lookup.offsetoptional annual premium subscriptions onlyThe number of results to offset for pagination. Default is 0.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
swift_codeThe SWIFT/BIC code for the bank branch.
bank_namepremium onlyThe full official name of the bank.
addresspremium onlyThe full street address of the bank branch.
citypremium onlyThe city where the bank branch is located.
regionpremium onlyThe region where the bank branch is located. For US banks this is the 2-letter state code.
postal_codepremium onlyThe postal or ZIP code of the bank branch location.
countryThe full name of the country where the bank is located.
country_codeThe ISO 3166 2-letter country code.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/swiftcode?swift=BOFAUS3NHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
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.
Frequently Asked Questions
Can I use the SWIFT Code API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the SWIFT Code API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the SWIFT Code API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the SWIFT Code API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.What data and coverage does the SWIFT Code API provide?
The API covers hundreds of thousands of bank branches from over 11,000 banks worldwide, and new codes are added through daily data updates. For other bank-identifier lookups, see related APIs such as IBAN, Routing Number, Sort Code, and BSB.How do I search for a bank's SWIFT code by name, city, or country?
You can query the/v1/swiftcodeendpoint with at least one ofswift,bank,city, orcountry(an ISO 3166 2-letter code), where the premiumbankparameter supports partial matching (for example,Silicon ValleymatchesSilicon Valley Bank). See pricing for premium parameter access.What fields does the SWIFT Code API response include?
Each result is a JSON object containingswift_code,bank_name,address,city,region(the 2-letter state code for US banks),postal_code,country, andcountry_code, with several fields available on premium plans (see pricing). The endpoint returns at most 100 results, and unsuccessful requests return an error.How do I paginate through more than 100 SWIFT code results?
A single request returns at most 100 results, so use theoffsetparameter (default 0) to page through additional matches; this parameter is available on annual premium subscriptions only. See pricing for details.