web
GET
https://lucidace.com /v1/projects/{project_id}/web/digest Scope insight:readParameters
project_idstringpathrequireddaysintegerquery1..=90, default 7
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/digest"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"summary": {
"from": "2024-01-01T00:00:00Z",
"highlights": [
{
"current": 0,
"dimension": "string",
"key": "string",
"kind": "string",
"previous": 0,
"score": 0,
"text": "string"
}
],
"overview": {
"current": {
"avg_engagement_time_s": 0,
"avg_events_per_session": 0,
"avg_session_duration_s": 0,
"bounce_rate": 0,
"engaged_sessions": 0,
"engagement_rate": 0,
"pageviews": 0,
"sessions": 0,
"views_per_session": 0,
"visitors": 0
},
"delta": {
"avg_engagement_time_s": 0,
"avg_events_per_session": 0,
"avg_session_duration_s": 0,
"bounce_rate": 0,
"engaged_sessions": 0,
"engagement_rate": 0,
"pageviews": 0,
"sessions": 0,
"views_per_session": 0,
"visitors": 0
},
"precomputed": {
"computed_at": "string",
"through": "2024-01-01T00:00:00Z"
},
"previous": {
"avg_engagement_time_s": 0,
"avg_events_per_session": 0,
"avg_session_duration_s": 0,
"bounce_rate": 0,
"engaged_sessions": 0,
"engagement_rate": 0,
"pageviews": 0,
"sessions": 0,
"views_per_session": 0,
"visitors": 0
}
},
"tables": [
{
"rows": [
{
"avg_session_duration_s": 0,
"bounce_rate": 0,
"key": "string",
"pageviews": 0,
"scroll_depth": 0,
"sessions": 0,
"visitors": 0
}
],
"title": "string"
}
],
"to": "2024-01-01T00:00:00Z"
},
"text": "string"
}Schema
summaryobjectrequiredShow child parameters
fromstringrequiredhighlightsHighlight[]requiredPicked by comparing with the previous period: headline first, then the largest moves.
Show child parameters
currentnumberrequireddimensionstringrequiredBreakdown title (
Referrers, ...); empty for the headline and rates.keystringrequiredkindstringrequiredheadline, gainer, decliner, new or rate.previousnumberrequiredscorenumberrequiredRanking weight: share of the period's visitors that moved (the headline is 1).
textstringrequiredThe sentence shown.
overviewobjectrequiredShow child parameters
currentobjectrequireddeltaOverviewDeltaprecomputedPrecomputedpreviousOverviewtablesSummaryTable[]requiredShow child parameters
rowsBreakdownRow[]requiredtitlestringrequiredtostringrequiredtextstringrequiredPlain-text rendering (what the weekly email sends).
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/dimensions Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/dimensions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Array of WebDimension by name
Example
[
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"name": "string",
"property": "string",
"rules": [
{}
]
}
]Schema
created_atstringrequiredidstringrequiredkindstringrequiredproperty | content_groupnamestringrequiredpropertystringThe pageview property a
property dimension groups by.rulesobject[]requiredOrdered
{group, pattern} rules of a content_group dimension.404
POST
https://lucidace.com /v1/projects/{project_id}/web/dimensions Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
kindstringrequiredproperty groups pageviews by property; content_group by the first matching rule.namestringrequired1 to 60 characters of letters, digits, space,
_ and -; unique in the project.propertystringrulesContentRuleBody[]Show child parameters
groupstringrequiredGroup name, 1 to 80 characters.
patternstringrequiredPage path pattern;
* matches any run of characters, e.g. /blog/*.{
"kind": "string",
"name": "string",
"property": "string",
"rules": [
{
"group": "string",
"pattern": "string"
}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/dimensions" \
-H "Content-Type: application/json" \
-d '{"kind":"string","name":"string","property":"string","rules":[{"group":"string","pattern":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"name": "string",
"property": "string",
"rules": [
{}
]
}Schema
created_atstringrequiredidstringrequiredkindstringrequiredproperty | content_groupnamestringrequiredpropertystringThe pageview property a
property dimension groups by.rulesobject[]requiredOrdered
{group, pattern} rules of a content_group dimension.400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/web/dimensions/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/dimensions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/web/directory Scope insight:readFolder tree of the site with per-folder rollups, parents before children.
Parameters
project_idstringpathrequireddepthintegerqueryfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/directory"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"bounce_rate": 0,
"depth": 0,
"entries": 0,
"pageviews": 0,
"parent": "string",
"path": "string",
"sessions": 0,
"visitors": 0
}
]Schema
bounce_ratenumberShare of those sessions with at most one pageview (0..1); null without entries.
depthintegerrequired0 for the root.
entriesintegerrequiredSessions that started at or below this node.
pageviewsintegerrequiredparentstringParent folder path; null for the root.
pathstringrequired/ for the root, otherwise the folder path without a trailing slash.sessionsintegerrequiredvisitorsintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/goals Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/goals"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Goal, oldest first
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"event": "string",
"id": "string",
"kind": "string",
"name": "string",
"pathname": "string",
"source": {},
"value": 0,
"value_property": "string"
}
],
"next_cursor": "string"
}Schema
dataGoal[]requiredShow child parameters
created_atstringrequiredeventstringEvent name, for
event goals.idstringrequiredkindstringrequiredevent, pageview, action or warehouse.namestringrequiredpathnamestringExact
$pathname, for pageview goals.sourceobjectQuery source of
action / warehouse goals ({"type":"action","id":..} or {"type":"warehouse","table":..,"timestamp_field":..,"distinct_id_field":..}).valuenumberFixed value credited per conversion.
value_propertystringProperty holding the conversion's revenue (not
pageview goals; excludes value).next_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/web/goals Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
distinct_id_fieldstringwarehouse goals: the row column holding the converter's distinct id (else each row is its own converter).kindstringrequiredevent (a custom event name), pageview (an exact path), action (a saved action id) or warehouse (a synced warehouse table name).namestringrequiredtargetstringrequiredEvent name,
$pathname, action id or warehouse table.timestamp_fieldstringwarehouse goals: the row column holding the conversion time (required).valuenumberFixed value credited per conversion (0 to 1e9).
value_propertystringProperty carrying each conversion's revenue (not
pageview goals; not together with value).{
"distinct_id_field": "string",
"kind": "string",
"name": "string",
"target": "string",
"timestamp_field": "string",
"value": 0,
"value_property": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/goals" \
-H "Content-Type: application/json" \
-d '{"distinct_id_field":"string","kind":"string","name":"string","target":"string","timestamp_field":"string","value":0,"value_property":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"event": "string",
"id": "string",
"kind": "string",
"name": "string",
"pathname": "string",
"source": {},
"value": 0,
"value_property": "string"
}Schema
created_atstringrequiredeventstringEvent name, for
event goals.idstringrequiredkindstringrequiredevent, pageview, action or warehouse.namestringrequiredpathnamestringExact
$pathname, for pageview goals.sourceobjectQuery source of
action / warehouse goals ({"type":"action","id":..} or {"type":"warehouse","table":..,"timestamp_field":..,"distinct_id_field":..}).valuenumberFixed value credited per conversion.
value_propertystringProperty holding the conversion's revenue (not
pageview goals; excludes value).400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/web/goals/candidates Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/goals/candidates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Custom events by volume (at most 20)
Example
[
{
"event": "string",
"events": 0,
"is_goal": true,
"persons": 0,
"utm_coverage": 0
}
]Schema
eventstringrequiredeventsintegerrequiredis_goalbooleanrequiredAlready a goal.
personsintegerrequiredutm_coveragenumberShare of the event's sessions that arrived with a
utm_source (0..1).400
404
503
Updated