Discover/theswiftcodes.com API
live

theswiftcodes.com APItheswiftcodes.com

Look up and validate SWIFT/BIC codes, IBANs, and US routing numbers across 205+ countries. Search banks by country, city, or institution name.

Endpoints
9
Updated
11d ago
Try it

No input parameters required.

api.parse.bot/scraper/ab1745a7-aa6a-45d7-bfcb-90aafaefec26/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ab1745a7-aa6a-45d7-bfcb-90aafaefec26/get_all_countries' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 9 totalclick to expand

Get list of all countries with their slugs and URLs. Returns approximately 205 countries available on the site.

Input

No input parameters required.

Response
{
  "type": "array",
  "fields": {
    "url": "full URL to the country page",
    "name": "country name",
    "slug": "URL slug used as country_slug in other endpoints"
  },
  "sample": {
    "data": [
      {
        "url": "https://www.theswiftcodes.com/albania/",
        "name": "ALBANIA",
        "slug": "albania"
      },
      {
        "url": "https://www.theswiftcodes.com/algeria/",
        "name": "ALGERIA",
        "slug": "algeria"
      }
    ],
    "status": "success"
  }
}

About the theswiftcodes.com API

This API exposes 9 endpoints covering SWIFT/BIC code lookup, IBAN validation, and US routing number verification sourced from theswiftcodes.com, which indexes data across approximately 205 countries. The get_swift_codes_by_country endpoint returns paginated bank records including swift_code, bank, city, and branch, while validate_swift_code and validate_iban return structured validation status alongside bank name, address, and checksum details.

SWIFT Code Lookup and Search

The get_all_countries endpoint returns a list of ~205 countries, each with a slug field used as the country_slug parameter in downstream calls. get_swift_codes_by_country accepts that slug plus an optional page integer and returns up to 50 SWIFT code entries per page with total_pages metadata for iteration. For targeted lookups, get_swift_code_details accepts a specific swift_code and country_slug and returns bank_name, address, city, postcode, branch, and a connection field indicating Active or Passive status.

Search by Bank or City

search_swift_codes implements a cascading search over three parameters: country_iso (required, two-letter ISO code), bank_name (optional), and city_name (optional). Supplying only country_iso returns an array of banks. Adding bank_name returns matching cities. Including all three parameters returns an array of swift_codes. The get_featured_banks_by_country endpoint surfaces a curated list of prominent banks per country, returning a slug value usable in get_swift_codes_by_bank, which paginates all SWIFT codes for that institution including address, postcode, and connection status.

Validation Endpoints

validate_swift_code accepts a single swift string and returns a status of Valid or Invalid, the bank name, address, and a human-readable message. validate_iban returns status, country, checksum, bban, and account_number extracted from the IBAN. validate_routing_number is US-specific and returns bank, address, city, state, zip, and phone for recognized routing numbers. All three validation endpoints return an empty object when the input is not recognized.

Common use cases
  • Verify a SWIFT/BIC code before initiating an international wire transfer, using validate_swift_code to confirm bank name and active status.
  • Build a bank directory for a fintech app by paginating get_swift_codes_by_country across all 205 countries.
  • Validate IBANs in a payment form using validate_iban to extract account_number, checksum, and country before submission.
  • Check US ACH routing numbers in a payment flow with validate_routing_number to surface bank name and address for user confirmation.
  • Power a bank autocomplete widget using search_swift_codes cascading through country, bank name, and city inputs.
  • Enumerate branch-level SWIFT codes for a specific institution with get_swift_codes_by_bank using a bank_slug from get_featured_banks_by_country.
  • Audit a dataset of international payment records by bulk-validating SWIFT codes and flagging any that return a Passive connection status.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does theswiftcodes.com have an official developer API?+
theswiftcodes.com does not publish an official public developer API. This Parse API provides structured programmatic access to the data available on the site.
What does the `connection` field in SWIFT code details mean?+
The connection field returned by get_swift_code_details and get_swift_codes_by_bank indicates whether the SWIFT participant is Active or Passive. An Active connection means the bank is a live SWIFT member; Passive generally means the code exists in the directory but the institution does not receive live SWIFT messages directly.
Does `search_swift_codes` require all three parameters?+
No. Only country_iso is required. Providing just country_iso returns a list of banks. Adding bank_name returns cities for that bank in the country. Only when country_iso, bank_name, and city_name are all provided does the response include the swift_codes array.
Does the API cover historical or deregistered SWIFT codes?+
The API reflects the data currently listed on theswiftcodes.com and does not expose a historical archive of deregistered or expired SWIFT codes. You can fork this API on Parse and revise it to add an endpoint targeting any historical data the site may surface.
Is IBAN validation available for all countries, or only specific regions?+
validate_iban accepts IBAN strings for any country that uses the IBAN standard and is represented in the site's data. Coverage aligns with the ~205 countries indexed. Routing number validation via validate_routing_number is US-only. Coverage for non-IBAN payment identifiers such as sort codes or BSB numbers is not currently part of the API. You can fork it on Parse and revise to add endpoints for those identifier types.
Page content last updated . Spec covers 9 endpoints from theswiftcodes.com.
Related APIs in FinanceSee all →
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
guba.eastmoney.com API
Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.
blur.io API
Access NFT collection data on Blur.io, including floor prices, best bids, listed tokens, and recent activity. Authenticate with an Ethereum wallet to place collection bids and retrieve portfolio holdings.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
blackrock.com API
Access comprehensive BlackRock iShares ETF data to research fund performance, holdings, fees, and sector allocations, plus search and compare specific ETFs. Monitor investment details like distributions, key characteristics, and broad market indices all in one place.
morningstar.com.au API
Access comprehensive financial data for Australian stocks, ETFs, and managed funds including key metrics, valuations, dividends, and historical prices. Search securities, review company profiles and ownership details, and stay informed with market news and upcoming dividend information.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
theswiftcodes.com API – SWIFT, IBAN & Routing · Parse