💻 Developers · LotterySpy.com

Build with LotterySpy

Build powerful applications with LotterySpy through our developer API. Access approved historical lottery data and analytical resources, integrate LotterySpy research capabilities into your own applications, and create new digital experiences using the platform’s growing developer ecosystem.

Getting Started

From your first idea to your first API request

Four simple steps to connect your application with the LotterySpy developer platform and start working with the resources available to you.

1

Create your developer account

Register your developer account and confirm your email address to access the tools, documentation, and resources available to developers.

2

Generate your API key

Create an API key from your developer dashboard and configure the access required for the LotterySpy resources your application will use.

3

Make your first request

Authenticate your application, send your first API request, and explore the response using the endpoint documentation and examples provided.

4

Build, test, and scale

Handle responses and errors correctly, respect applicable usage limits, test your integration thoroughly, and prepare your application for production.

Authentication

Authentication & access

Authentication methods, API credentials, access scopes, and environments are provided according to the current developer service. Contact LotterySpy to confirm the live specification before integrating.

cURL
curl "https://www.lotteryspy.com/statistics/percentageApi" \
  -H "Authorization: Bearer YOUR_API_KEY"

The current LotterySpy Percentage API is available through the live /statistics/percentageApi endpoint. Use the credentials issued for your developer account and never expose private API credentials in browser-side code.

Live API

LotterySpy Percentage API

The LotterySpy Percentage API exposes the same historical Percentage report used by the LotterySpy platform. Developers can request the report as structured JSON or retrieve the widget version for display in an external application.

GET · JSON
https://www.lotteryspy.com/statistics/percentageApi
GET · Widget
https://www.lotteryspy.com/statistics/percentageApi?format=widget
cURL
curl "https://www.lotteryspy.com/statistics/percentageApi" \\
  -H "Authorization: Bearer YOUR_API_KEY"
cURL · Widget
curl "https://www.lotteryspy.com/statistics/percentageApi?format=widget" \\
  -H "Authorization: Bearer YOUR_API_KEY"

Supported Query Parameters

ParameterTypeDescription
game_dbstring LotterySpy game database identifier. The current Percentage implementation defaults to gh_monday_special_nt when omitted.
startEventinteger First historical event to include. The current implementation defaults to 1.
EndEventinteger Last historical event to include. When omitted, the API uses the latest available event.
formatstring Use widget to return the visual LotterySpy Percentage report instead of JSON.

JSON Response

A successful JSON response includes the API version, selected game, requested event range, current event, total draws, and the rendered Percentage report in the widget field.

Visual Widget

The widget endpoint returns a complete HTML document so the Percentage table can run in its own CSS and JavaScript environment. This is the recommended method when an integration needs the LotterySpy visual presentation rather than rebuilding the interface from JSON.

Example Embed
<script
    src="https://www.lotteryspy.com/embed/percentage.js"
    data-api="https://www.lotteryspy.com/statistics/percentageApi?format=widget"
    data-game="gh_monday_special_nt">
</script>

For external websites, the embed script loads the LotterySpy report in an isolated iframe so the report can retain its own table styling, fonts, DataTables behaviour, and responsive layout.

Developer Resources

LotterySpy capabilities

Explore the platform capabilities developers may be able to integrate. Live endpoints, fields, authentication, and quotas are provided only when confirmed.

📊 Historical Results

Build applications and research tools using LotterySpy historical draw-result data where API access is enabled for your account.

Documentation

📈 Statistics & Analytics

Integrate LotterySpy statistical and historical-analysis capabilities into applications, research projects, and data-driven experiences. The current live Percentage API is available through the Statistics API endpoint.

Documentation

Timing Keys

Explore historical interval and timing analysis through developer integrations where Timing Key capabilities are supported.

Documentation

🔍 Patterns & Analysis

Bring selected LotterySpy historical pattern-analysis capabilities into your own applications and research workflows where supported.

Documentation

🔮 Forecasters

Connect approved applications with publicly available LotterySpy Forecaster information where developer access is supported.

Documentation

🎯 Predictions

Integrate published LotterySpy prediction information into approved applications where the relevant developer capability is available.

Documentation

📊 Historical Results

Build applications and research tools using LotterySpy historical draw-result data where API access is enabled for your account.

Documentation

About this resource

Historical results form one of the core data foundations of the LotterySpy platform. Depending on your approved access, available resources may include draw results, game identifiers, dates, filtering, pagination, and related historical fields. The currently published Percentage API is available through LotterySpy's Statistics endpoint; additional historical-result endpoints should be confirmed against the live developer service before integration.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment

📈 Statistics & Analytics

Integrate LotterySpy statistical and historical-analysis capabilities into applications, research projects, and data-driven experiences. The current live Percentage API is available through the Statistics API endpoint.

Documentation

About this resource

LotterySpy statistical capabilities may include frequency, occurrence, intervals, positional analysis, comparative measures, and other historical research metrics. Calculation definitions, available fields, supported parameters, and response structures should be verified against the current API documentation before integration.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment

⏰ Timing Keys

Explore historical interval and timing analysis through developer integrations where Timing Key capabilities are supported.

Documentation

About this resource

Timing Keys are part of LotterySpy's historical-analysis framework and are designed to help researchers examine historical intervals, recurrence, and timing-related observations. Available endpoints, filters, response structures, and integration permissions depend on the live developer implementation.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment

🔍 Patterns & Analysis

Bring selected LotterySpy historical pattern-analysis capabilities into your own applications and research workflows where supported.

Documentation

About this resource

LotterySpy pattern-analysis capabilities are intended for studying historical observations, relationships, repetitions, and analytical signals within available data. These outputs represent historical research information and should not be presented as guaranteed predictions of future lottery outcomes. Exact capabilities and response definitions should be confirmed through the current developer documentation.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment

🔮 Forecasters

Connect approved applications with publicly available LotterySpy Forecaster information where developer access is supported.

Documentation

About this resource

Forecaster resources may provide access to publicly presented information such as forecaster profiles, published information, and performance-related data where those resources are made available through the developer platform. The specific fields and permissions available to each integration depend on the approved API access.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment

🎯 Predictions

Integrate published LotterySpy prediction information into approved applications where the relevant developer capability is available.

Documentation

About this resource

Published predictions are presented as part of LotterySpy's broader research and forecasting ecosystem. They must not be represented as guaranteed lottery outcomes. Developers integrating this information are expected to preserve LotterySpy's standards of transparency, responsible presentation, and clear distinction between historical analysis, forecasts, and future uncertainty.

Integration checklist

Before you build
Confirm resource availability
			Confirm authentication and access scope
			Confirm endpoint and request parameters
			Confirm response schema and usage limits
			Test against the current developer environment
Access & Usage

Usage Limits & Access Tiers

LotterySpy Developer access is designed to support different stages of integration, from evaluation and development to production deployments and strategic partnerships. Availability, request limits, quotas, commercial terms, and additional access requirements may vary by integration and are confirmed as part of the developer access process.

Evaluation
Request Access
Explore whether the LotterySpy Developer Platform is suitable for your application, research project, or proposed integration.
Partner
Custom Access
Designed for strategic integrations, higher-volume requirements, specialised use cases, or partnerships that may require tailored access and technical support.
Reference

Error codes

Common HTTP status codes that an integration may encounter. The exact response body should be confirmed against the current API specification.

StatusMeaningDescription
200OKThe request was successfully received and processed.
400Bad RequestThe request could not be processed because one or more submitted parameters are invalid, missing, or incorrectly formatted.
401UnauthorizedAuthentication is required, or the credentials provided with the request are missing, invalid, or no longer valid.
403ForbiddenThe request was understood, but the authenticated application or account does not have permission to access the requested resource.
404Not FoundThe requested endpoint, resource, or record could not be found.
429Too Many RequestsThe client has exceeded an applicable request or usage limit. Reduce the request rate and try again according to the applicable access policy.
500Internal Server ErrorAn unexpected error occurred while processing the request. If the problem persists, contact LotterySpy developer support with the relevant request details.
Tooling

Build with your preferred stack

Use the language and HTTP tooling that fits your application. Official SDK availability should be confirmed with LotterySpy before being described as supported.

cURL pattern
curl "https://www.lotteryspy.com/statistics/percentageApi" \
  -H "Authorization: Bearer YOUR_API_KEY"
JavaScript pattern
const res = await fetch(
  "https://www.lotteryspy.com/statistics/percentageApi",
  {
    headers: {
      Authorization: "Bearer YOUR_API_KEY"
    }
  }
);

const data = await res.json();
Python pattern
import requests

res = requests.get(
    "https://www.lotteryspy.com/statistics/percentageApi",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)

data = res.json()
PHP pattern
$ch = curl_init(
    "https://www.lotteryspy.com/statistics/percentageApi"
);

curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer YOUR_API_KEY"
]);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$data = json_decode(curl_exec($ch), true);

curl_close($ch);
Developer Support

Let's Build Something Useful

Have an idea for an integration, need access to the LotterySpy Developer Platform, or interested in building a strategic partnership? We're here to help you understand the platform, explore available capabilities, clarify technical requirements, and identify the right path for your project. Contact our team before you begin development so we can confirm current API availability, supported resources, access requirements, and integration guidelines.

📧 Developer Support

Need developer access or questions about authentication, integrations, available resources, or technical requirements? Our Developer Support team is here to help you get started, understand the platform, and guide you through the integration process from initial access to implementation.

developers@lotteryspy.com

📜 Terms & Policies

Developer integrations must comply with LotterySpy applicable terms, privacy and data-protection requirements. Developers are expected to use our platform resources responsibly and uphold LotterySpy's standards of integrity, transparency, and security.

Review Developer Terms →

📡 Platform Updates

The LotterySpy Developer Platform will continue to evolve. API capabilities, documentation, access requirements, usage limits, and supported resources may change as the platform grows. Contact us for current information about developer availability and integration updates.

Contact Developer Support →
What is LotterySpy?      Does LotterySpy increase my odds of winning?      What is a "Banker" number on LotterySpy?      What is "10 Permutations" in LotterySpy?      What is the Smart Tools on LotterySpy?      Can I search the Smart Tools by a date range?      What is a "forecaster" on LotterySpy?      How is forecaster accuracy measured?      How do I create a LotterySpy account?      Is my personal information secure with LotterySpy?      How are lottery numbers actually drawn?      What is the "gambler's fallacy"?      Can lottery software eliminate risk?      Is it possible to "beat" the lottery with data analysis?      How does LotterySpy compare to manually tracking results in a notebook?      What should I be skeptical of when evaluating lottery software claims?      Why am I seeing an error message on LotterySpy?      What is the world's oldest recorded lottery?      📚 Foundations, Philosophy, and User Guide      📚 Complete Tool Reference      📚 Standard Deviation and Variance in Lottery Data      📚 Sample Size and Why It Changes Everything      📚 Multiple Comparisons and False Positives      📚 Historical Research Methodology      📚 Professional Forecasters Handbook      📚 Human-in-the-Loop Review      📚 Historical Case Studies and Practical Workshops      📚 Certification Tracks Overview      📚 Complete Reference Library