web
GET
https://lucidace.com /v1/projects/{project_id}/live/bots Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/live/bots"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"bots": [
{
"category": "string",
"name": "string",
"requests": 0,
"share": 0
}
],
"minutes": [
{
"bot_requests": 0,
"minute_ms": 0,
"total_requests": 0
}
]
}Schema
botsLiveBot[]requiredBusiest first (at most 10).
Show child parameters
categorystringrequirednamestringrequiredrequestsintegerrequiredsharenumberrequiredShare of all bot requests in the window, 0..1.
minutesLiveBotMinute[]requiredOldest first; minutes without traffic are absent.
Show child parameters
bot_requestsintegerrequiredminute_msintegerrequiredMinute start, Unix ms.
total_requestsintegerrequired404
503
GET
https://lucidace.com /v1/projects/{project_id}/path-cleaning-rules Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/path-cleaning-rules"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"apply_to_filters": true,
"max_rules": 0,
"rules": [
{
"kind": "string",
"pattern": "string",
"replacement": "string"
}
]
}Schema
apply_to_filtersbooleanrequiredmax_rulesintegerrequiredrulesPathRuleView[]requiredShow child parameters
kindstringrequiredpatternstringrequiredreplacementstringrequired404
PUT
https://lucidace.com /v1/projects/{project_id}/path-cleaning-rules Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
apply_to_filtersbooleanAlso match
$pathname filters, funnel steps, heatmap and form pages in their cleaned form (a page matches raw or cleaned). Omitted = unchanged (default on).rulesPathRuleView[]requiredShow child parameters
kindstringrequiredpatternstringrequiredreplacementstringrequired{
"apply_to_filters": true,
"rules": [
{
"kind": "string",
"pattern": "string",
"replacement": "string"
}
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/path-cleaning-rules" \
-H "Content-Type: application/json" \
-d '{"apply_to_filters":true,"rules":[{"kind":"string","pattern":"string","replacement":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400 Invalid, non-linear or too many rules
403
404
POST
https://lucidace.com /v1/projects/{project_id}/path-cleaning-rules/ops Scope insight:readParameters
project_idstringpathrequiredRequest body
application/json
dry_runbooleanPreview only: nothing is saved (default false).
opsPathRuleOp[]requiredApplied in order (at most 50).
{
"dry_run": true,
"ops": [
{
"op": "append",
"rule": {
"kind": "string",
"pattern": "string",
"replacement": "string"
}
}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/path-cleaning-rules/ops" \
-H "Content-Type: application/json" \
-d '{"dry_run":true,"ops":[{"op":"append","rule":{"kind":"string","pattern":"string","replacement":"string"}}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"preview": [
{
"cleaned": "string",
"path": "string",
"views": 0
}
],
"rules": [
{
"kind": "string",
"pattern": "string",
"replacement": "string"
}
],
"saved": true
}Schema
previewPreviewRow[]requiredThe 20 most viewed paths of the last 7 days before and after the resulting rules.
Show child parameters
cleanedstringrequiredpathstringrequiredviewsintegerrequiredrulesPathRuleView[]requiredShow child parameters
kindstringrequiredpatternstringrequiredreplacementstringrequiredsavedbooleanrequired400 Bad op, index or resulting rule list
403
404
GET
https://lucidace.com /v1/projects/{project_id}/tenants/{tenant_id}/stats Scope insight:readParameters
project_idstringpathrequiredtenant_idstringpathrequireddaysintegerqueryeventstringquerybreakdownstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/tenants/{tenant_id}/stats"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"breakdown": "string",
"breakdown_rows": [
{
"count": 0,
"event": "string",
"key": "string",
"value": 0
}
],
"days": 0,
"from": "2024-01-01T00:00:00Z",
"series": [
{
"count": 0,
"day": "string",
"event": "string",
"value": 0
}
],
"tenant_id": "string",
"to": "2024-01-01T00:00:00Z"
}Schema
breakdownstringbreakdown_rowsarraydaysintegerrequiredfromstringrequiredseriesDayRow[]requiredShow child parameters
countintegerrequireddaystringrequiredYYYY-MM-DD (UTC).eventstringrequiredvaluenumberrequiredSum of the events'
value.tenant_idstringrequiredtostringrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/active-hours Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringquerymetricstringqueryvisitors (default) or pageviews
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/active-hours"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"cells": [
{
"hour": 0,
"value": 0,
"weekday": 0
}
],
"hour_totals": [
0
],
"metric": "string",
"timezone": "string",
"total": 0,
"weekday_totals": [
0
]
}Schema
cellsHourCell[]requiredShow child parameters
hourintegerrequired0..=23 in the project timezone.
valueintegerrequiredweekdayintegerrequiredISO day of week, 1 = Monday.
hour_totalsinteger[]requiredIndex = hour 0..23 (distinct visitors are not the sum of the cells).
metricstringrequiredvisitors (distinct) or pageviews.timezonestringrequiredtotalintegerrequiredweekday_totalsinteger[]requiredIndex = weekday - 1.
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/ad-spend/daily Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ad-spend/daily"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"base_currency": "string",
"days": [
"string"
],
"series": [
{
"source": "string",
"values": [
0
]
}
],
"unconverted": [
"string"
]
}Schema
base_currencystringrequireddaysstring[]requiredYYYY-MM-DD days with spend, ascending.seriesSpendSeries[]requiredShow child parameters
sourcestringrequiredAd source (
google_ads, meta_ads, ...).valuesnumber[]requiredSpend per day in the base currency, aligned with
days.unconvertedstring[]requiredCurrencies skipped because no rate to the base currency is set.
400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/web/ad-spend/import Scope insight:writeParameters
project_idstringpathrequiredRequest body
text/csv
Header row with date (YYYY-MM-DD) and spend, optional channel, campaign, campaign_id, ad_group, currency, impressions, clicks, conversions, conversion_value (platform-reported) in any order. Re-importing a day/campaign replaces it.
"string"
Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/ad-spend/import" \
-H "Content-Type: text/csv" \
-d '"string"'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"imported": 0
}Schema
importedintegerrequired400
403
404
503
Updated