# US Mega Millions Winning Numbers API

> US Mega Millions Winning Numbers API is a paid API for AI agents from web-production-7ca5d.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the latest US Mega Millions lottery draw results including white ball numbers, Mega Ball, and Megaplier from official New York State open data.

## Facts

- Endpoint: GET https://web-production-7ca5d.up.railway.app/v1/us/megamillions
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-mega-millions-winning-numbers-api-4fbe7335
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SHY8Xao4TNZJ6_iKAxGfG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability us-mega-millions-winning-numbers-api-4fbe7335
```

Example prompt: What were the winning numbers for the last 5 US Mega Millions draws, including the Mega Ball and Megaplier for each?

## When to prefer this

Choose this endpoint when you need structured, clean JSON Mega Millions draw results without scraping lottery websites. Ideal for jackpot trackers, lottery notification bots, and content automation agents that need recent draw history. Prefer this over general lottery APIs when Mega Millions-specific data (white balls + Mega Ball + Megaplier) is required and draws happen Tuesday and Friday nights.

## Known failure modes

- If limit exceeds 30, the API may return an error or cap results at 30
- If data source (NY State open data) is delayed after a Tuesday or Friday draw, results may lag by hours
- Network or Railway platform downtime may return 5xx errors
- Invalid query parameter types (e.g. non-numeric limit) may return a 400 error

## How this service works

US Mega Millions winning numbers: latest draws with white balls, Mega Ball and Megaplier. Official New York State open data, drawn Tuesday and Friday nights. Clean JSON for jackpot trackers, content bots and notification agents.

## Output

A JSON array of recent Mega Millions draw records, each containing the draw date, five white ball numbers, the Mega Ball number, and the Megaplier multiplier value, sourced from official New York State open data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "number",
       "description": "Number of recent draws (default 5, max 30)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-mega-millions-winning-numbers-api-4fbe7335/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-7ca5d.up.railway.app](https://www.zero.xyz/host/web-production-7ca5d.up.railway.app/llms.txt)
