Dice Roller API
Dice Roller is a tool for rolling dice using standard RPG notation (XdY format). It supports multiple dice, various die sizes, modifiers, and provides statistics including min, max, average, and theoretical values for gaming and simulations.
Live Test API
Try out the Dice Roller with a live request and see the response in real-time.
API Request
API Response
{
"status": "ok",
"error": null,
"data": {
"dice_notation": "3d6",
"num_dice": 3,
"num_sides": 6,
"modifier": 5,
"rolls": [
2,
6,
5
],
"total": 13,
"total_with_modifier": 18,
"min_roll": 2,
"max_roll": 6,
"average_roll": 4.33,
"theoretical_min": 3,
"theoretical_max": 18,
"theoretical_average": 10.5,
"expression": "3d6+5"
}
}Multiple Access Methods
REST API with multiple response formats plus GraphQL support
JSON
JavaScript Object Notation
XML
Extensible Markup Language
YAML
Human-readable data format
GraphQL
Query language for APIs
GraphQL Support
Access most of our API library through our unified GraphQL interface. Query multiple APIs in a single request with flexible field selection.Learn more about GraphQL →
Skip the HTTP calls. Use our official packages
Integrate faster with type-safe SDKs and comprehensive documentation
Similar APIs
Explore other games APIs that complement the Dice Roller
Frequently Asked Questions
Get answers to common questions about the Dice Roller
How do I get started with this API?
Getting started is simple! Sign up for a free account, get your API key, and start making requests to our REST endpoints. We provide comprehensive documentation and code examples to help you integrate quickly.
What response formats are supported?
We support JSON (default), XML, and YAML response formats. Simply add the format parameter to your request with values 'json', 'xml', or 'yaml'. All formats contain the same comprehensive data.
Are there usage limits on the free tier?
The free tier includes 50 tokens per month with a rate limit of 10 requests per minute. Pro plans offer higher limits and enterprise plans provide unlimited usage with priority support.
How do I authenticate API requests?
Include your API key in the request header as X-API-Key: your_key_here or as a query parameter ?key=your_key. All requests are made over HTTPS for security.
Ready to integrate Dice Roller?
Join thousands of developers building amazing applications with reliable API data. Get started with your free API key today.