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/lookupdocs.endpoint.lookup
| Param | Type | Required | Description |
|---|---|---|---|
| code | string | ● | Bank routing number |
| type | string | ○ | Force type (swift/aba/iban/sortcode/bsb/ifsc) |
| api_key | string | ○ | API Key for higher limits |
curl "https://swiftcode.xin/api/lookup?code=DEUTDEFF"
POST
/api/lookup/batchdocs.endpoint.batch
| Param | Type | Required | Description |
|---|---|---|---|
| codes | string[] | ● | Array of routing numbers |
curl -X POST https://swiftcode.xin/api/lookup/batch \
-H "Content-Type: application/json" \
-d '{"codes":["DEUTDEFF","CHASUS33"]}'
GET
/api/validatedocs.endpoint.validate
| Param | Type | Required | Description |
|---|---|---|---|
| code | string | ● | Bank routing number |
curl "https://swiftcode.xin/api/validate?code=DEUTDEFF"
GET
/api/healthdocs.endpoint.health
curl "https://swiftcode.xin/api/health"
Live Test
Error Codes
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_FORMAT | Format mismatch |
| 400 | MISSING_PARAM | Missing required param |
| 404 | NOT_FOUND | Bank info not found |
| 429 | RATE_LIMITED | Rate limit exceeded |
| 401 | INVALID_API_KEY | Invalid API Key |