# Bingo Card Generator API

> Bingo Card Generator is a bingo API that creates customizable bingo cards with random numbers as JSON, with HTML rendering and downloadable PNG images on paid plans.

**Endpoint:** `GET https://api.apiverve.com/v1/bingocardgenerator`  
**Category:** Data Generation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/bingocardgenerator

## Overview

Provides card data as JSON arrays with the winning patterns for each card. Paid plans add formatted HTML tables and high-quality PNG images suitable for printing and digital display.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/bingocardgenerator?size=5&freeSpace=true&image=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `size` | integer | No | Card size (3x3 to 10x10). default 5. range 3-10 |
| `freeSpace` | boolean | No | Include free space in center. default true |
| `image` | boolean | No | Set to true to generate a downloadable bingo card image. default false. Premium field |

## Response fields

- `card` — array · 2D array of bingo card numbers and FREE space
- `html` — string · Rendered HTML table of bingo card for display · (premium)
- `size` — number · Dimensions of the bingo card grid
- `freeSpace` — boolean · Whether center free space was included
- `totalCells` — number · Total number of cells in the card
- `winningPatterns` — array · Possible winning patterns for bingo game
- `image` — object
  - `image.imageName` — string · Unique filename of generated bingo card image · (premium)
  - `image.format` — string · File format extension of image file
  - `image.downloadURL` — string · Signed URL to download generated bingo card image · (premium)
  - `image.expires` — number · Unix timestamp when image download URL expires · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "card": [
      [
        14,
        19,
        42,
        47,
        71
      ],
      [
        4,
        17,
        36,
        50,
        69
      ],
      [
        11,
        18,
        "FREE",
        53,
        73
      ],
      [
        15,
        23,
        41,
        52,
        68
      ],
      [
        8,
        27,
        43,
        58,
        75
      ]
    ],
    "html": "<html><head><title>Bingo Card</title><style>body {font-family: Arial, sans-serif; padding: 20px;}table {border-collapse: collapse; margin: 0 auto;}td {text-align: center; width: 60px; height: 60px; border: 2px solid #000; font-size: 20px; font-weight: bold;}th {text-align: center; width: 60px; height: 40px; border: 2px solid #000; font-size: 24px; font-weight: bold; background-color: #4CAF50; color: white;}.free-space {background-color: #FFD700; font-size: 14px;}</style></head><body><table><tr><th>B</th><th>I</th><th>N</th><th>G</th><th>O</th></tr><tr><td class=''>14</td><td class=''>19</td><td class=''>42</td><td class=''>47</td><td class=''>71</td></tr><tr><td class=''>4</td><td class=''>17</td><td class=''>36</td><td class=''>50</td><td class=''>69</td></tr><tr><td class=''>11</td><td class=''>18</td><td class='free-space'>FREE</td><td class=''>53</td><td class=''>73</td></tr><tr><td class=''>15</td><td class=''>23</td><td class=''>41</td><td class=''>52</td><td class=''>68</td></tr><tr><td class=''>8</td><td class=''>27</td><td class=''>43</td><td class=''>58</td><td class=''>75</td></tr></table></body></html>",
    "size": 5,
    "freeSpace": true,
    "totalCells": 25,
    "winningPatterns": [
      "horizontal",
      "vertical",
      "diagonal",
      "four corners",
      "blackout (all cells)"
    ],
    "image": {
      "imageName": "8dcb6cee-a419-4501-a13c-ff6eafd393b7_bingo.png",
      "format": ".png",
      "downloadURL": "https://storage.googleapis.com/apiverve/APIData/bingocardgenerator/8dcb6cee-a419-4501-a13c-ff6eafd393b7_bingo.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010022&Signature=ErKaS3I1DaHCBxYRxnjx5QLHm0S3zfpJIWzz7BosGyhDwYSejCHlfcSI%2BKOHJzxEiUdSWFFt947%2BLzHGpVZrLYPxGGvgCVPOKZ4H9vfgyJPP%2BF9LICc9kLG6%2FwevlPsAHHHLjoLS%2F7OVByiwzTWguRzcbyYT44XpbbU0IsOA40S7Utqt%2BjAC5%2FSfhW4z%2FdJE2yXsSNqr3acEJB70cVde3qkP80Iv6H7%2FZB08EDjbakauJmjASJ86H%2BWM2b9BPo250bBzLtGPxW8KZUVgy79SDxJu8VVnzAhiWzcmih9UrBUvejuxkbPIAx6ohwHepmh414G0wvAcxtHRaXx4O5cr7g%3D%3D",
      "expires": 1766010022446
    }
  }
}
```

## Use cases

- **Game Creation** — Create bingo games with randomly generated cards and customizable sizes
- **Event Planning** — Generate printable bingo cards for events, parties, and activities
- **Educational Tools** — Build educational bingo games with custom card layouts
- **Gaming Apps** — Integrate bingo card generation into gaming applications and platforms

## SDKs

- **npm** — `npm install @apiverve/bingocardgenerator` (https://www.npmjs.com/package/@apiverve/bingocardgenerator)
- **PyPI** — `pip install apiverve-bingocardgenerator` (https://pypi.org/project/apiverve-bingocardgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.BingoCardGenerator` (https://www.nuget.org/packages/APIVerve.API.BingoCardGenerator)
- **Source** — https://github.com/apiverve/bingocardgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/bingocardgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
