Entertainment
NY Lottery logo

NY Lottery API

nylottery.ny.gov

NY Lottery - draw results, jackpots, odds, scratch-offs, and live draws.

Actions
5
Category
Entertainment
Login
Not required
Output
JSON

Call the NY Lottery API

Submit a task, then poll the job until it settles. This example runs act_nylottery_ny_gov_all_draw_games_results.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_nylottery_ny_gov_all_draw_games_results",
    "params": {
      "game_key": "powerball"
    }
  }'

5 actions on nylottery.ny.gov

Read

  • All Draw Games Results

    act_nylottery_ny_gov_all_draw_games_resultsread1 credit / call

    Returns latest jackpots, next draw times, and winning numbers, optionally per game.

    game_key
    string
  • Double Play Live Stream

    act_nylottery_ny_gov_live_draw_stream_manifest_double_playread1 credit / call

    Returns the Double Play live draw stream with HLS and DASH URLs.

    account_id
    string · required
    video_id
    string · required
    pk
    string · required
  • Draw Games Catalog

    act_nylottery_ny_gov_draw_games_catalogread1 credit / call

    Returns draw games with odds, prize tiers, payouts, and schedules.

    game_key
    string
  • Powerball Live Stream

    act_nylottery_ny_gov_live_draw_stream_manifest_powerballread1 credit / call

    Returns the Powerball live draw stream with HLS and DASH URLs.

    account_id
    string · required
    video_id
    string · required
    pk
    string · required
  • Scratch Off Games Listing

    act_nylottery_ny_gov_scratch_off_games_listingread1 credit / call

    Returns scratch-off games with prices, top prizes, odds, and remaining prizes.

NY Lottery API questions

Is there an API for NY Lottery?
NY Lottery does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for nylottery.ny.gov. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape NY Lottery data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when nylottery.ny.gov changes its markup, Anakin updates the action.
Do I need a NY Lottery account?
No. Every NY Lottery action listed here runs anonymously — no account and no credentials required.
What does the NY Lottery API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Entertainment APIs

All Entertainment sites