Get revenue, cost and ROI across the whole workspace
const url = 'https://example.com/api/v1/analytics/overview/economics?from=2026-02-22T00%3A00%3A00Z&to=2026-03-01T23%3A59%3A59Z&granularity=hour';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/analytics/overview/economics?from=2026-02-22T00%3A00%3A00Z&to=2026-03-01T23%3A59%3A59Z&granularity=hour' \ --header 'Authorization: Bearer <token>'Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Query Parameters
Заголовок раздела «Query Parameters»Example
2026-02-22T00:00:00ZStart date (ISO 8601). Default: 7 days ago
Example
2026-03-01T23:59:59ZEnd date (ISO 8601). Default: now
Responses
Заголовок раздела «Responses»object
Confirmed income only (sale / rebill / upsell); leads and rejected are excluded. A conversion without payout uses its offer payout (fixed-payout offers).
Revenue - cost
(revenue - cost) / cost * 100. Null when cost is 0.
object
(leads + sales) / clicks * 100 — rejected conversions, rebills and upsells are not counted. Null when clicks is 0.
object
Earnings per click: revenue / clicks. Null when clicks is 0.
object
Cost per click: cost / clicks. Null when clicks is 0.
object
Cost per 1000 CLICKS (not impressions — impressions are not tracked). Null when clicks is 0.
object
True when some revenue/cost could not be converted into the base currency (no FX rate on that date) and so ended up in a different currency than the rest. Everything else is converted by the rate of its own date; treat the totals as informational when this is set.
Example generated
{ "from": "example", "to": "example", "clicks": 1, "uniqueClicks": 1, "conversions": 1, "revenue": 1, "cost": 1, "profit": 1, "roi": {}, "cr": {}, "epc": {}, "cpc": {}, "cpm": {}, "mixedCurrencies": true, "workspaceId": "example"}