/rest-roulette

REST API to play roulette

Primary LanguageJavaScript

Rest Roulette Screenshot

REST Roulette

Play your luck in roulette.

Free, open-source JSON REST API

roulette.rip

Usage

Base URL

https://www.roulette.rip

Play game

GET /api/play

Required parameters:

  • bet: odd, even, low, high, red, black, green, or [0 through 36]
  • wager: any number

Example

Request:

 GET /api/play?bet=low&wager=200

Response:

{
  "success": true, 
  "roll": {
    "number": 21, 
    "color": "red", 
    "parity": "odd"
  }, 
  "bet": {
    "bet": "red", 
    "wager": "200.00", 
    "win": true, 
    "payout_rate": 1, 
    "payout": "400.00"
  }
}

Gameplay

Roulette is a common casino game where players can place bets on either a single number, various groupings of numbers, the colors red or black, whether the number is odd or even, or if the numbers are high (19–36) or low (1–18).

More Information

Bets and Payouts

This API supports the following bets:

  • Odd/Even: 1 to 1
  • Low/High: 1 to 1
  • Red/Black: 1 to 1
  • Green: 35 to 1
  • Number: 36 to 1

Development

Version 1.0.0

Written by Marcel Perez

Uses Flask for Python

Roulette photo by Pixabay