NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

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.

(4.7)

From 6,053 users

4,100+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
329ms356ms428ms633ms1210ms

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.

  • swift  optional

    The SWIFT Code of the bank to look up.

  • bank  optional premium only

    The name of the bank to look up. This parameter supports partial matching (e.g., Silicon Valley will match Silicon Valley Bank).

  • city  optional

    Name of the city in which the bank is located.

  • country  optional

    ISO 3166 2-letter country code of the bank's country.

  • routing_number  optional Business and Professional only

    9-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.

  • offset  optional annual premium subscriptions only

    The number of results to offset for pagination. Default is 0.

Headers

  • X-Api-Key  required

    API 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_code

    The SWIFT/BIC code for the bank branch.

  • bank_name premium only

    The full official name of the bank.

  • address premium only

    The full street address of the bank branch.

  • city premium only

    The city where the bank branch is located.

  • region premium only

    The region where the bank branch is located. For US banks this is the 2-letter state code.

  • postal_code premium only

    The postal or ZIP code of the bank branch location.

  • country

    The full name of the country where the bank is located.

  • country_code

    The ISO 3166 2-letter country code.

Sample Request Live Demo!

swift
city
country
routing_number

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=BOFAUS3N

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      swift_code:"BOFAUS3N",
      bank_name:"Bank of America, N.A.",
      address:"222 Broadway",
      city:"New York",
      region:"NY",
      postal_code:"10038",
      country:"United States",
      country_code:"US"
    }
]

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

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • 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.
  • You can query the /v1/swiftcode endpoint with at least one of swift, bank, city, or country (an ISO 3166 2-letter code), where the premium bank parameter supports partial matching (for example, Silicon Valley matches Silicon Valley Bank). See pricing for premium parameter access.
  • Each result is a JSON object containing swift_code, bank_name, address, city, region (the 2-letter state code for US banks), postal_code, country, and country_code, with several fields available on premium plans (see pricing). The endpoint returns at most 100 results, and unsuccessful requests return an error.
  • A single request returns at most 100 results, so use the offset parameter (default 0) to page through additional matches; this parameter is available on annual premium subscriptions only. See pricing for details.