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
28d 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 →
bank-codes.com API
Find SWIFT/BIC codes for international banks and Indian IFSC/MICR codes by searching across countries, banks, and branches. Quickly locate the exact bank codes you need for wire transfers and financial transactions worldwide.
theclearinghouse.org API
Access data from The Clearing House, including owner banks, RTP participating institutions, CHIPS network participant lookups, RTP network statistics, leadership team information, and the latest news and press releases.
caixabank.es API
Access CaixaBank's full catalogue of financial products — accounts, cards, loans, mortgages, savings, investments, insurance, and pension plans — along with real-time pricing, TAE/TIN interest rates, and branch or ATM locations across Spain.
banks.data.fdic.gov API
Search FDIC-insured banks by location or institution, and access detailed information about their financial performance, merger history, deposit demographics, and regulatory changes. Get comprehensive data on bank failures, acquisitions, and historical financial trends to research institutions and analyze the banking landscape.
thecompaniesapi.com API
Enrich your company database with 80+ data points per company, search by industry or company details, and discover email patterns to drive your business intelligence. Find verified company information, get pricing data, and ask contextual questions about any organization to fuel your sales, marketing, or research efforts.
ibba.org API
Search and find professional business brokers from the IBBA directory by location or name, accessing their contact information, business details, and specialties across over 3,000 verified profiles. Discover brokers in your area or filter by geographic regions and service specialties to connect with the right professional for your business needs.
projects.worldbank.org API
Search World Bank projects and procurement opportunities across all sectors and regions to find funding information and active tenders. Retrieve detailed project information, funding breakdowns, and procurement notices.
wise.com API
Get real-time exchange rates, convert between currencies, and check transfer fees directly from Wise.com. Access live pricing data, supported currency pairs, historical rate trends, and detailed currency information to make informed international money transfer decisions.