Random IBAN Generator Generation API

Generate random IBANs

GitHub OpenAPI

Operations 2

GET /generate/{country} Generate one or more random IBANs for a country #
POST /generate Generate IBANs 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-generation-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-generation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Generate Random IBAN Generation 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: Generation
  description: Generate random IBANs
paths:
  /generate/{country}:
    get:
      tags:
      - Generation
      operationId: generateIbans
      summary: Generate one or more random IBANs for a country
      parameters:
      - name: country
        in: path
        required: true
        description: ISO 3166-1 alpha-2 country code.
        schema:
          type: string
          enum:
          - DE
          - FR
          - IT
          - ES
          - NL
          - BE
          - GB
          - AT
          - CH
          - LU
          - LI
          - MC
          - SM
          - VA
          - AD
          - IE
          - GI
          - SE
          - 'NO'
          - FI
          - DK
          - IS
          - EE
          - LV
          - LT
          - FO
          - GL
          - PT
          - GR
          - CY
          - MT
          - RO
          - BG
          - HR
          - SI
          - SK
          - CZ
          - HU
          - PL
          - AL
          - BA
          - XK
          - ME
          - MK
          - RS
          - AZ
          - BY
          - GE
          - MD
          - RU
          - UA
          - SA
          - AE
          - JO
          - TR
          - BH
          - IQ
          - IL
          - KW
          - LB
          - OM
          - PS
          - QA
          - YE
          - DZ
          - TN
          - MA
          - EG
          - BI
          - DJ
          - LY
          - MR
          - MU
          - ST
          - SC
          - SO
          - SD
          - PK
          - KZ
          - MN
          - TL
          - BR
          - VG
          - CR
          - DO
          - SV
          - FK
          - GT
          - HN
          - NI
          - LC
      - name: count
        in: query
        required: false
        description: How many IBANs to return (1–100).
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 1
      - name: realistic
        in: query
        required: false
        description: 'Realistic mode: digits only in alphanumeric BBAN fields (except real bank codes that contain letters), and a real bank code of a major bank (for countries with curated codes) with a random account number. Such IBANs were not issued by any bank but could match a real account by chance: never use them for payments. National check digits are correct in both modes. Default true; pass 0 or false for fully random bank codes and accounts. Accepts 1/0 or true/false.'
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: The generated IBANs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
  /generate:
    post:
      tags:
      - Generation
      operationId: generateIbansBulk
      summary: Generate IBANs from a JSON body
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - country
              properties:
                country:
                  type: string
                  enum:
                  - DE
                  - FR
                  - IT
                  - ES
                  - NL
                  - BE
                  - GB
                  - AT
                  - CH
                  - LU
                  - LI
                  - MC
                  - SM
                  - VA
                  - AD
                  - IE
                  - GI
                  - SE
                  - 'NO'
                  - FI
                  - DK
                  - IS
                  - EE
                  - LV
                  - LT
                  - FO
                  - GL
                  - PT
                  - GR
                  - CY
                  - MT
                  - RO
                  - BG
                  - HR
                  - SI
                  - SK
                  - CZ
                  - HU
                  - PL
                  - AL
                  - BA
                  - XK
                  - ME
                  - MK
                  - RS
                  - AZ
                  - BY
                  - GE
                  - MD
                  - RU
                  - UA
                  - SA
                  - AE
                  - JO
                  - TR
                  - BH
                  - IQ
                  - IL
                  - KW
                  - LB
                  - OM
                  - PS
                  - QA
                  - YE
                  - DZ
                  - TN
                  - MA
                  - EG
                  - BI
                  - DJ
                  - LY
                  - MR
                  - MU
                  - ST
                  - SC
                  - SO
                  - SD
                  - PK
                  - KZ
                  - MN
                  - TL
                  - BR
                  - VG
                  - CR
                  - DO
                  - SV
                  - FK
                  - GT
                  - HN
                  - NI
                  - LC
                count:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 1
                realistic:
                  type: boolean
                  default: true
                  description: 'Realistic mode: digits only in alphanumeric BBAN fields (except real bank codes that contain letters), and a real bank code of a major bank (for countries with curated codes) with a random account number. Such IBANs were not issued by any bank but could match a real account by chance: never use them for payments. National check digits are correct in both modes.'
      responses:
        '200':
          description: The generated IBANs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/Invalid'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    GenerateResult:
      type: object
      properties:
        country:
          type: object
          properties:
            code:
              type: string
              example: DE
            name:
              type: string
              example: Germany
            iban_length:
              type: integer
              example: 22
        count:
          type: integer
          example: 2
        realistic:
          type: boolean
          example: true
          description: Whether realistic mode was used.
        ibans:
          type: array
          items:
            $ref: '#/components/schemas/Iban'
    Iban:
      type: object
      properties:
        iban:
          type: string
          example: DE89370400440532013000
        formatted:
          type: string
          example: DE89 3704 0044 0532 0130 00
        country:
          type: string
          example: DE
        check_digits:
          type: string
          example: '89'
        bban:
          type: string
          example: '370400440532013000'
        length:
          type: integer
          example: 22
        valid:
          type: boolean
          example: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  responses:
    NotFound:
      description: Unknown country or endpoint.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    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'
  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