recomentionDocs
API reference

Read AI-referral visits

Visits from AI engines to the project's site, per engine per day, for the last 7, 30 or 90 days (`?days=`, default 30). Days before the first counted visit are null, not zero. Reads only what is already stored; calls no provider and spends nothing.

GET
/v1/projects/{id}/visits

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Path Parameters

id*string

Query Parameters

days?integer
Default30
Value in73090

Response Body

Visits per engine per day.

application/json
  1. response
visits*
Example Request
curl -X GET 'https://api.recomention.com/v1/projects/string/visits'
Example Response
{  "visits": {    "days": 7,    "from": "string",    "to": "string",    "status": "SNIPPET_NOT_SET_UP",    "measuredFrom": "string",    "engines": [      {        "source": "chatgpt",        "label": "string"      }    ],    "series": [      {        "day": "string",        "total": 0,        "bySource": {          "property1": 0,          "property2": 0        }      }    ],    "totals": {      "total": 0,      "bySource": {        "property1": 0,        "property2": 0      }    },    "topPaths": [      {        "path": "string",        "count": 0      }    ]  }}