Extract IBANs From Text
extract_ibans_from_textExtract and validate all IBANs from unstructured text, returning a JSON array with validation results and bank details. Works with emails, invoices, and chat messages.
Instructions
Scan a free-form block of text and pull out every candidate IBAN, then validate each one.
Useful for unstructured sources such as emails, invoices, PDFs pasted as text, or chat messages where IBANs appear inline and may be split by spaces or surrounded by other words. Returns a JSON array of the IBANs found, each with its validation result (valid, countryCode, bank details when known); text containing no IBAN returns an empty list rather than an error.
Use this as the first step when the account number is buried in prose; pass the extracted IBANs to validate_bulk_ibans only if you need to re-check them separately. Input text is processed in memory and not stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Arbitrary text to scan for IBANs, e.g. the body of an email or invoice. IBANs may be split across spaces or embedded in sentences. |