Skip to main content
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
}'
{
  "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
}'
{
  "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

startTimestamp
number
required
Unix timestamp (in seconds) for the start of the period
endTimestamp
number
required
Unix timestamp (in seconds) for the end of the period
numUsers
number
required
Number of top wagers to return (1-100)

Validation Rules

  • Start timestamp cannot be older than December 2, 2024 (1733115600)
  • Both timestamps must be valid Unix timestamps
  • Must be a valid integer
  • Must be greater than 0
  • Cannot exceed 100 users

Error Responses

401
string
Unauthorized - Invalid or missing API key
400
string
Bad Request - Invalid parameters or validation errors
429
string
Rate Limit Exceeded - Too many requests

Rate Limits

Rate limits are applied per API key. Please contact support for specific limits.