osint_bic_swift_validate
Validate and decode BIC/SWIFT bank codes (ISO 9362): checks format, extracts bank code, country, location, and branch details. Pure structural validation with no external network calls.
Instructions
BIC / SWIFT Code Validator. Validate the format and structure of a BIC/SWIFT bank code (ISO 9362) and decode its four parts: 4-letter bank code, 2-letter ISO country code, 2-character location code, and optional 3-character branch code. Confirms the code is 8 or 11 characters, matches the BIC character pattern, and has a recognised country, then reports the location type (primary office, passive, test), message-routing type, and whether it is a head office or a specific branch. Use osint_iban_validator instead when you have a full International Bank Account Number rather than a bank identifier code. Pure structural validation that runs locally on the code you provide: read-only, non-destructive, contacts no external service and does not look up the bank over the network, and is rate-limited (20 requests/minute for anonymous callers). Returns overall validity plus the parsed bank/country/location/branch structure, decoded details, and a space-grouped formatted code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | BIC/SWIFT code to validate (8 or 11 characters). Case-insensitive and spaces/punctuation are stripped before validation. Must not be blank. | |
| bic_swift_code | No | Alias for code, accepted when code is not supplied. If both are present, code takes precedence. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the code was validated; false when the input was missing or rejected as malformed. | |
| error | No | Human-readable failure reason, present only when success is false. | |
| result | No | Validation result, present only when success is true. |