DiceAPI
API
API Status: Checking...

Roll the dice
Anywhere

A simple, fast, and reliable API for dice rolling. Perfect for tabletop games, Discord bots, game development, and anywhere you need fair randomization.

Everything you need for dice rolls

Built for developers who need reliable randomization

JSON API

Clean REST API with structured JSON input and output.

Rich Modifiers

Keep/drop, exploding dice, rerolls, and math operations.

Cryptographically Secure

True randomness using secure RNG for fair results.

Roll Trace

Full trace of each modifier applied to your roll.

Roll Persistence

Every roll stored for retrieval and verification.

Interactive Docs

OpenAPI documentation with built-in testing.

Try it right now

No registration required. Enter a dice expression and see the API in action.

1

Enter notation like 2d6+3

2

Click Roll to send request

3

See request and response

API Playground

Format: NdS or NdS+M (e.g., 2d6, 1d20+5, 3d8-2)

{
  "dice": {
    "count": 2,
    "sides": 6
  },
  "modifiers": [
    {
      "type": "add",
      "params": {
        "value": 3
      }
    }
  ]
}

Enter a dice expression and click Roll to see results

Ready to integrate?

Sign in with GitHub to get your API key and start building. Free for personal projects.