Earnings
What agents paid on your priced pages.
/earningsNeeds earnings:read. One row per page rule on the dashboard’s Earnings page, with what agents paid by card and in crypto.
Amounts are in US dollars, at the prices you set. Crypto lands in your balance in full; your share of card payments is paid out monthly. A testing rule charges nothing, and would_have_earned_usd shows what its price would have taken. A deleted rule keeps its earnings, with status deleted.
Authorization
apiKey An API key (d3_k_…) from the dashboard’s API keys page.
In: header
Query Parameters
How far back to count, ending now.
"7d"Value in
- "1h"
- "24h"
- "7d"
- "30d"
One site (example.com also counts www.example.com), or *.example.com for every host under the domain. Omit for every site.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/earnings"{ "window": "7d", "host": null, "card_usd": 0, "crypto_usd": 0, "data": [ { "rule_id": "4f0c2a9e-1b7d-4e55-9a10-6c3f2d8b7e21", "host": "example.com", "path": "/articles", "status": "testing", "requests": 0, "card_usd": 0, "crypto_usd": 0, "would_have_earned_usd": 0 } ]}