web

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-web"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c98607d6-613a-4769-ba8d-1fd655470740/social-card.svg?v=3e7ae33eec8b" alt="web" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/live/botsScope insight:read

Parameters

project_idstringpathrequired

Code 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[]required
Busiest first (at most 10).
Show child parameters
categorystringrequired
namestringrequired
requestsintegerrequired
sharenumberrequired
Share of all bot requests in the window, 0..1.
minutesLiveBotMinute[]required
Oldest first; minutes without traffic are absent.
Show child parameters
bot_requestsintegerrequired
minute_msintegerrequired
Minute start, Unix ms.
total_requestsintegerrequired
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/path-cleaning-rulesScope insight:read

Parameters

project_idstringpathrequired

Code 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_filtersbooleanrequired
max_rulesintegerrequired
rulesPathRuleView[]required
Show child parameters
kindstringrequired
patternstringrequired
replacementstringrequired
404
PUThttps://lucidace.com/v1/projects/{project_id}/path-cleaning-rulesScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
apply_to_filtersboolean
Also match $pathname filters, funnel steps, heatmap and form pages in their cleaned form (a page matches raw or cleaned). Omitted = unchanged (default on).
rulesPathRuleView[]required
Show child parameters
kindstringrequired
patternstringrequired
replacementstringrequired
{
  "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
POSThttps://lucidace.com/v1/projects/{project_id}/path-cleaning-rules/opsScope insight:read

Parameters

project_idstringpathrequired

Request body

application/json
dry_runboolean
Preview only: nothing is saved (default false).
opsPathRuleOp[]required
Applied 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[]required
The 20 most viewed paths of the last 7 days before and after the resulting rules.
Show child parameters
cleanedstringrequired
pathstringrequired
viewsintegerrequired
rulesPathRuleView[]required
Show child parameters
kindstringrequired
patternstringrequired
replacementstringrequired
savedbooleanrequired
400 Bad op, index or resulting rule list
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/tenants/{tenant_id}/statsScope insight:read

Parameters

project_idstringpathrequired
tenant_idstringpathrequired
daysintegerquery
eventstringquery
breakdownstringquery

Code 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
breakdownstring
breakdown_rowsarray
daysintegerrequired
fromstringrequired
seriesDayRow[]required
Show child parameters
countintegerrequired
daystringrequired
YYYY-MM-DD (UTC).
eventstringrequired
valuenumberrequired
Sum of the events' value.
tenant_idstringrequired
tostringrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/active-hoursScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
metricstringquery
visitors (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[]required
Show child parameters
hourintegerrequired
0..=23 in the project timezone.
valueintegerrequired
weekdayintegerrequired
ISO day of week, 1 = Monday.
hour_totalsinteger[]required
Index = hour 0..23 (distinct visitors are not the sum of the cells).
metricstringrequired
visitors (distinct) or pageviews.
timezonestringrequired
totalintegerrequired
weekday_totalsinteger[]required
Index = weekday - 1.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/ad-spend/dailyScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code 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_currencystringrequired
daysstring[]required
YYYY-MM-DD days with spend, ascending.
seriesSpendSeries[]required
Show child parameters
sourcestringrequired
Ad source (google_ads, meta_ads, ...).
valuesnumber[]required
Spend per day in the base currency, aligned with days.
unconvertedstring[]required
Currencies skipped because no rate to the base currency is set.
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/web/ad-spend/importScope insight:write

Parameters

project_idstringpathrequired

Request 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
importedintegerrequired
400
403
404
503

Updated