SC
swiftcode.xin

API Documentation

BankCode REST API — Integrate global bank routing number lookup into your application

Quick Start

# Look up a SWIFT code
curl "https://swiftcode.xin/api/lookup?code=DEUTDEFF"
GET/api/lookup

docs.endpoint.lookup

ParamTypeRequiredDescription
codestringBank routing number
typestringForce type (swift/aba/iban/sortcode/bsb/ifsc)
api_keystringAPI Key for higher limits
curl "https://swiftcode.xin/api/lookup?code=DEUTDEFF"
POST/api/lookup/batch

docs.endpoint.batch

ParamTypeRequiredDescription
codesstring[]Array of routing numbers
curl -X POST https://swiftcode.xin/api/lookup/batch \ -H "Content-Type: application/json" \ -d '{"codes":["DEUTDEFF","CHASUS33"]}'
GET/api/validate

docs.endpoint.validate

ParamTypeRequiredDescription
codestringBank routing number
curl "https://swiftcode.xin/api/validate?code=DEUTDEFF"
GET/api/health

docs.endpoint.health

curl "https://swiftcode.xin/api/health"

Live Test

Error Codes

StatusCodeDescription
400INVALID_FORMATFormat mismatch
400MISSING_PARAMMissing required param
404NOT_FOUNDBank info not found
429RATE_LIMITEDRate limit exceeded
401INVALID_API_KEYInvalid API Key

docs.cta.title

docs.cta.subtitle