API · /dice-api

Dice API

healthy 4,735 Subscribers

A fast, fully-local dice toolkit for games and simulations: roll dice notation (NdM with plus and minus modifiers, multiple dice terms like 1d8+1d6+2, and keep-highest or keep-lowest for advantage and disadvantage such as 2d20kh1), parse and validate a notation, and compute the deterministic minimum, maximum and mean of a roll. Rolls use a cryptographically secure random source. Every endpoint accepts input via the query string or the request body. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for tabletop and RPG tools, Discord and chat bots, virtual tabletops and game backends.

api.oanor.com/dice-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/dice-api/openapi.json
/api/dice-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
80 ms
Server probes · 24h
Subscribers
4,735
active
Total calls
6
last 7 days
status Full status page → · 6 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 19,000 calls / month
  • 4 requests / second
  • Hard cap (429 above quota, no overage)
  • 19,000 rolls/month, 4 req/s
  • Roll any NdM dice notation + parse + min/max/mean stats
  • No credit card
Sign in to subscribe

Basic

€3.00 /month

  • 310,000 calls / month
  • 12 requests / second
  • Hard cap (429 above quota, no overage)
  • 310,000 rolls/month, 12 req/s
  • Modifiers, multiple dice terms, keep highest/lowest (advantage)
  • Cryptographically-random rolls
  • Commercial use, email support
Sign in to subscribe

Pro

€10.00 /month

  • 1,750,000 calls / month
  • 40 requests / second
  • Hard cap (429 above quota, no overage)
  • 1,750,000 rolls/month, 40 req/s
  • Higher throughput for bots & virtual tabletops
  • Query or JSON body input
  • Priority email support
Sign in to subscribe

Mega

€28.00 /month

  • 9,200,000 calls / month
  • 130 requests / second
  • Hard cap (429 above quota, no overage)
  • 9,200,000 rolls/month, 130 req/s
  • Bulk roll volume for game platforms & live tables
  • Maximum throughput
  • Priority support
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Pokémon API

Pokémon details — types, abilities, base stats, height, weight, sprites and official artwork — the full Pokédex roster, and type matchups with damage relations. Backed by PokeAPI. Perfect for games, fan apps, team builders, quizzes and chatbots.

api.oanor.com/pokemon-api

Twitch API

35 endpoints for live Twitch data — users, streams, videos, clips, search, URL helpers.

api.oanor.com/twitch-api

Astronomy API

A fast, fully-local astronomy and ephemeris engine: compute the equatorial (right-ascension/declination) and horizontal (azimuth/altitude) positions of the Sun, Moon and all planets for any observer and moment, get precise rise, set and transit (culmination) times for any body, read detailed lunar state (phase angle, named phase, illuminated fraction, apparent magnitude, geocentric distance, age since the last new moon and the dates of the next new/first-quarter/full/last-quarter moons), and list the exact equinoxes and solstices of any year. Every endpoint accepts input via the query string or the request body. Pure server-side computation (no third-party upstream), so responses are instant and always available. Ideal for weather and tide apps, astrophotography planners, calendars, solar/energy tools, Islamic and lunar calendars, and education.

api.oanor.com/astronomy-api

Geohash API

Work with geohashes through a fast, fully-local API. Encode a latitude/longitude pair into a geohash at any precision (1–12), decode a geohash back to its centre coordinates with the exact bounding box and error margins, list the eight neighbouring geohash cells (north, north-east, east and so on), or get the bounding box, centre and dimensions of a cell. Geohashes turn coordinates into short sortable strings that are perfect for spatial indexing, proximity grouping and map tiling. Pure server-side computation with no third-party upstream, so responses are instant and the service is always available. Ideal for geospatial indexing and search, proximity and nearby queries, map tiles and clustering, IoT and fleet tracking, and location bucketing in databases.

api.oanor.com/geohash-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Dice API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Dice API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Dice API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Dice API cost?
Dice API has a free tier with 100 calls / month. Paid plans start at €3.00 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Dice API GDPR-compliant?
All requests to Dice API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/dice-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/dice-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/dice-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/dice-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.