Random IBAN Generator Validation API

Validate IBANs

GitHub OpenAPI

Operations 2

GET /validate/{iban} Validate an IBAN passed in the URL #
POST /validate Validate an IBAN from a JSON body #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/generaterandomiban-com:generaterandomiban-com-validation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

generaterandomiban-com-validation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Generate Random IBAN Validation API
  version: 1.1.0
  summary: Generate and validate structurally valid test IBANs.
  description: 'A small, versioned JSON API for generating and validating structurally valid (ISO 13616 / MOD-97) IBANs for 91 countries, with correct national check digits where the country defines them. An optional realistic mode uses real bank codes and digits only. Generated IBANs always pass checksum validation but were not issued by any bank: they are for testing, QA and education only, never for payments.'
  contact:
    name: Generate Random IBAN
    email: apis@generaterandomiban.com
    url: https://generaterandomiban.com/en/apis
  termsOfService: https://generaterandomiban.com/en/privacy-policy
servers:
- url: https://generaterandomiban.com/api/v1
  description: Production API v1
security:
- ApiKeyAuth: []
tags:
- name: Validation
  description: Validate IBANs
paths:
  /validate/{iban}:
    get:
      tags:
      - Validation
      operationId: validateIban
      summary: Validate an IBAN passed in the URL
      parameters:
      - name: iban
        in: path
        required: true
        description: IBAN to validate (letters and digits, no spaces).
        schema:
          type: string
          example: DE89370400440532013000
      responses:
        '200':
          description: The validation result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /validate:
    post:
      tags:
      - Validation
      operationId: validateIbanBody
      summary: Validate an IBAN from a JSON body
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - iban
              properties:
                iban:
                  type: string
                  example: DE89 3704 0044 0532 0130 00
      responses:
        '200':
          description: The validation result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    TooManyRequests:
      description: Rate limit exceeded (default 60 requests/minute per key).
    Invalid:
      description: Invalid parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, revoked or expired API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    ValidateResult:
      type: object
      properties:
        iban:
          type: string
          example: DE89370400440532013000
        formatted:
          type: string
          example: DE89 3704 0044 0532 0130 00
        valid:
          type: boolean
          example: true
        country_code:
          type: string
          example: DE
        country_supported:
          type: boolean
          example: true
        check_digits:
          type: string
          example: '89'
        bban:
          type: string
          example: '370400440532013000'
        length:
          type: integer
          example: 22
        expected_length:
          type:
          - integer
          - 'null'
          example: 22
        checks:
          type: object
          properties:
            mod97:
              type: boolean
            length:
              type:
              - boolean
              - 'null'
            format:
              type: boolean
            country_supported:
              type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key issued on request. Send it in the X-API-Key header (an Authorization: Bearer token also works). Request a key by email at apis@generaterandomiban.com.'
externalDocs:
  description: Human-readable API documentation
  url: https://generaterandomiban.com/en/apis/docs