Fill in the Blanks Generator API
Overview
To use Fill in the Blanks Generator, you need an API key. You can get one by creating a free account and visiting your dashboard.
GET Endpoint
https://api.apiverve.com/v1/fillintheblanksExample
How to call the Fill in the Blanks Generator API in different programming languages.
curl -X GET \
"https://api.apiverve.com/v1/fillintheblanks?category=idioms&count=5&difficulty=medium&image=true" \
-H "X-API-Key: your_api_key_here"const response = await fetch('https://api.apiverve.com/v1/fillintheblanks?category=idioms&count=5&difficulty=medium&image=true', {
method: 'GET',
headers: {
'X-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);import requests
headers = {
'X-API-Key': 'your_api_key_here',
'Content-Type': 'application/json'
}
response = requests.get('https://api.apiverve.com/v1/fillintheblanks?category=idioms&count=5&difficulty=medium&image=true', headers=headers)
data = response.json()
print(data)package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/fillintheblanks?category=idioms&count=5&difficulty=medium&image=true", nil)
req.Header.Set("X-API-Key", "your_api_key_here")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}{
"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
}
}
}Authentication
The Fill in the Blanks Generator API requires authentication via API key. Include your API key in the request header:
X-API-Key: your_api_key_hereInteractive API Playground
Test the Fill in the Blanks Generator API directly in your browser with live requests and responses.
Parameters
The following parameters are available for the Fill in the Blanks Generator API:
Generate Fill in the Blanks
| Parameter | Type | Required | Description | Default | Example |
|---|---|---|---|---|---|
category | string | optional | Puzzle category Supported values: randomidiomsproverbsquotesscience | ||
count | integer | optional | Number of puzzles Range: 1 - 20 | ||
difficulty | string | optional | Difficulty level Supported values: easymediumhard | ||
imagePremium | boolean | optional | Set to true to generate a downloadable puzzle image | - |
Response
The Fill in the Blanks Generator API returns responses in JSON, XML, YAML, and CSV formats. The JSON response is shown in the Example section above; alternative formats below.
Other Response Formats
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</status>
<error xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<data>
<puzzles>
<puzzle>
<id>1</id>
<sentence>A penny saved is a penny ___.</sentence>
<answer>EARNED</answer>
<letterCount>6</letterCount>
<hint>gained/obtained</hint>
<firstLetter xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</puzzle>
<puzzle>
<id>2</id>
<sentence>Actions speak louder than ___.</sentence>
<answer>WORDS</answer>
<letterCount>5</letterCount>
<hint>what we say</hint>
<firstLetter xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</puzzle>
<puzzle>
<id>3</id>
<sentence>Don't count your chickens before they ___.</sentence>
<answer>HATCH</answer>
<letterCount>5</letterCount>
<hint>come out of eggs</hint>
<firstLetter xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</puzzle>
<puzzle>
<id>4</id>
<sentence>The early bird catches the ___.</sentence>
<answer>WORM</answer>
<letterCount>4</letterCount>
<hint>a crawling creature</hint>
<firstLetter xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</puzzle>
<puzzle>
<id>5</id>
<sentence>Don't put all your eggs in one ___.</sentence>
<answer>BASKET</answer>
<letterCount>6</letterCount>
<hint>a container</hint>
<firstLetter xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</puzzle>
</puzzles>
<count>5</count>
<difficulty>medium</difficulty>
<category>idioms</category>
<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></html>
<image>
<imageName>ba85c6d6-4376-4171-841d-8b4bc97e1095_fillblanks.png</imageName>
<format>.png</format>
<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</downloadURL>
<expires>1766010206793</expires>
</image>
</data>
</response>
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
| key | value |
|---|---|
| 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} |
Response Structure
All API responses follow a consistent structure with the following fields:
| Field | Type | Description | Example |
|---|---|---|---|
status | string | Indicates whether the request was successful ("ok") or failed ("error") | ok |
error | string | null | Contains error message if status is "error", otherwise null | null |
data | object | null | Contains the API response data if successful, otherwise null | {...} |
Learn more about response formats →
Response Data Fields
When the request is successful, the data object contains the following fields:
| Field | Type | Sample Value | Description |
|---|---|---|---|
| [ ] Array items: | array[5] | - | |
â”” id | number | - | |
â”” sentence | string | - | |
â”” answer | string | - | |
â”” letterCount | number | - | |
â”” hint | string | - | |
â”” firstLetter | object | - | |
count | number | - | |
difficulty | string | - | |
category | string | - | |
html | string | - | |
image | object | - | |
â”” imageName | string | - | |
â”” format | string | - | |
â”” downloadURL | string | - | |
â”” expires | number | - |
Headers
Only X-API-Key is required. Optional headers include Accept for response format negotiation (JSON, XML, or YAML), User-Agent, and X-Request-ID for request tracing. See all request headers →
GraphQL AccessALPHA
Access Fill in the Blanks Generator through GraphQL to combine it with other API calls in a single request. Query only the fill in the blanks generator data you need with precise field selection, and orchestrate complex data fetching workflows.
Credit Cost: Each API called in your GraphQL query consumes its standard credit cost.
POST https://api.apiverve.com/v1/graphqlquery {
fillintheblanks(
input: {
category: "idioms"
count: 5
difficulty: "medium"
image: true
}
) {
puzzles
count
difficulty
category
html
image {
imageName
format
downloadURL
expires
}
}
}Note: Authentication is handled via the x-api-key header in your GraphQL request, not as a query parameter.
CORS Support
The Fill in the Blanks Generator API accepts cross-origin requests from any origin, so it can be called directly from browser-based applications without a proxy. See CORS support →
Rate Limiting
Fill in the Blanks Generator requests are throttled per minute on the Free plan and unthrottled on paid plans. Exceeding the limit returns 429 Too Many Requests; rate-limit usage is reported in the X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset response headers. See per-plan limits and best practices →
Error Codes
The Fill in the Blanks Generator API uses standard HTTP status codes — 200 on success, 400 for invalid parameters, 401 for missing or invalid keys, 403 for insufficient credits, 429 for rate-limit exhaustion, and 500/503 for server-side issues. Each error response includes an X-Request-ID header you can quote when contacting support. See full error handling guide →
SDKs for Fill in the Blanks Generator
Official Fill in the Blanks Generator packages on npm, PyPI, NuGet, and JitPack — plus a Postman collection and an OpenAPI spec. See the SDK guide →
No-Code Integrations
Fill in the Blanks Generator works with Zapier, Make, Pipedream, n8n, and Power Automate using the same API key. See setup guides →
Frequently Asked Questions
How do I get an API key for Fill in the Blanks Generator?
How many credits does Fill in the Blanks Generator cost?
Each successful Fill in the Blanks Generator API call consumes credits based on plan tier. Check the pricing section above for the exact credit cost. Failed requests and errors don't consume credits, so you only pay for successful fill in the blanks generator lookups.
Can I use Fill in the Blanks Generator in production?
The free plan is for testing and development only. For production use of Fill in the Blanks Generator, upgrade to a paid plan (Starter, Pro, or Mega) which includes commercial use rights, no attribution requirements, and guaranteed uptime SLAs. All paid plans are production-ready.
Can I use Fill in the Blanks Generator from a browser?
What happens if I exceed my Fill in the Blanks Generator credit limit?
When you reach your monthly credit limit, Fill in the Blanks Generator API requests will return an error until you upgrade your plan or wait for the next billing cycle. You'll receive notifications at 80% and 95% usage to give you time to upgrade if needed.








