API reference
Read revenue by source
The Revenue by source page's numbers for the last 7, 30 or 90 days (`?days=`, default 30): conversions your site reported through the snippet, by source group (AI assistants, posts, short links and any later group), and Link Studio conversions your server verified, kept apart. Revenue is per currency, as sent, never converted. A rate appears only when its visits or clicks were measured. status says why there are no conversions. Reads only what is already stored; calls no provider and spends nothing.
GET
apiKeyheader
AuthorizationBearer <token>An API key (rmk_…).
id*stringdays?integerDefault
30Value in
73090Revenue by source.
application/json- response
revenue*curl -X GET 'https://api.recomention.com/v1/projects/string/revenue'Example Response
{ "revenue": { "days": 7, "since": "string", "domain": "string", "status": "NO_SNIPPET", "reported": { "total": { "conversions": 0, "revenue": [ { "currency": "string", "amount": "string", "formatted": "string" } ], "withoutValue": 0 }, "groups": [ { "key": "string", "label": "string", "denominator": "visits", "truncated": true, "rows": [ { "key": "string", "label": "string", "detail": "string", "denominator": 0, "conversions": 0, "conversionRate": 0, "revenue": [ { "currency": "string", "amount": "string", "formatted": "string" } ], "withoutValue": 0 } ] } ], "direct": { "conversions": 0, "revenue": [ { "currency": "string", "amount": "string", "formatted": "string" } ], "withoutValue": 0 } }, "verified": { "total": { "conversions": 0, "revenue": [ { "currency": "string", "amount": "string", "formatted": "string" } ], "withoutValue": 0 }, "rows": [ { "key": "string", "label": "string", "detail": "string", "denominator": 0, "conversions": 0, "conversionRate": 0, "revenue": [ { "currency": "string", "amount": "string", "formatted": "string" } ], "withoutValue": 0 } ], "truncated": true } }}