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

D&D Generator API

GET

Populate tabletop campaigns with instant characters and quests.

D&D Generator creates random content for tabletop role-playing games including characters, NPCs, monsters, treasure, encounters, taverns, and quests.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/dndgenerator?type=character&count=1
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": {
    "type": "character",
    "count": 1,
    "results": {
      "name": "Ashorshadow",
      "race": "Elf",
      "class": "Warlock",
      "level": 6,
      "background": "Criminal",
      "alignment": "Lawful Good",
      "stats": {
        "strength": 10,
        "dexterity": 12,
        "constitution": 7,
        "intelligence": 15,
        "wisdom": 12,
        "charisma": 10
      },
      "hitPoints": 20
    }
  }
}

About the D&D Generator API

D&D Generator produces random content for tabletop role-playing games: characters, NPCs, monsters, treasure, encounters, taverns, quests and fantasy names. It is built for dungeon masters who need quick inspiration mid-session, for game preparation tools, and for procedural content generation for RPG applications such as Discord bots and campaign managers.

Choose a type, or leave it on all to get one of each of the seven content types in one response, and ask for up to 10 results per call. A character comes with a race, class and name; an NPC with an occupation, personality, quirk and secret; a tavern with a name, house specialty, atmosphere and a rumor to hook the party.

On the Free plan a generated character includes its name, race and class. Paid plans fill in the rest of the sheet: level, background, alignment, the six ability scores and hit points.

How it works

Everything is generated on request from fixed lists and simulated dice rolls; nothing is stored and repeated calls give different results. type selects character, npc, monster, treasure, encounter, tavern, quest or name, and defaults to all, which returns an object with one of each of the first seven. count defaults to 1 and the definition allows up to 10. When count is 1, results is a single object; above 1 it is an array.

Characters use the classic method for ability scores: each of the six stats is four d6 rolls with the lowest dropped, giving 3 to 18. level is a d20 roll; hitPoints follows 5e rules: the class hit die at level 1, its fixed average for each later level, plus the constitution modifier per level. Race, class, background and alignment are picked from 9, 12, 10 and 9 options.

Monsters get a challengeRating from a d20, with hitPoints rolled inside the 5e DMG range for that challenge rating (71-85 at CR 1 up to 356-400 at CR 20), the DMG's armorClass for it (13 to 19), a size that grows with the rating, and lairActions: true at challenge 10 and above. Treasure always includes coins and may include gems, an art object or a magic item, each with its own chance; totalValue is their combined worth in gold pieces (coins at 5e exchange rates, gems, art objects and magic items at DMG-style values). Encounters name 1 to 4 monsters and attach a generated treasure as potentialReward. Names are assembled from a prefix, an optional middle syllable and a suffix, which is also what type=name returns.

What people use it for

Game Preparation
Generate NPCs, encounters, and quests for tabletop RPG sessions
Character Creation
Create random characters with stats, backgrounds, and personalities
World Building
Generate taverns, locations, and story hooks for campaign settings
RPG Applications
Integrate procedural content generation into gaming platforms

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 D&D Generator

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

Questions.

Common questions about the D&D Generator API.

Read the docs →
What types of tabletop content can I generate?
You can generate characters, NPCs, monsters, treasure, encounters, taverns, and quests. Each request takes a content type parameter and returns structured details designed for campaign preparation, random encounters, or procedural RPG tools.
Can I generate multiple items in a single call?
Yes, you can pass a count parameter to receive multiple generated items in one request. The response returns an array of generated results alongside the content type and total count.
What character attributes are returned in the response?
Character entries provide a name, fantasy race, and character class. On paid plans, the response also includes character level, narrative background, moral alignment, hit points, and ability scores for strength, dexterity, constitution, intelligence, wisdom, and charisma.
Are character stats, hit points, and levels included on the Free plan?
No, character levels, backgrounds, moral alignments, hit points, and core ability scores are premium fields. The Free plan returns basic character identification including name, race, and class. Any paid plan unlocks full stats and narrative attributes.
How far does the Starter plan go for generating D&D content?
Starter provides 200,000 credits each month, covering up to 200,000 generations at 1 credit per call. That works out to about $0.15 per 1,000 generations, or roughly $0.00015 per call. You can also test with 200 free generations every month on the Free plan.

Ready to build with D&D Generator? Start with 200 free credits — one key unlocks all 420+ APIs.

Explore the catalog

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

Browse all APIs