# Fill in the Blanks Generator API

> Fill in the Blanks Generator creates completion puzzles from idioms, proverbs, quotes, science facts, and geography trivia.

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

## Overview

Returns puzzles with answers, letter counts, and optional hints. The Fill in the Blanks Generator draws on five built-in sets, idioms, proverbs, famous quotes, science facts and geography trivia, with one key word removed from each sentence to make a cloze test item. You choose the category, how many puzzles you want and an easy, medium or hard level.

Difficulty changes both the words and the help given. Easy uses shorter answers and shows the first letter as well as a hint, medium gives the hint only, and hard uses longer answers with no hint. Each puzzle carries the sentence with its gap, the answer and its letter count, so you can draw input boxes of the right length.

The Free plan returns all of this as JSON, ready for a vocabulary quiz, an English-learning warm-up or a trivia round in a chat app. Paid plans add printable HTML for offline use, with each sentence, its letter count and its hint laid out as a worksheet, plus an optional downloadable image of the puzzles for slides or handouts.

## 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/fillintheblanks?category=idioms&count=5&difficulty=medium&image=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | string | No | Puzzle category. default random. One of: random, idioms, proverbs, quotes, science, geography |
| `count` | integer | No | Number of puzzles. default 5. range 1-20 |
| `difficulty` | string | No | Difficulty level. default medium. One of: easy, medium, hard |
| `image` | boolean | No | Set to true to generate a downloadable puzzle image. default false. Premium field |

## Response fields

  - `puzzles.0.id` — number · Unique identifier for the puzzle
  - `puzzles.0.sentence` — string · Full sentence with blank to be filled in
  - `puzzles.0.answer` — string · Correct answer word to fill the blank
  - `puzzles.0.letterCount` — number · Number of letters in the answer
  - `puzzles.0.hint` — string · Helpful hint describing the answer
  - `puzzles.0.firstLetter` — object · First letter of answer or null if not provided
- `count` — number · Total number of puzzles generated
- `difficulty` — string · Difficulty level of the puzzles
- `category` — string · Category of the puzzles
- `html` — string · Printable HTML rendering of all puzzles · (premium)
- `image` — object · Generated puzzle image details and download information · (premium)
  - `image.imageName` — string · Unique filename of generated puzzle image · (premium)
  - `image.format` — string · Image file format (.png, .jpg, etc) · (premium)
  - `image.downloadURL` — string · Temporary download URL for puzzle image · (premium)
  - `image.expires` — number · Timestamp when download URL expires · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "puzzles": [
      {
        "id": 1,
        "sentence": "A penny saved is a penny ___.",
        "answer": "EARNED",
        "letterCount": 6,
        "hint": "gained/obtained",
        "firstLetter": null
      },
      {
        "id": 2,
        "sentence": "Actions speak louder than ___.",
        "answer": "WORDS",
        "letterCount": 5,
        "hint": "what we say",
        "firstLetter": null
      },
      {
        "id": 3,
        "sentence": "Don't count your chickens before they ___.",
        "answer": "HATCH",
        "letterCount": 5,
        "hint": "come out of eggs",
        "firstLetter": null
      },
      {
        "id": 4,
        "sentence": "The early bird catches the ___.",
        "answer": "WORM",
        "letterCount": 4,
        "hint": "a crawling creature",
        "firstLetter": null
      },
      {
        "id": 5,
        "sentence": "Don't put all your eggs in one ___.",
        "answer": "BASKET",
        "letterCount": 6,
        "hint": "a container",
        "firstLetter": null
      }
    ],
    "count": 5,
    "difficulty": "medium",
    "category": "idioms",
    "html": "<html><head><title>Fill in the Blanks</title><style>body {font-family: Arial, sans-serif; padding: 20px; max-width: 700px; margin: 0 auto;}h1 {text-align: center; color: #673AB7;}.puzzle {background: #f5f5f5; padding: 20px; margin: 15px 0; border-radius: 10px;}.number {font-weight: bold; color: #673AB7; margin-bottom: 10px;}.sentence {font-size: 18px; line-height: 1.8;}.blank {display: inline-block; min-width: 100px; border-bottom: 2px solid #673AB7; margin: 0 5px;}.hint {font-size: 13px; color: #888; font-style: italic; margin-top: 10px;}.info {font-size: 12px; color: #999; margin-top: 5px;}</style></head><body><h1>Fill in the Blanks</h1><div class='puzzle'><div class='number'>#1</div><div class='sentence'>A penny saved is a penny <span class='blank'></span>.</div><div class='info'>6 letters</div><div class='hint'>Hint: gained/obtained</div></div><div class='puzzle'><div class='number'>#2</div><div class='sentence'>Actions speak louder than <span class='blank'></span>.</div><div class='info'>5 letters</div><div class='hint'>Hint: what we say</div></div><div class='puzzle'><div class='number'>#3</div><div class='sentence'>Don't count your chickens before they <span class='blank'></span>.</div><div class='info'>5 letters</div><div class='hint'>Hint: come out of eggs</div></div><div class='puzzle'><div class='number'>#4</div><div class='sentence'>The early bird catches the <span class='blank'></span>.</div><div class='info'>4 letters</div><div class='hint'>Hint: a crawling creature</div></div><div class='puzzle'><div class='number'>#5</div><div class='sentence'>Don't put all your eggs in one <span class='blank'></span>.</div><div class='info'>6 letters</div><div class='hint'>Hint: a container</div></div></body></html>",
    "image": {
      "imageName": "ba85c6d6-4376-4171-841d-8b4bc97e1095_fillblanks.png",
      "format": ".png",
      "downloadURL": "https://storage.googleapis.com/apiverve/APIData/fillintheblanks/ba85c6d6-4376-4171-841d-8b4bc97e1095_fillblanks.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010206&Signature=YRHfh28GKDNvEM4Q07qRcNyg3WnPs7Ee7yg0xXKxKRTmT%2Bg3x%2FThpfWsFTeYScpZlgQTVQ3SU1tZMGH74sZJvAHdVkG6IGA9V2lwIfhHzcfu4Uf4VGKL8%2FIa%2FaLupdtrgDqXSFWOJ9EHHeMKnImAhli1qhlMu%2BIuWAiqfPitDlN5pMklv4R5FACKkZld4LXyA82%2BX8bt%2FESyHciZ5jzlqY1JTacL4kW5uK09bpoo9Ytvs8XOOOjB0my1s%2BIq5z0JEwZzw1Jag%2F5vd09wTXzSXeQMzfo%2FDj73kpU7SilAxEGh%2BuflilyDQTXK7krXcdFUGcD5Nd4Wm%2BW7dP8tQKmbAA%3D%3D",
      "expires": 1766010206793
    }
  }
}
```

## Use cases

- **Education** — Create vocabulary and comprehension tests
- **Language Learning** — Build idiom and proverb exercises
- **Trivia Games** — Generate knowledge-testing puzzles
- **Worksheets** — Produce printable educational materials

## SDKs

- **npm** — `npm install @apiverve/fillintheblanks` (https://www.npmjs.com/package/@apiverve/fillintheblanks)
- **NuGet** — `dotnet add package APIVerve.API.FillintheBlanksGenerator` (https://www.nuget.org/packages/APIVerve.API.FillintheBlanksGenerator)
- **Source** — https://github.com/apiverve/fillintheblanks-api

## More

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