SWIFT/BIC Validation
Check a SWIFT/BIC code's format, length and country, and split out the bank code, location and branch.
Pay by wallet (x402)
swift-validate Example
Input
{
"swift": "COBADEFFXXX"
} Answer
{
"valid": true,
"bank_code": "COBA",
"swift_code": "COBADEFFXXX",
"branch_code": "XXX",
"country_code": "DE",
"location_code": "FF",
"is_head_office": true
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
swift | string | Yes | SWIFT/BIC code (e.g. DABASESX) |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
valid | boolean | Always (present in every successful answer) |
bank_code | string | Always (present in every successful answer) |
swift_code | string | Always (present in every successful answer) |
country_code | string | Always (present in every successful answer) |
is_head_office | boolean | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "swift-validate",
"inputs": {
"swift": "COBADEFFXXX"
},
"max_price_cents": 3
}' {
"tool": "strale_execute",
"arguments": {
"slug": "swift-validate",
"inputs": {
"swift": "COBADEFFXXX"
},
"max_price_cents": 3
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "swift-validate",
inputs: {
"swift": "COBADEFFXXX"
},
max_price_cents: 3,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="swift-validate",
inputs={
"swift": "COBADEFFXXX",
},
max_price_cents=3,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/swift-validate?swift=COBADEFFXXX' Limitations
Code format does not confirm an active institution
Validates SWIFT/BIC code format — does not verify the code is currently active or assigned to an operating institution
What to do instead: Cross-reference validated codes against SWIFT's online directory at swift.com for active status confirmation
Related tools
- Address Validation €0.03
- Age Check €0.02
- Bank BIC Lookup €0.05
- Bulk Email Validation €0.15
- Business Day Check €0.02
- Company ID Detection €0.05