Overview

Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment. It supports banks worldwide and returns helpful details like bank name, country, and BIC code. This is a great tool for anyone building payment forms or financial apps that need to verify account information upfront.

Beginner Tip

Always validate IBANs on your server side — never trust client-submitted bank data alone. Check that the returned "valid" field is true before proceeding with any transaction.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Bank Data API data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "input": "[email protected]",
  "is_valid": true,
  "format_valid": true,
  "details": "Input passes all validation checks"
}

Field Reference

valid Whether the IBAN is structurally valid and passes checksum verification.
iban The IBAN number that was validated, returned in standardized format.
bank_data.name The name of the bank associated with the IBAN.
bank_data.bic The BIC/SWIFT code of the bank.
bank_data.country The country where the bank is registered (ISO 3166-1 alpha-2 code).

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://apilayer.com/marketplace/bank_data-api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

401 Unauthorized Missing or invalid API key in the request header.
Add the header -H "apikey: YOUR_API_KEY" with your valid key from the APILayer dashboard.
422 Unprocessable Entity The IBAN format is malformed or contains spaces.
Remove spaces from the IBAN and ensure it follows the correct country-specific format (e.g., DE89370400440532013000).
429 Too Many Requests You have exceeded your plan's monthly request quota.
Check your usage on the APILayer dashboard and upgrade your plan or wait for the quota to reset.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Finance
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →