recomentionDocs
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
/v1/projects/{id}/revenue

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Path Parameters

id*string

Query Parameters

days?integer
Default30
Value in73090

Response Body

Revenue by source.

application/json
  1. response
revenue*
Example Request
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    }  }}