Bring Your Own Web Services
API

Mega Millions API (NY)

Mega Millions

Description
Fetch latest MegaMillion winning numbers via NY State Data Services.

Base URL
https://data.ny.gov/resource/5xaw-6ayf.json

Parameter 1
$limit

Parameter 2
$$app_token

Parameter 3

Parameter 4

Notes
Data available from 2002 to present. Also available in XML and CSV formats (by replacing "json" in URL with "xml" or "csv"). Signup and get app token here: https://data.ny.gov/profile/edit/developer_settings

Examples
https://data.ny.gov/resource/5xaw-6ayf.json?$limit=10

Results
[{"draw_date":"2020-01-10T00:00:00.000","winning_numbers":"17 27 49 51 66","mega_ball":"02","multiplier":"02"} ,{"draw_date":"2020-01-07T00:00:00.000","winning_numbers":"25 40 41 52 56","mega_ball":"21","multiplier":"04"} ,{"draw_date":"2020-01-03T00:00:00.000","winning_numbers":"37 41 42 53 63","mega_ball":"16","multiplier":"02"} ,{"draw_date":"2019-12-31T00:00:00.000","winning_numbers":"30 44 49 53 56","mega_ball":"11","multiplier":"03"} ,{"draw_date":"2019-12-27T00:00:00.000","winning_numbers":"17 34 40 63 64","mega_ball":"24","multiplier":"04"} ,{"draw_date":"2019-12-24T00:00:00.000","winning_numbers":"27 37 48 63 66","mega_ball":"11","multiplier":"02"} ,{"draw_date":"2019-12-20T00:00:00.000","winning_numbers":"03 20 23 35 60","mega_ball":"16","multiplier":"03"} ,{"draw_date":"2019-12-17T00:00:00.000","winning_numbers":"22 30 53 55 56","mega_ball":"16","multiplier":"02"} ,{"draw_date":"2019-12-13T00:00:00.000","winning_numbers":"17 21 29 39 56","mega_ball":"22","multiplier":"03"} ,{"draw_date":"2019-12-10T00:00:00.000","winning_numbers":"18 31 46 54 61","mega_ball":"25","multiplier":"02"}]

Leave a Reply

Your email address will not be published. Required fields are marked *