Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get lottery results in json or xml format [closed]

Tags:

json

xml

I am making an app which manages lottery number that you purchased and compare to winning numbers. It will handle Powerball, Mega Millions and Superlotto Plus. But I do not know how to get the winning numbers, drawing dates, amount and other info from its web site using 'http get'. JSON or XML format or whatever format. Does anyone know how to get these data?

like image 537
David Kim Avatar asked Jan 14 '14 07:01

David Kim


1 Answers

Powerball lottery winning numbers are published on this website: Lottery Powerball Winning Numbers

If you click on the Export tab, you get documentation for their API and also the API access endpoint (json) http://data.ny.gov/resource/d6yy-54nr.json

(PowerBall also publishes the winning numbers here as a plain text)

This is for Mega Millions: Mega Millions Winning Numbers

I can't access SuperLotto plus, so I don't know if they offer any public api.

like image 72
Samurai Girl Avatar answered Oct 24 '22 05:10

Samurai Girl