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}/web/search-consoleScope insight:read

Parameters

project_idstringpathrequired
dimensionstringquery
sourcestringquery
fromstringquery
tostringquery
limitintegerquery

Code 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) rows
Example
[
  {
    "clicks": 0,
    "ctr": 0,
    "impressions": 0,
    "key": "string",
    "position": 0
  }
]
Schema
clicksintegerrequired
ctrnumber
impressionsintegerrequired
keystringrequired
Query, page, country, device or YYYY-MM-DD.
positionnumber
Impression-weighted average position.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/search-exitsScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
limitintegerquery

Code 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_ratenumber
exitsintegerrequired
Searches after which the session had no further pageview or search.
keystringrequired
refinementsintegerrequired
Searches directly followed by another search.
result_viewsintegerrequired
Searches directly followed by a pageview.
searchesintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/settingsScope insight:read

Parameters

project_idstringpathrequired

Code 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_interactionsboolean
A single-pageview session with any other event (a click, a form start) is not a bounce.
bounce_threshold_sinteger
A 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_matchobject
Per ad source (google_ads, ...): match spend to utm_campaign by campaign name (default) or id.
host_allowlistarray
Only 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_cardsarray
Marketing overview cards to show, in order (ids such as spend, roas, ctr).
marketing_onboardedboolean
The marketing onboarding wizard was finished or skipped.
precomputeboolean
false turns the precomputed (daily rollup) tiles off; reports then always read raw data.
referrer_exclusionsarray
Referring 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_tablesarray
Synced 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_mapobject
Manual utm_campaign -> ad campaign mapping, applied before matching spend.
utm_source_allowlistobject
Per 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
PUThttps://lucidace.com/v1/projects/{project_id}/web/settingsScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json

Web analytics definitions. On write, present keys replace and null clears a key.

bounce_ignores_interactionsboolean
A single-pageview session with any other event (a click, a form start) is not a bounce.
bounce_threshold_sinteger
A 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_matchobject
Per ad source (google_ads, ...): match spend to utm_campaign by campaign name (default) or id.
host_allowlistarray
Only 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_cardsarray
Marketing overview cards to show, in order (ids such as spend, roas, ctr).
marketing_onboardedboolean
The marketing onboarding wizard was finished or skipped.
precomputeboolean
false turns the precomputed (daily rollup) tiles off; reports then always read raw data.
referrer_exclusionsarray
Referring 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_tablesarray
Synced 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_mapobject
Manual utm_campaign -> ad campaign mapping, applied before matching spend.
utm_source_allowlistobject
Per 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

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/web/shield-rulesScope settings:read

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
created_atstringrequired
idstringrequired
kindstringrequired
country | path | hostname
notestringrequired
valuestringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/web/shield-rulesScope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
kindstringrequired
country | path | hostname
notestring
valuestringrequired
country: 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_atstringrequired
idstringrequired
kindstringrequired
country | path | hostname
notestringrequired
valuestringrequired
400
403
404
409
DELETEhttps://lucidace.com/v1/projects/{project_id}/web/shield-rules/{id}Scope settings:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/web/short-linksScope insight:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
clicksintegerrequired
codestringrequired
Path segment after /l/ on the gateway.
created_atstringrequired
idstringrequired
last_clicked_atstring
target_urlstringrequired
titlestringrequired
next_cursorstring
404

Updated