Stats
Use campaign statistics for individual rows, totals for account summaries and analytics for rankings by currency. Choose a rolling window or a custom date and hour range. Record the time range with exported figures.
Three endpoints, from detailed to summary. All return data per cabinet, for every cabinet the key reaches.
| Endpoint | Returns |
|---|---|
GET /v1/stats | every campaign’s numbers for the period |
GET /v1/stats/total | each cabinet’s totals plus chart points |
GET /v1/stats/analytics | totals split by currency, chart, top campaigns |
One campaign over a period: GET /v1/campaigns/{ad_id}/history.
Periods
period | Window |
|---|---|
1d | last 24 hours (default for /stats and /stats/total) |
7d | last 7 days |
30d | last 30 days (default for /stats/analytics) |
all | all time |
custom | startDate and endDate (YYYY-MM-DD), optionally startHour and endHour (0–23) |
Any <N>h or <N>d also works (6h, 14d, up to 365 days). An unrecognised value is read as the last 24 hours — it doesn’t return an error, so check your spelling. All times are UTC.
# 14:00–15:59 UTC on 8 October
curl -s "https://orbitoads.pro/api/v1/stats?period=custom&startDate=2026-10-08&endDate=2026-10-08&startHour=14&endHour=15" \
-H "X-API-Key: $ORBITO_API_KEY"GET /v1/stats
Per campaign, nested by cabinet: data[account_id][ad_id].
{
"success": true,
"data": {
"53": {
"90412": { "views": 640, "clicks": 7, "actions": 3, "spent": 0.96, "ctr": 1.09, "cpm": 1.5, "cpa": 0.32, "group_id": 7 }
}
},
"meta": { "period": "7d" }
}Keys are strings; values here are numbers (unlike the campaign object). cpa is spend per action; ctr is a percentage.
GET /v1/stats/total
The dashboard endpoint: totals and a chart for each cabinet.
{
"success": true,
"data": {
"accounts": {
"53": {
"chart": [
{ "label": "2026-10-08 12:00", "views": 52, "clicks": 1, "spent": 0.83, "budget": 4.95, "ctr": 1.92, "cpc": 0.83, "cpm": 16 }
],
"totals": {
"views": 121, "clicks": 3, "spent": 1.81, "ctr": 2.48, "cpc": 0.6, "cpm": 14.95,
"campaigns": 4, "active": 2, "stopped": 2, "declined": 0,
"totalBudget": 5.21, "totalSpentAllTime": 2.79
},
"cabinetType": "euro"
}
},
"period": "1d",
"lastUpdated": "2026-10-08T10:02:54.016Z"
},
"meta": { "period": "1d" }
}chart points are hourly or daily depending on the period. cabinetType gives the currency (euro → EUR, ton → TON, stars → Stars).
GET /v1/stats/analytics
Like /stats/total, plus spend split by currency and the top campaigns.
{
"success": true,
"data": {
"accounts": {
"53": {
"chart": [ { "label": "2026-10-08 12:00", "views": 52, "clicks": 1, "spent": 0.83,
"spent_ton": 0, "spent_euro": 0.83, "spent_stars": 0, "ctr": 1.92, "cpc": 0.83, "cpm": 16 } ],
"totals": { "views": 121, "clicks": 3, "spent": 1.81,
"spentByCurrency": { "ton": 0, "euro": 1.81, "stars": 0 },
"ctr": 2.48, "cpc": 0.6, "cpm": 14.95 },
"topCampaigns": [ { "ad_id": 90412, "account_id": 53, "title": "API test", "status": "Active",
"views": 58, "clicks": 1, "actions": 1, "spent": 0.85,
"ctr": 1.72, "cpc": 0.85, "cpm": 14.66, "cpa": 0.85 } ]
}
}
},
"meta": { "period": "30d" }
}Notes
- Stats follow Telegram’s own counters, synced to Orbito Ads regularly; the newest hour fills in as syncs arrive.
- Never add up
spentacross cabinets with different currencies. - For conversions you track yourself (leads, deposits, sales) see Conversions — Telegram’s
actionsare joins and bot starts, not your conversions. - Prefer the hourly digest webhook over polling stats every few minutes.
API reference
The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.
GET /api/v1/stats
Read period metrics keyed by account and campaign.
| Parameter | Location | Format | Required |
|---|---|---|---|
period | query | string | — |
startDate | query | string | — |
endDate | query | string | — |
startHour | query | integer | — |
endHour | query | integer | — |
X-API-Key | header | string | Yes |
curl -X GET 'https://orbitoads.pro/api/v1/stats?period=7d' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"success": true,
"data": {
"7401": {
"38017": {
"views": 3200,
"clicks": 32,
"actions": 4,
"spent": 4,
"ctr": 1,
"cpm": 1.25,
"cpa": 1,
"group_id": 516
}
}
},
"meta": {
"period": "7d"
}
}GET /api/v1/stats/total
Read account totals and chart points for the selected interval.
| Parameter | Location | Format | Required |
|---|---|---|---|
period | query | string | — |
startDate | query | string | — |
endDate | query | string | — |
startHour | query | integer | — |
endHour | query | integer | — |
X-API-Key | header | string | Yes |
curl -X GET 'https://orbitoads.pro/api/v1/stats/total?period=7d' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"success": true,
"data": {
"accounts": {
"7401": {
"chart": [
{
"label": "2026-11-03",
"views": 3200,
"clicks": 32,
"spent": 4,
"budget": 36,
"ctr": 1,
"cpc": 0.125,
"cpm": 1.25
}
],
"totals": {
"views": 3200,
"clicks": 32,
"spent": 4,
"ctr": 1,
"cpc": 0.125,
"cpm": 1.25,
"campaigns": 1,
"active": 1,
"stopped": 0,
"declined": 0,
"totalBudget": 36,
"totalSpentAllTime": 4
},
"cabinetType": "euro"
}
},
"period": "7d",
"lastUpdated": "2026-11-03T12:00:00Z"
},
"meta": {
"period": "7d"
}
}GET /api/v1/stats/analytics
Retrieve currency splits, chart data and ranked campaigns.
| Parameter | Location | Format | Required |
|---|---|---|---|
period | query | string | — |
startDate | query | string | — |
endDate | query | string | — |
startHour | query | integer | — |
endHour | query | integer | — |
X-API-Key | header | string | Yes |
curl -X GET 'https://orbitoads.pro/api/v1/stats/analytics?period=custom&startDate=2026-11-03&endDate=2026-11-03&startHour=8&endHour=17' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"success": true,
"data": {
"accounts": {
"7401": {
"chart": [
{
"label": "2026-11-03",
"views": 3200,
"clicks": 32,
"spent": 4,
"ctr": 1,
"cpc": 0.125,
"cpm": 1.25,
"spent_ton": 0,
"spent_euro": 4,
"spent_stars": 0
}
],
"totals": {
"views": 3200,
"clicks": 32,
"spent": 4,
"spentByCurrency": {
"euro": 4,
"ton": 0,
"stars": 0
},
"ctr": 1,
"cpc": 0.125,
"cpm": 1.25
},
"topCampaigns": [
{
"views": 3200,
"clicks": 32,
"actions": 4,
"spent": 4,
"ctr": 1,
"cpm": 1.25,
"cpa": 1,
"account_id": 7401,
"ad_id": 38017,
"title": "Conversation club · November",
"status": "Active",
"cpc": 0.125
}
]
}
}
},
"meta": {
"period": "custom"
}
}Implementation notes
Balances and currencies
Read currency, balance_updated_at and min_budget for every account. Amounts and rates in campaign objects can be decimal strings or null. Reporting aggregates use numbers. Keep EUR, TON and Stars totals separate.
Periods and UTC hours
period accepts 1d, 7d, 30d, all, custom and supported Nh or Nd windows up to 365 days. For custom use startDate and endDate, optionally startHour/endHour at 0–23 UTC. Stats and totals default to 1d, analytics to 30d.
Interpreting actions
actions records platform events such as a channel join or bot start. Use the conversions resource for your tracker’s leads, purchases and revenue. /stats/analytics includes a chart, totals and topCampaigns per account.
Operations and fields
GET /api/v1/stats GET /api/v1/stats/total GET /api/v1/stats/analytics 1d 7d 30d all custom
- GET /api/v1/stats
- GET /api/v1/stats/total
- GET /api/v1/stats/analytics
- 1d
- 7d
- 30d
- all
- custom
Request example
GET /api/v1/stats/total?period=7d HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}
Schema fields and limits
This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.
Protocol reference
| Method | Route | Parameters | Request content | Response codes |
|---|---|---|---|---|
| GET | /api/v1/stats | period, startDate, endDate, startHour, endHour | — | 200, 401, 429 |
| GET | /api/v1/stats/total | period, startDate, endDate, startHour, endHour | — | 200, 401, 429 |
| GET | /api/v1/stats/analytics | period, startDate, endDate, startHour, endHour | — | 200, 401, 429 |
| GET | /api/v1/campaigns/{ad_id}/history | ad_id, account_id, period, startDate, endDate, startHour, endHour | — | 200, 400, 401, 404 |
Source · Data source
Schema fields and limits · Campaign and account statistics
| Field | Documented value |
|---|---|
| period | 1d, 7d, 30d, all, custom |
| startDate, endDate | YYYY-MM-DD |
| startHour, endHour | 0 … 23 |
| /stats | 1d |
| /stats/analytics | 30d |
Source · Data source
StatsNumbers
| Field | Field type |
|---|---|
| views | number |
| clicks | number |
| actions | number |
| spent | number |
| ctr | number |
| cpm | number |
| cpa | number |
| group_id | integer | null |
Source · Data source
Reference revision