Access real-time gaming data, manage API keys, configure webhooks, and integrate seamlessly with your applications. Trusted by developers worldwide.
Powerful features designed for developers and businesses
Get instant access to live game results with sub-second latency. Perfect for real-time applications and live updates.
Enterprise-grade security with API key authentication, rate limiting, and DDoS protection.
Simple REST API with comprehensive documentation, SDKs, and code examples in multiple languages.
Receive instant notifications with our webhook system. Configure events and get real-time updates.
Monitor your API usage, track performance, and analyze data with our comprehensive dashboard.
Get help when you need it with our round-the-clock support team and extensive documentation.
Comprehensive coverage of popular gaming categories
Fast-paced lottery with 20s, 5m, and 10m intervals. Real-time results and multiple betting options.
Three-digit lottery with frequent draws. Simple rules with multiple winning combinations.
Five-digit lottery with various prize tiers. Daily draws with large jackpot opportunities.
Blockchain-based gaming with instant payouts. Provably fair and transparent results.
Complete guide to integrating with our API
Welcome to the Sametrend API documentation. This guide will help you integrate our gaming data API into your application.
Make your first API request to test the connection:
curl -X GET "https://api.sametrend.com/v1/games" \ -H "Authorization: Bearer YOUR_API_KEY"
All API requests must include your API key in the Authorization header.
Authorization: Bearer YOUR_API_KEY
You can find your API key in the Developer Dashboard
Retrieve the latest results for a specific game:
GET /v1/games/{game_id}/results
Retrieve historical game results with pagination:
GET /v1/games/{game_id}/history?page=1&limit=50
Set up a webhook to receive real-time notifications:
POST /v1/webhooks
{
"url": "https://yourdomain.com/webhook",
"events": ["result.published", "game.started"]
}
Webhooks allow you to receive real-time notifications when events occur in our system.
result.published - When a new game result is publishedgame.started - When a new game round startsgame.ended - When a game round endsmaintenance.start - When maintenance beginsmaintenance.end - When maintenance ends{
"event": "result.published",
"data": {
"game_id": "wingo",
"round_id": "12345",
"result": "12,34,56,78,90",
"timestamp": "2023-06-15T10:30:00Z"
}
}
To ensure fair usage, API requests are rate limited based on your plan:
Rate limit headers are included in all responses:
X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 995 X-RateLimit-Reset: 1623751200
The API uses standard HTTP status codes and returns detailed error messages:
400 - Bad Request401 - Unauthorized403 - Forbidden404 - Not Found429 - Too Many Requests500 - Internal Server ErrorWe provide official SDKs for popular programming languages to make integration easier:
Install the JavaScript SDK:
npm install sametrend-api
Usage example:
const SametrendAPI = require('sametrend-api');
const client = new SametrendAPI('YOUR_API_KEY');
// Get latest results
client.games.getResults('wingo')
.then(results => console.log(results))
.catch(error => console.error(error));
Install the Python SDK:
pip install sametrend-api
Usage example:
from sametrend import SametrendAPI
client = SametrendAPI(api_key='YOUR_API_KEY')
# Get latest results
results = client.games.get_results('wingo')
print(results)
Install the PHP SDK:
composer require sametrend/api
Usage example:
<?php
require 'vendor/autoload.php';
use Sametrend\API\Client;
$client = new Client('YOUR_API_KEY');
// Get latest results
$results = $client->games->getResults('wingo');
print_r($results);
?>
Real-time status of our API services
Operational
Operational
Operational
Operational
Trusted by developers and businesses worldwide
Join thousands of developers using Sametrend API to power their applications.