NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Fill in the Blanks Generator API

GET

Generate fill-in-the-blank trivia puzzles with hints and answers.

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

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/fillintheblanks?category=idioms&count=5&difficulty=medium
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "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
    }
  }
}

About the Fill in the Blanks Generator API

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.

How it works

Each category is a fixed list of 10 sentences, each stored with its answer and a short hint. category=random, the default, picks one of the five categories for the whole call, and the response's category field reports which one was used. Every puzzle in a response comes from that one category.

difficulty filters by answer length before anything is chosen: easy keeps answers of five letters or fewer, hard keeps answers of six or more, and medium keeps every sentence. If the filter leaves nothing, the full category is used. The remaining sentences are shuffled and the first count are returned, numbered from 1 in id. A category holds only 10 sentences, and fewer once filtered, so a larger count returns what is available; read count in the response rather than the value you sent.

answer is uppercased and letterCount is its length. hint is filled on easy and medium and null on hard; firstLetter is filled only on easy. The blank in sentence is always three underscores whatever the answer length, so use letterCount for sized boxes. Answers are single words, and the quotes and geography sets include proper nouns such as Watson and Paris, so compare answers case-insensitively.

On the Free plan html and image are null and the image parameter is removed. Paid plans receive html, a printable page of the puzzles with the first letter shown inside the blank on easy, and with image=true a PNG rendering whose signed downloadURL expires one day after the call.

What people use it for

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

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Fill in the Blanks Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Fill in the Blanks Generator API.

Read the docs →
What categories of puzzles does the generator support?
Puzzles can be created from idioms, proverbs, quotes, science facts, and geography trivia. You can also specify difficulty levels and choose how many puzzles to generate in each request.
Does each puzzle include clues to help players solve the blank?
Yes. Every puzzle object provides the target answer, the letter count of that answer, and a descriptive hint. Some puzzles also supply the first letter of the missing word.
Can I get printable HTML sheets and puzzle images on the Free plan?
No. Ready-to-print HTML layouts and downloadable puzzle image files are premium features reserved for paid plans. Upgrading to Starter or above unlocks both formatting options.
Will every puzzle always include a first-letter clue?
Not always. The first letter field is populated when available but returns null if one is not provided for that entry. Your interface should handle cases where only the hint and letter count are present.
What would 5,000 puzzle requests cost me?
Each request costs 2 credits, so 5,000 requests use 10,000 credits. That easily fits within the Starter plan, which provides 200,000 credits each month and works out to about $0.30 per 1,000 calls. The Free plan includes 100 calls per month.

Ready to build with Fill in the Blanks Generator? Start with 200 free credits — one key unlocks all 406+ APIs.

Explore the catalog

406+ APIs on the same key and the same response shape.

Browse all APIs