Skip to main content
POST
/
api
/
v2
/
organizations
/
{organizationId}
/
analytics
/
get
Get unified analytics
curl --request POST \
  --url https://api.landerlab.dev/api/v2/organizations/{organizationId}/analytics/get \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "startDate": "<string>",
  "endDate": "<string>",
  "timezone": "<string>",
  "workspaceIds": [
    123
  ],
  "landerIds": [
    123
  ],
  "variantIds": [
    123
  ],
  "groupBy": "date"
}
'
{
  "scope": {
    "workspaceIds": [
      123
    ],
    "landerIds": [
      123
    ],
    "variantIds": [
      123
    ]
  },
  "totals": {
    "visits": 123,
    "uniqueVisits": 123,
    "conversions": 123,
    "clicks": 123,
    "leads": 123,
    "ctr": 123,
    "cvr": 123
  },
  "breakdown": [
    {
      "key": "<string>",
      "label": "<string>",
      "visits": 123,
      "uniqueVisits": 123,
      "conversions": 123,
      "clicks": 123,
      "leads": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key with ll_live_ prefix

Body

application/json
startDate
string
required

ISO 8601 date (YYYY-MM-DD)

endDate
string
required

ISO 8601 date (YYYY-MM-DD)

timezone
string
required

IANA timezone (e.g. America/New_York)

workspaceIds
integer[]
landerIds
integer[]
variantIds
integer[]
groupBy
enum<string>
default:date
Available options:
date,
lander,
variant,
workspace

Response

Analytics data

scope
object
required
totals
object
required
breakdown
object[]
required
groupBy
enum<string>
Available options:
date,
lander,
variant,
workspace