This API allows you to check if the lottery jackpot is fixed at a specified amount for the specified game. For fixed jackpots, our Get Next Jackpot API will return a string value instead of a numeric value.
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.
The base URL for our next jackpot API is:
https://www.magayo.com/api/is_fixed_jackpot.php
Parameter
Description
Valid Values
api_key
Your assigned API key. This parameter is required.
Your assigned API key value.
game
The lottery game for which you would like to check if the lottery jackpot is a fixed amount. This parameter is required.
Please refer to the list of supported jackpots and values to use.
format
The API response format. This parameter is optional and the default format is JSON.
json or xml
Examples:
To check for USA Powerball game in JSON format:
https://www.magayo.com/api/is_fixed_jackpot.php?api_key=hXJDjsp8I6RY&game=us_powerball
To check for Lucky for Life game in XML format:
https://www.magayo.com/api/is_fixed_jackpot.php?api_key=hXJDjsp8I6RY&game=us_lucky_life&format=xml
View sample PHP snippets on how to use our lottery data APIs
Element
Description
Value
error
Error code. Value greater than zero indicates an error.
The list of error codes are listed below.
fixed_jackpot
Yes or No.
String
Example: Yes
Example of response in JSON format:
{
"error" : 0,
"fixed_jackpot" : "Yes"
}
Example of response in XML format:
<response>
<error>0</error>
<fixed_jackpot>Yes</fixed_jackpot>
</response>
Error Code
Description
Action or Resolution
0
No error.
Proceed to check the fixed_jackpot value returned.
100
API key not provided.
Please add the api_key parameter in your API request.
101
Invalid API key.
Please check & correct the value of the api_key parameter in your API request.
102
API key not found.
Please check & correct the value of the api_key parameter in your API request.
200
Game not provided.
Please add the game parameter in your API request.
201
Invalid game.
Please check & correct the value of the game parameter in your API request.
202
Game not found.
Please check & correct the value of the game parameter in your API request.
300
Account suspended.
You have violated our terms of use.
"I played the recommendation... and I won the first prize!"
See the winning lottery tickets of magayo Lotto users