Roll · Dice Room · Feedback · About
Rolz

If you want to use the Online Dice Roller capabilities in your app, you can use the official API to do that. Here's how it works!

C# Dice Code Parser

There is a new C# Dice Code Parser class in town. You can download it here.

REST API

Access to the REST API is available via the base URL
http://rolz.org/api/?
To get back a roll result, just append the die code to the URL:
http://rolz.org/api/?6d6
This example gets you the result of 6D6 in an extended stringlist text format like this:
result=11
details= [ 1+1+2+3+1+3 ] 
code=6d6
illustration=<span class="dc_dice_a">6</span><span class="dc_dice_d">D6</span>
timestamp=1248210819
You can also choose from the available result formats explicitly:
Text: http://rolz.org/api/?6d6.txt
^ delivers in the extended text list format.
Simple: http://rolz.org/api/?6d6.simple
^ gets you just the result number.
XML: http://rolz.org/api/?6d6.xml
^ returns an XML document containing the result.
JSON: http://rolz.org/api/?6d6.json
^ returns a JSON array containing the result.
JSONP: http://rolz.org/api/?6d6.jsonp?callback=callbackfunc
^ returns a JSONP array/function containing the result.