web
GET
https://lucidace.com /v1/projects/{project_id}/web/search-console Scope insight:readParameters
project_idstringpathrequireddimensionstringquerysourcestringqueryfromstringquerytostringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/search-console"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Ordered by clicks (by date for
date), at most limit (default 100, max 1000) rowsExample
[
{
"clicks": 0,
"ctr": 0,
"impressions": 0,
"key": "string",
"position": 0
}
]Schema
clicksintegerrequiredctrnumberimpressionsintegerrequiredkeystringrequiredQuery, page, country, device or
YYYY-MM-DD.positionnumberImpression-weighted average position.
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/search-exits Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/search-exits"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"exit_rate": 0,
"exits": 0,
"key": "string",
"refinements": 0,
"result_views": 0,
"searches": 0
}
]Schema
exit_ratenumberexitsintegerrequiredSearches after which the session had no further pageview or search.
keystringrequiredrefinementsintegerrequiredSearches directly followed by another search.
result_viewsintegerrequiredSearches directly followed by a pageview.
searchesintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/settings Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/settings"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"bounce_ignores_interactions": true,
"bounce_threshold_s": 0,
"campaign_match": {},
"host_allowlist": [
"string"
],
"marketing_cards": [
"string"
],
"marketing_onboarded": true,
"precompute": true,
"referrer_exclusions": [
"string"
],
"spend_tables": [
{}
],
"utm_campaign_map": {},
"utm_source_allowlist": {}
}Schema
bounce_ignores_interactionsbooleanA single-pageview session with any other event (a click, a form start) is not a bounce.
bounce_threshold_sintegerA single-pageview session only counts as a bounce when it lasted under this many seconds (0..=3600). Unset: every single-pageview session is a bounce.
campaign_matchobjectPer ad source (
google_ads, ...): match spend to utm_campaign by campaign name (default) or id.host_allowlistarrayOnly events and sessions whose
$host matches one of these are reported (app.example.com, *.example.com; case-insensitive). Unset or empty: every host. Turns the daily rollups off.marketing_cardsarrayMarketing overview cards to show, in order (ids such as
spend, roas, ctr).marketing_onboardedbooleanThe marketing onboarding wizard was finished or skipped.
precomputebooleanfalse turns the precomputed (daily rollup) tiles off; reports then always read raw data.referrer_exclusionsarrayReferring domains that are your own (checkout, auth, other subdomains): shown as no referrer and their Referral sessions count as Direct. A leading
. also matches subdomains.spend_tablesarraySynced warehouse tables read as ad spend (LC-WEB-4):
{table, source, channel, date_field, cost_field, cost_unit (major|micros|cents), currency_field | currency, campaign_field, campaign_id_field, clicks_field, impressions_field, ad_group_field, conversions_field, conversion_value_field, conversion_value_unit}; at most 10 (LC_WEB_SPEND_TABLES).utm_campaign_mapobjectManual
utm_campaign -> ad campaign mapping, applied before matching spend.utm_source_allowlistobjectPer ad source, the
utm_source values its links use. When any list is set, campaign touches from other sources are credited to (none) rather than an ad campaign.404
PUT
https://lucidace.com /v1/projects/{project_id}/web/settings Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
Web analytics definitions. On write, present keys replace and null clears a key.
bounce_ignores_interactionsbooleanA single-pageview session with any other event (a click, a form start) is not a bounce.
bounce_threshold_sintegerA single-pageview session only counts as a bounce when it lasted under this many seconds (0..=3600). Unset: every single-pageview session is a bounce.
campaign_matchobjectPer ad source (
google_ads, ...): match spend to utm_campaign by campaign name (default) or id.host_allowlistarrayOnly events and sessions whose
$host matches one of these are reported (app.example.com, *.example.com; case-insensitive). Unset or empty: every host. Turns the daily rollups off.marketing_cardsarrayMarketing overview cards to show, in order (ids such as
spend, roas, ctr).marketing_onboardedbooleanThe marketing onboarding wizard was finished or skipped.
precomputebooleanfalse turns the precomputed (daily rollup) tiles off; reports then always read raw data.referrer_exclusionsarrayReferring domains that are your own (checkout, auth, other subdomains): shown as no referrer and their Referral sessions count as Direct. A leading
. also matches subdomains.spend_tablesarraySynced warehouse tables read as ad spend (LC-WEB-4):
{table, source, channel, date_field, cost_field, cost_unit (major|micros|cents), currency_field | currency, campaign_field, campaign_id_field, clicks_field, impressions_field, ad_group_field, conversions_field, conversion_value_field, conversion_value_unit}; at most 10 (LC_WEB_SPEND_TABLES).utm_campaign_mapobjectManual
utm_campaign -> ad campaign mapping, applied before matching spend.utm_source_allowlistobjectPer ad source, the
utm_source values its links use. When any list is set, campaign touches from other sources are credited to (none) rather than an ad campaign.{
"bounce_ignores_interactions": true,
"bounce_threshold_s": 0,
"campaign_match": {},
"host_allowlist": [
"string"
],
"marketing_cards": [
"string"
],
"marketing_onboarded": true,
"precompute": true,
"referrer_exclusions": [
"string"
],
"spend_tables": [
{}
],
"utm_campaign_map": {},
"utm_source_allowlist": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/web/settings" \
-H "Content-Type: application/json" \
-d '{"bounce_ignores_interactions":true,"bounce_threshold_s":0,"campaign_match":{},"host_allowlist":["string"],"marketing_cards":["string"],"marketing_onboarded":true,"precompute":true,"referrer_exclusions":["string"],"spend_tables":[{}],"utm_campaign_map":{},"utm_source_allowlist":{}}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/web/shield-rules Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/shield-rules"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"note": "string",
"value": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredidstringrequiredkindstringrequiredcountry | path | hostnamenotestringrequiredvaluestringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/web/shield-rules Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
kindstringrequiredcountry | path | hostnamenotestringvaluestringrequiredcountry: ISO 3166-1 alpha-2 (DE); path: a $pathname glob (/admin/*); hostname: an exact host or *.example.com.{
"kind": "string",
"note": "string",
"value": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/shield-rules" \
-H "Content-Type: application/json" \
-d '{"kind":"string","note":"string","value":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"kind": "string",
"note": "string",
"value": "string"
}Schema
created_atstringrequiredidstringrequiredkindstringrequiredcountry | path | hostnamenotestringrequiredvaluestringrequired400
403
404
409
DELETE
https://lucidace.com /v1/projects/{project_id}/web/shield-rules/{id} Scope settings:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/shield-rules/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/web/short-links Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/short-links"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Newest first
Example
{
"data": [
{
"clicks": 0,
"code": "string",
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"last_clicked_at": "2024-01-01T00:00:00Z",
"target_url": "string",
"title": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
clicksintegerrequiredcodestringrequiredPath segment after
/l/ on the gateway.created_atstringrequiredidstringrequiredlast_clicked_atstringtarget_urlstringrequiredtitlestringrequirednext_cursorstring404
Updated