# Word Ladder Generator API

> Word Ladder Generator creates puzzles where players transform one word into another by changing one letter at a time, with each step forming a valid word.

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

## Overview

A word ladder generator for doublets puzzles: turn one word into another by changing a single letter at a time, with every rung a real word, as in COLD to WARM. Ask for random puzzles at easy, medium or hard, or send your own start and end words and the API finds the shortest word chain between them, or tells you there is none.

Every plan returns the puzzle itself: the start and end words, the step count, a solvable flag and the difficulty, for up to five puzzles per call. That is what a word game, a vocabulary game in class or a daily brain teaser needs to set the challenge.

Paid plans add the answer and the print layer. Each puzzle gains its solution path, every word from start to finish, so you can check a player's ladder or reveal it at the end. Paid plans also add printable HTML with empty rungs for solving, and an optional image of the puzzles to share or print.

## 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/wordladder?start=cold&end=warm&difficulty=medium&count=1&image=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `start` | string | No | Starting word (3-6 letters); must differ from end. length 3-6 |
| `end` | string | No | Ending word (same length as start). length 3-6 |
| `difficulty` | string | No | Difficulty level. default medium. One of: easy, medium, hard |
| `count` | integer | No | Number of puzzles. default 1. range 1-5 |
| `image` | boolean | No | Set to true to generate a downloadable puzzle image. default false. Premium field |

## Response fields

  - `puzzles.0.startWord` — string · Starting word for the puzzle transformation
  - `puzzles.0.endWord` — string · Target word to transform the starting word into
  - `puzzles.0.steps` — number · Number of letter-changing steps required to solve
  - `puzzles.0.solution` — array · Complete sequence of valid words forming solution path · (premium)
  - `puzzles.0.solvable` — boolean · Whether the puzzle has a valid solution path
  - `puzzles.0.difficulty` — string · Difficulty level of the puzzle (easy, medium, hard)
- `count` — number · Total number of puzzles generated in response
- `difficulty` — string · Overall difficulty level of generated puzzles
- `html` — string · Printable HTML puzzle template with empty rungs · (premium)
- `image` — object · The rendered puzzle image, present only when image=true is requested · (premium)
  - `image.imageName` — string · Unique filename for the generated puzzle image · (premium)
  - `image.format` — string · Image file format extension (e.g., .png) · (premium)
  - `image.downloadURL` — string · Cloud storage URL to download the puzzle image · (premium)
  - `image.expires` — number · Unix timestamp when download URL expires · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "puzzles": [
      {
        "startWord": "ANIL",
        "endWord": "CUED",
        "steps": 5,
        "solution": [
          "ANIL",
          "ARIL",
          "ARID",
          "IRID",
          "IRED",
          "CRED",
          "CUED"
        ],
        "solvable": true,
        "difficulty": "medium"
      }
    ],
    "count": 1,
    "difficulty": "medium",
    "html": "<html><head><title>Word Ladder</title><style>body {font-family: Arial, sans-serif; padding: 20px; max-width: 600px; margin: 0 auto;}h1 {text-align: center; color: #4CAF50;}.puzzle {background: #f5f5f5; padding: 25px; margin: 20px 0; border-radius: 10px;}.words {display: flex; justify-content: space-between; align-items: center; margin: 20px 0;}.word {font-size: 28px; font-weight: bold; letter-spacing: 3px; padding: 15px 25px; border-radius: 10px;}.start {background: #4CAF50; color: white;}.end {background: #2196F3; color: white;}.arrow {font-size: 30px; color: #999;}.steps {text-align: center; font-size: 14px; color: #666; margin-bottom: 15px;}.ladder {display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0;}.rung {width: 150px; height: 40px; border: 2px dashed #ccc; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 18px; letter-spacing: 5px;}.hint {font-size: 13px; color: #888; font-style: italic; margin-top: 10px;}</style></head><body><h1>Word Ladder</h1><p style='text-align:center;'>Change one letter at a time to get from the first word to the last</p><div class='puzzle'><div class='steps'>Puzzle #1 - 5 steps</div><div class='words'><span class='word start'>ANIL</span><span class='arrow'>→</span><span class='word end'>CUED</span></div><div class='ladder'><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div></div></div></body></html>",
    "image": {
      "imageName": "6f0f9e5e-ce0d-4570-a706-8fc5ccbfc948_wordladder.png",
      "format": ".png",
      "downloadURL": "https://storage.googleapis.com/apiverve/APIData/wordladder/6f0f9e5e-ce0d-4570-a706-8fc5ccbfc948_wordladder.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010731&Signature=FQwH%2FqXC0eYHgHqGKfBoEETrcXALoIpkf2z7HCkmYcFu2IgL2uMbCBi22tEsrlY3yOkksRuZ56C2685lLi98CWvgCF1J9UrYaAWjFtLesnHZ0i%2B0SWYIy5wZLWnVq4UrJDLZVrvSe8lh21mQJrduVY8QqV%2FI0sViUlnlndLMFUfhEQedKYAGRtmXjJlpl1YA9A9%2BtJoqRvMm4YStfJyLJmExPQKnPiRoP6EB6%2B8%2F1WUq5vH3%2BWglijVroxaJ%2BJy6kgQ8qTuVX9%2FzFi8R0DDHZtd0IpcTL8EBvNvHnjRPS4lZB%2Bm3k9GCxqGCnsj8pssu6ymtzGNEqA%2BBqAthODekWw%3D%3D",
      "expires": 1766010731681
    }
  }
}
```

## Use cases

- **Word Games** — Create word ladder challenges for puzzle apps
- **Education** — Teach vocabulary and word relationships
- **Brain Training** — Develop problem-solving and word skills
- **Competitions** — Generate puzzles for word game tournaments

## SDKs

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

## More

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