Earnings
/api/v1/earningsPull your earnings programmatically. Same Bearer token as the ad endpoints: no separate stats key. Aggregates impressions, clicks, and earnings over a recent window, with optional per-platform scoping and a per-day breakdown. Impressions and earnings are also split by creative format (image vs text).
Authentication
Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Query parameters
| Field | Type | Description |
|---|---|---|
platform_id | string | Scope to a single platform (plt_…). Omit to aggregate across all platforms owned by the API key's publisher. |
days | number | Integer from 1 to 90. Default: 30. Current reports can include the day before period.from. |
Example
curl "https://sidekick-ads.com/api/v1/earnings?platform_id=plt_xxx&days=7" \-H "Authorization: Bearer sk_live_xxxxx"
Response
{"publisher_id": 50,"scope": "platform","platform": {"public_id": "plt_xxx","name": "AI Chat Companion","type": "telegram"},"period": {"from": "2026-05-08","to": "2026-05-14","days": 7},"total": {"impressions": 2561,"image_impressions": 320,"text_impressions": 2241,"clicks": 40,"ctr": 1.5619,"earnings_micro": 8195200,"earnings_usd": 8.1952,"image_earnings_micro": 1920000,"image_earnings_usd": 1.92,"text_earnings_micro": 6275200,"text_earnings_usd": 6.2752,"earnings_rub_micro": 0,"earnings_rub": 0,"image_earnings_rub_micro": 0,"image_earnings_rub": 0,"text_earnings_rub_micro": 0,"text_earnings_rub": 0,"thinking": {"impressions": 120,"clicks": 2,"earnings_micro": 360000,"earnings_usd": 0.36,"earnings_rub_micro": 0,"earnings_rub": 0}},"daily": [{"day": "2026-05-13","impressions": 1200,"image_impressions": 0,"text_impressions": 1200,"clicks": 18,"earnings_micro": 3840000,"earnings_usd": 3.84,"image_earnings_micro": 0,"image_earnings_usd": 0,"text_earnings_micro": 3840000,"text_earnings_usd": 3.84,"earnings_rub_micro": 0,"earnings_rub": 0,"image_earnings_rub_micro": 0,"image_earnings_rub": 0,"text_earnings_rub_micro": 0,"text_earnings_rub": 0,"thinking": {"impressions": 50,"clicks": 1,"earnings_micro": 150000,"earnings_usd": 0.15,"earnings_rub_micro": 0,"earnings_rub": 0}},{"day": "2026-05-14","impressions": 1361,"image_impressions": 320,"text_impressions": 1041,"clicks": 22,"earnings_micro": 4355200,"earnings_usd": 4.3552,"image_earnings_micro": 1920000,"image_earnings_usd": 1.92,"text_earnings_micro": 2435200,"text_earnings_usd": 2.4352,"earnings_rub_micro": 0,"earnings_rub": 0,"image_earnings_rub_micro": 0,"image_earnings_rub": 0,"text_earnings_rub_micro": 0,"text_earnings_rub": 0,"thinking": {"impressions": 70,"clicks": 1,"earnings_micro": 210000,"earnings_usd": 0.21,"earnings_rub_micro": 0,"earnings_rub": 0}}]}
earnings_micro is what you actually got paid in micro-USD (1 USD = 1,000,000 micro). earnings_usd is provided for human reading. image_* and text_* fields split impressions and earnings by the creative format of the ad shown: image creatives typically pay a higher per-impression rate. Historical events from before image ads existed all count as text. Image and text impressions add up to the total impression count. Earnings by format include payments for impressions. Total earnings can include other payments. The daily array only contains days with activity: zero-volume days are omitted. When no platform_id is passed, scope is "all" and platform is null.
earnings_rub_micro and earnings_rub are earnings from campaigns billed in rubles, in micro-RUB (1 RUB = 1,000,000 micro) and in rubles respectively, split by format in image_earnings_rub(_micro) and text_earnings_rub(_micro) like the dollar fields. They are never included in the dollar fields; impressions and clicks count both currencies.
thinking is the Thinking Ads share of the same numbers, in total and in each day. It is already included in the overall impressions, clicks and earnings, and in the same image/text buckets by campaign format (Thinking campaigns are currently cards, i.e. text). A paid card counts as one whole impression even when only part of the price was paid; unpaid cards (ad under 2 seconds, not_sent, finish after 4 minutes or no finish) are not counted. Earnings appear after the first accepted finish, usually within 4 minutes of issuance and sometimes a few minutes later, and are recorded at the card's issuance time. The last ~10 minutes of Thinking data are therefore incomplete, and figures for past minutes can still grow. Days are UTC. Requests without an ad are not in the report: compute fill from your own /api/v1/ad/thinking calls.
Error responses
| Status | Meaning |
|---|---|
400 | Invalid days (integer 1-90) or malformed platform_id (must start with plt_). |
401 | Invalid or missing API key. |
404 | platform_id doesn't exist or doesn't belong to this account. |
503 | The earnings report is temporarily unavailable. Retry the request later. |