Lottery Data API

Next Draw Date API

Our next lottery draw date API is based on the usual draw days of the lottery game. It is available in JSON and XML formats and easily accessible through a simple API request. Secure HTTPS connections must be used.

Please note that the API key shown in the examples below is not valid. You must replace the API key value with your API key or please sign up for an API account if you do not have one.

Next Draw Date API Request

The base URL for our lottery results API is

https://www.magayo.com/api/next_draw.php

Request Parameters

ParameterDescriptionValid Values
api_keyYour assigned API key. This parameter is required.Your assigned API key value.
gameThe lottery game for which you would like to retrieve the draw results. This parameter is required.Please refer to the list of supported games and values to use.
formatThe API response format. This parameter is optional and the default format is JSON.json or xml

Examples:

To retrieve the next draw date for USA Powerball game in JSON format:

https://www.magayo.com/api/next_draw.php?api_key=hXJDjsp8I6RY&game=us_powerball

To retrieve the next draw date for EuroMillions game in XML format:

https://www.magayo.com/api/next_draw.php?api_key=hXJDjsp8I6RY&game=euromillions&format=xml

Next Draw Date API Response

ElementDescriptionFormat
errorError code. Value greater than zero indicates an error.The list of error codes are listed below.
next_drawThe date of the next lottery draw.YYYY-MM-DD
Example: 2019-03-10

Example of response in JSON format:

	{
"error" : 0,
"next_draw" : "2019-03-10"
}

Example of response in XML format:

	<response>
<error>0</error>
<next_draw>2019-03-10</next_draw>
</response>

List of Error Codes

Error CodeDescriptionAction or Resolution
0No error.Proceed to process the next draw date retrieved.
100API key not provided.Please add the api_key parameter in your API request.
101Invalid API key.Please check & correct the value of the api_key parameter in your API request.
102API key not found.Please check & correct the value of the api_key parameter in your API request.
200Game not provided.Please add the game parameter in your API request.
201Invalid game.Please check & correct the value of the game parameter in your API request.
202Game not found.Please check & correct the value of the game parameter in your API request.
300Account suspended.You have violated our terms of use.
303API limit reached.You may like to consider upgrading your API plan.

Download magayo Lotto

magayo Lotto is FREE and 100% clean.

Read CNET Editors' review on magayo Lotto!

Read CNET Editors' review on magayo Lotto!

"Finally, here is software that might help you win the lottery"

Read CNET Editors' review

Read CNET Editors' review

Why avoid the installers of software download sites?

Read Softonic Editorial Team's review on magayo Lotto!

"This unique software bundle contains intelligent algorithms that could very well enable you to strike it rich."

Read Softonic Editorial Team's review

Read BytesIn Editor's review on magayo Lotto!

"If you play the lottery and you want to improve your chances of winning, magayo Lotto is an application that can be of help."

Read BytesIn Editor's review

magayo Lotto is rated 5 stars by BestSoftware4Download

magayo Lotto is rated 5 stars by Download3000

magayo Lotto is rated 5 stars by BestFreewareDownload

magayo Lotto is rated 5 stars by Windows7Download

Play intelligently with our lottery software...

... to improve your chances of winning!

Download magayo Lotto

For any Lotto and Powerball games

Download magayo Pick

For any Pick 3 & Pick 4 games

Our lottery software is FREE and it does not expire. It is also 100% safe and clean with no virus, no adware and no spyware.

See the winning tickets of our Lotto winners!
See the awards for magayo Lotto!
See the awards for magayo Pick!
Why choose our lottery software?

Don't play blindly! Always play intelligently and responsibly!

magayo.com is verified safe by Google Safe Browsing

magayo.com is verified safe by Norton Safe Web

magayo.com is verified safe by McAfee SiteAdvisor

Website reputation of magayo.com is rated 100/100 by Webutation

Back to top of page