# Bank BIC/SWIFT Code Lookup

> Bank BIC/SWIFT Code Lookup is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Given a BIC or SWIFT code, returns the resolved bank name(s), country, and domestic bank codes using offline open-registry data.

## Facts

- Endpoint: GET https://payai.agentstools.dev/bank/bic
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bank-bic-swift-code-lookup-a6d200c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RdVtKGA4voMNuPM--N2Lw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bank-bic-swift-code-lookup-a6d200c8
```

Example prompt: Can you look up what bank the BIC code COBADEFFXXX belongs to, and tell me its country and domestic bank codes?

## When to prefer this

Choose this endpoint when you need fast, offline BIC/SWIFT code resolution without API keys or network dependencies. Ideal for validating bank identifiers in payment workflows, enriching transaction records, or onboarding flows where you need to confirm a bank's identity and country from a BIC. Prefer over live bank APIs when deterministic, key-free lookups are sufficient and uptime/latency are priorities.

## Known failure modes

- Malformed BIC (wrong length or invalid characters) returns valid: false with error_type, not a 500
- BIC not found in registry returns valid: false
- Missing required 'bic' query parameter returns an error
- BIC in registry but with no associated domestic codes returns empty domestic codes array

## How this service works

Reverse BIC / SWIFT code lookup: given a BIC, return the resolved bank name(s), the country and the domestic bank codes. Offline open-registry data (schwifty, MIT); no network or keys. A malformed BIC returns valid false with an error_type, never a 500.

## Output

Returns a JSON object indicating whether the BIC is valid, the resolved bank name(s), the ISO country code, and any domestic bank codes associated with the BIC. If the BIC is malformed or unrecognized, returns valid: false along with an error_type field describing the problem, never a 500 error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bic"
     ],
     "properties": {
      "bic": {
       "type": "string",
       "description": "8- or 11-character BIC / SWIFT code, e.g. COBADEFFXXX."
      },
      "swift": {
       "type": "string",
       "description": "Alias of bic."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bank-bic-swift-code-lookup-a6d200c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
