System Health Check

Use the Health endpoint to verify that the API engine is operational. This route does not require authentication and is perfect for load balancer health checks and uptime monitoring.

GET/api/v1/health

Authentication

Not Required

This endpoint is completely public. You do not need to pass an x-api-key header.

Example Requests

HTTP Request Examples
curl -X GET "https://uslotteryapi.com/api/v1/health"

Expected Response

Response Payload Schema
{
  "status": "ok",
  "service": "US Lottery API",
  "timestamp": "2026-08-03T09:22:00.000Z",
  "version": "1.0.0",
  "endpoints": {
    "lotteries": "/api/v1/lotteries/",
    "lotteryByType": "/api/v1/lotteries/{type}/",
    "health": "/api/v1/health/"
  },
  "supportedTypes": [
    "powerball",
    "mega-millions"
  ]
}