curl --request GET \
--url https://api.winwinkit.com/analytics/affiliates \
--header 'x-api-key: <x-api-key>'const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.winwinkit.com/analytics/affiliates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"from": "2026-01-01",
"to": "2026-03-31",
"totals": {
"claims": 120,
"conversions": 34,
"revenue": 249900,
"earnings": 49980
},
"affiliates": [
{
"id": "2772aded-9009-474c-a368-c887dda45b01",
"name": "Jane Doe",
"accepted_at": "2026-01-01T00:00:00.000Z",
"status": "approved",
"totals": {
"claims": 120,
"conversions": 34,
"revenue": 249900,
"earnings": 49980
}
}
],
"pagination": {
"limit": 100,
"offset": 0,
"total": 512,
"has_more": true
}
}
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}Get Affiliate Analytics
Returns the project affiliates with their totals for a period, oldest joiner first. Affiliates with no activity in the period are omitted. Note 1: this endpoint is only accessible with a secret API key. Note 2: a period may span at most 90 days; request a longer window a period at a time. Note 3: up to 100 affiliates are returned per request; page through the rest with offset.
curl --request GET \
--url https://api.winwinkit.com/analytics/affiliates \
--header 'x-api-key: <x-api-key>'const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.winwinkit.com/analytics/affiliates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"from": "2026-01-01",
"to": "2026-03-31",
"totals": {
"claims": 120,
"conversions": 34,
"revenue": 249900,
"earnings": 49980
},
"affiliates": [
{
"id": "2772aded-9009-474c-a368-c887dda45b01",
"name": "Jane Doe",
"accepted_at": "2026-01-01T00:00:00.000Z",
"status": "approved",
"totals": {
"claims": 120,
"conversions": 34,
"revenue": 249900,
"earnings": 49980
}
}
],
"pagination": {
"limit": 100,
"offset": 0,
"total": 512,
"has_more": true
}
}
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}Headers
The secret API key.
Query Parameters
How many affiliates to return, from 10 to 100.
10 <= x <= 100100
How many affiliates to skip before the page.
x >= 00
The first day of the period, inclusive, as YYYY-MM-DD (UTC).
"2026-01-01"
The last day of the period, inclusive, as YYYY-MM-DD (UTC). Must not be before from, and the period must be at most 90 days long.
"2026-03-31"
Response
The page of affiliates and their totals for the period.
Show child attributes
Show child attributes