curl -X POST ${BASE_URL}/top-affiliate-wagers-by-period \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}'
fetch('${BASE_URL}/top-affiliate-wagers-by-period', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
startTimestamp: 1733115600,
endTimestamp: 1743480000,
numUsers: 10
})
});
import requests
url = "${BASE_URL}/top-affiliate-wagers-by-period"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}
response = requests.post(url, headers=headers, json=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "${BASE_URL}/top-affiliate-wagers-by-period");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"startTimestamp" => 1733115600,
"endTimestamp" => 1743480000,
"numUsers" => 10
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
?>
{
"data": [
{
"username": "player123",
"avatar": "https://example.com/avatar.png",
"totalWagered": 15000.50
},
{
"username": "player456",
"avatar": "https://example.com/avatar2.png",
"totalWagered": 12000.75
}
],
"errors": null
}
Endpoints
Top Affiliate Wagers
Get the top wagers for an affiliate within a specified time period
POST
/
top-affiliate-wagers-by-period
curl -X POST ${BASE_URL}/top-affiliate-wagers-by-period \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}'
fetch('${BASE_URL}/top-affiliate-wagers-by-period', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
startTimestamp: 1733115600,
endTimestamp: 1743480000,
numUsers: 10
})
});
import requests
url = "${BASE_URL}/top-affiliate-wagers-by-period"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}
response = requests.post(url, headers=headers, json=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "${BASE_URL}/top-affiliate-wagers-by-period");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"startTimestamp" => 1733115600,
"endTimestamp" => 1743480000,
"numUsers" => 10
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
?>
{
"data": [
{
"username": "player123",
"avatar": "https://example.com/avatar.png",
"totalWagered": 15000.50
},
{
"username": "player456",
"avatar": "https://example.com/avatar2.png",
"totalWagered": 12000.75
}
],
"errors": null
}
Base URL:
BASE_URL (provided upon API key issuance)
Returns a list of top wagers for an affiliate within a specified time period, sorted by total amount wagered.
curl -X POST ${BASE_URL}/top-affiliate-wagers-by-period \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}'
fetch('${BASE_URL}/top-affiliate-wagers-by-period', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
startTimestamp: 1733115600,
endTimestamp: 1743480000,
numUsers: 10
})
});
import requests
url = "${BASE_URL}/top-affiliate-wagers-by-period"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"startTimestamp": 1733115600,
"endTimestamp": 1743480000,
"numUsers": 10
}
response = requests.post(url, headers=headers, json=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "${BASE_URL}/top-affiliate-wagers-by-period");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"startTimestamp" => 1733115600,
"endTimestamp" => 1743480000,
"numUsers" => 10
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_API_KEY",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
?>
{
"data": [
{
"username": "player123",
"avatar": "https://example.com/avatar.png",
"totalWagered": 15000.50
},
{
"username": "player456",
"avatar": "https://example.com/avatar2.png",
"totalWagered": 12000.75
}
],
"errors": null
}
Authentication
This endpoint requires authentication using an API key in the Authorization header.
Authorization: Bearer YOUR_API_KEY
Parameters
Validation Rules
Time Constraints
Time Constraints
- Start timestamp cannot be older than December 2, 2024 (1733115600)
- Both timestamps must be valid Unix timestamps
User Count
User Count
- Must be a valid integer
- Must be greater than 0
- Cannot exceed 100 users
Error Responses
Rate Limits
Rate limits are applied per API key. Please contact support for specific limits.