Stats
Income Stats
Earnings per pricing model — all-time (total), last 30 days (monthly, fixed window regardless of from/to), not-yet-released (pending) — plus a daily dataset.
The ppc block is present only when you have PPC offers.
Cached for 15 minutes.
GET
Income statistics
How much you’ve earned, split by pricing model. This is the same data as the Income widget in the partner dashboard.
The response has the panels
total, revshare, cpl and, only if you have PPC offers, ppc. Each panel contains:
Period
from and to accept a Unix timestamp or a Y-m-d date.
- Default: the last 14 days.
- Maximum range: 366 days.
- A
todate in the future is treated as now.
dataset. The total, monthly and pending values stay the same whatever period you pass.
Responses are cached for 15 minutes.
Authorizations
API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.