API reference
Reports
Bring clicks, installs and revenue into your own systems.
Get link statistics
GET/links/{id}/statsreports:read
Returns clicks and installs for one link. Available on plans with API data access.
| Parameter | Type | Description |
|---|---|---|
days |
integer | Period of 7, 30 or 90 days. Defaults to 30. |
curl -X GET "https://baiocodesolutions.com/api/v1/links/4821/stats?days=30" \
-H "Authorization: Bearer $DEEPBERTH_TOKEN"const response = await fetch("https://baiocodesolutions.com/api/v1/links/4821/stats?days=30", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.DEEPBERTH_TOKEN}`,
},
});
console.log(await response.json());import os, requests
response = requests.get(
"https://baiocodesolutions.com/api/v1/links/4821/stats?days=30",
headers={"Authorization": f"Bearer {os.environ['DEEPBERTH_TOKEN']}"},
)
print(response.status_code, response.json())$response = Http::withToken(env('DEEPBERTH_TOKEN'))
->get('https://baiocodesolutions.com/api/v1/links/4821/stats?days=30');
dump($response->status(), $response->json());200 OK
{
"data": {
"days": 30,
"clicks": 1840,
"bot_clicks": 22,
"installs": 312,
"platforms": [
{
"platform": "ios",
"clicks": 1020
},
{
"platform": "android",
"clicks": 820
}
]
}
}Get a report
GET/reportsreports:read
Returns totals, daily figures, platforms, links, campaigns, events and delivery results.
| Parameter | Type | Description |
|---|---|---|
days |
integer | Period of 7, 30 or 90 days. Defaults to 30. |
app_id |
integer | The app this belongs to, from GET /apps. |
limit |
integer | Number of results. 1 to 100 for links, up to 5000 for report rankings. |
curl -X GET "https://baiocodesolutions.com/api/v1/reports?days=30" \
-H "Authorization: Bearer $DEEPBERTH_TOKEN"const response = await fetch("https://baiocodesolutions.com/api/v1/reports?days=30", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.DEEPBERTH_TOKEN}`,
},
});
console.log(await response.json());import os, requests
response = requests.get(
"https://baiocodesolutions.com/api/v1/reports?days=30",
headers={"Authorization": f"Bearer {os.environ['DEEPBERTH_TOKEN']}"},
)
print(response.status_code, response.json())$response = Http::withToken(env('DEEPBERTH_TOKEN'))
->get('https://baiocodesolutions.com/api/v1/reports?days=30');
dump($response->status(), $response->json());200 OK
{
"data": {
"totals": {
"people": 18400,
"bots": 210,
"installs": 3120,
"attributed": 2710
},
"days": [
{
"date": "2026-11-08",
"label": "Nov 8",
"people": 640,
"bots": 8,
"installs": 104
}
],
"platforms": [
{
"label": "ios",
"value": 10200
}
],
"matches": [
{
"label": "install_referrer",
"value": 1400
}
],
"links": [
{
"url": "link.yourbrand.com/summer",
"title": "Summer sale",
"deleted": false,
"people": 1840,
"installs": 312
}
],
"campaigns": [
{
"name": "summer-2026",
"people": 1840,
"installs": 312
}
],
"events": [
{
"name": "purchase",
"total": 420,
"revenue": 8390.5
}
],
"deliveries": [
{
"label": "delivered",
"value": 980
}
]
}
}Get cohorts
GET/reports/cohortsreports:read
Returns devices, events and USD revenue by install day and days since install. Available on plans with the cohort API.
| Parameter | Type | Description |
|---|---|---|
days |
integer | Period of 7, 30 or 90 days. Defaults to 30. |
app_id |
integer | The app this belongs to, from GET /apps. |
event |
string | Return only this event name. |
curl -X GET "https://baiocodesolutions.com/api/v1/reports/cohorts?days=30&event=purchase" \
-H "Authorization: Bearer $DEEPBERTH_TOKEN"const response = await fetch("https://baiocodesolutions.com/api/v1/reports/cohorts?days=30&event=purchase", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.DEEPBERTH_TOKEN}`,
},
});
console.log(await response.json());import os, requests
response = requests.get(
"https://baiocodesolutions.com/api/v1/reports/cohorts?days=30&event=purchase",
headers={"Authorization": f"Bearer {os.environ['DEEPBERTH_TOKEN']}"},
)
print(response.status_code, response.json())$response = Http::withToken(env('DEEPBERTH_TOKEN'))
->get('https://baiocodesolutions.com/api/v1/reports/cohorts?days=30&event=purchase');
dump($response->status(), $response->json());200 OK
{
"data": [
{
"install_date": "2026-11-01",
"day": 3,
"event_name": "purchase",
"devices": 118,
"event_count": 143,
"revenue_usd": 2841.5
}
]
}