99.9% API

Want to make your own dice betting bot? Want to earn money while doing it? That is what we are offering.

On this page, you will find information about creating your own bot using the API provided by 999dice.

Making Money

New players are automatically attached as one of your referrals on 999dice. That means you earn 0.05% of the value of every bet they make, win or lose.

Rules

We do not care if you make a bot and call it "Bob's Super-Dice Site". You do not need to mention our website at all. We do not care if you pass it off as your own site, even. To extend that idea, you could even create your own website, and have our API serve as your back-end.

What we DO care about is: PLAY FAIR. Be open and honest about what your bot does and doesn't do. We are keeping a close eye on the API usage.

The Raw Web API

Display

If you aren't using a language that already has an implementation of the API, you can still access it using web requests.

All requests must include the action you wish to perform as the "a" parameter.

All requests other than CreateAccount, BeginSession, and Login must include a session cookie as the "s" parameter.

For example: a=GetServerSeedHash&s;=1a2b3c4d5f6 is requesting the action "GetServerSeedHash" for the user with the session cookie "1a2b3c4d5f6".

Responses

All requests can receive error responses instead of the normal response.

There are some standard error responses that may be generated for any request:

Starting a session...

CreateAccount Login

Handling user information...

CreateUser ChangePassword UpdateEmail UpdateEmergencyAddress

Funds...

Withdraw GetDepositAddress GetBalance

Betting...

PlaceBet PlaceAutomatedBets

General Information...

GetCurrencies GetMarketInfo

Samples

Request: a=UpdateEmergencyAddress&s=1a2b3c4d5e6f&Address=1DogecoinAddress123
Response: {success: 1}

Request: a=Withdraw&s=1a2b3c4d5e6f&Amount=5000000&Address=1DogecoinAddress123&Currency=doge
Response: {Pending: 5000000}
or Response: {InsufficientFunds: 1}

Request: a=GetBalance&s=1a2b3c4d5e6f
Response: {Balance: 123450000}
or Response: {TooFast: 1}

Request: a=PlaceBet&s=1a2b3c4d5e6f&PayIn=1000&Low=0&High=499499&ClientSeed=12345678&Currency=doge
Response: {BetId:123, PayOut: 2000, Secret: 222222, StartingBalance: 5000, ServerSeed: "a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708"}
or Response: {BetId:123, PayOut: 0, Secret: 888888, StartingBalance: 5000, ServerSeed: "a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708"}
or Response: {InsufficientFunds: 1}
or Response: {TooFast: 1}

Request: a=PlaceAutomatedBets&s=1a2b3c4d5e6f&BasePayIn=1000&Low=0&High=499499&MaxBets=3&ResetOnWin=1&ResetOnLose=0&IncreaseOnWinPercent=0&IncreaseOnLosePercent=1.0&MaxPayIn=2500&ResetOnLoseMaxBet=0&StopOnLoseMaxBet=0&StopMaxBalance=0&ClientSeed=987654321&Currency=doge
Response: {BetId:123, PayIns: [-1000, -2000, -2500], PayOuts: [0, 0, 5000], Secrets: [777777, 888888, 222222], StartingBalance: 5000, Seed: "a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708"}
or Response: {BetId:123, PayIns: [-1000, -1000, -1000], PayOuts: [2000, 2000, 0], Secrets: [222222, 333333, 777777], StartingBalance: 5000, Seed: "a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708"}
or Response: {InsufficientFunds: 1}
or Response: {TooFast: 1}

Request: a=PlaceAutomatedBets&s=1a2b3c4d5e6f&BasePayIn=1000&Low=0&High=499499&MaxBets=200&ResetOnWin=1&ResetOnLose=1&IncreaseOnWinPercent=0&IncreaseOnLosePercent=0&MaxPayIn=2500&ResetOnLoseMaxBet=0&StopOnLoseMaxBet=0&StopMaxBalance=0&ClientSeed=987654321&Currency=trx&Compact=1
Response: {BetId: 123, BetCount: 200, PayIn: -200000, PayOut: 300000, Seed: "a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708a1b2c3d4e5f60708", StartingBalance: 5000}
or Response: {InsufficientFunds: 1}
or Response: {TooFast: 1}