Skip to content

List Available Lotteries

GET /v1/lotteries/available

Returns a paginated list of all active lotteries. Use this to display available lotteries to your users or to find lottery slugs for entering users.

HeaderRequiredValue
X-API-SecretYesYour secret key
ParameterTypeDefaultDescription
pageinteger1Page number
limitinteger20Results per page (max 100)
Terminal window
curl -X GET "https://api.gamifyhost.com/v1/lotteries/available?page=1&limit=10" \
-H "X-API-Secret: sk_live_your_secret_key"

Status: 200 OK

{
"status": "success",
"data": [
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"partnerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Mega Millions Weekly",
"slug": "mega-millions-weekly",
"description": "Weekly jackpot draw with 6 main numbers and 1 bonus ball",
"lotteryType": "STANDARD_DRAW",
"status": "ACTIVE",
"primaryColor": "#6366f1",
"logoUrl": "https://example.com/logo.png",
"drawFrequency": "WEEKLY",
"requiresTicketPurchase": true,
"ticketPriceUsdCents": 500,
"currency": "USD",
"maxTicketsPerUser": 10,
"totalTicketsSold": 15420,
"totalDrawsHeld": 12,
"nextDrawAt": "2026-03-12T20:00:00Z",
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-03-05T10:30:00Z"
}
],
"total": 5,
"page": 1,
"limit": 10
}
FieldTypeDescription
dataarrayList of active lottery objects
totalintegerTotal number of active lotteries
pageintegerCurrent page number
limitintegerResults per page
FieldTypeDescription
idstringLottery UUID
namestringDisplay name
slugstringUnique slug — use this when entering users
descriptionstringLottery description
lotteryTypestringOne of: STANDARD_DRAW, SKILL_LUCK, POPULATION_BASED, CHARITY_NATION, GLOBAL_CIVIC
statusstringAlways ACTIVE in this endpoint
drawFrequencystringDAILY, WEEKLY, MONTHLY, or CUSTOM
requiresTicketPurchasebooleanWhether entry requires payment
ticketPriceUsdCentsintegerTicket price in cents (0 if free)
currencystringPrice currency code
maxTicketsPerUserintegerMax tickets allowed per user per draw
totalTicketsSoldintegerLifetime tickets sold
totalDrawsHeldintegerNumber of completed draws
nextDrawAtstringISO 8601 timestamp of next scheduled draw