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/ad-spend/reportScope insight:read

Parameters

project_idstringpathrequired
conversion_eventstringquery
goal_idstringquery
fromstringquery
tostringquery
lookback_daysintegerquery
dimensionstringquery
modelstringquery
half_life_daysintegerquery
revenue_propertystringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ad-spend/report"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "base_currency": "string",
  "dimension": "string",
  "model": "string",
  "rows": [
    {
      "cac": 0,
      "clicks": 0,
      "conversions": 0,
      "cost_per_reported_conversion": 0,
      "cpa": 0,
      "cpc": 0,
      "ctr": 0,
      "impressions": 0,
      "key": "string",
      "new_customers": 0,
      "reported_conversions": 0,
      "reported_roas": 0,
      "reported_value": 0,
      "revenue": 0,
      "roas": 0,
      "spend": 0
    }
  ]
}
Schema
base_currencystringrequired
dimensionstringrequired
modelstringrequired
rowsEconomicsRow[]required
Show child parameters
cacnumber
spend / new customers; null without new customers.
clicksnumberrequired
conversionsnumberrequired
cost_per_reported_conversionnumber
spend / reported_conversions.
cpanumber
spend / conversions; null without conversions.
cpcnumber
spend / clicks; null without clicks.
ctrnumber
clicks / impressions; null without impressions.
impressionsnumberrequired
keystringrequired
new_customersnumberrequired
reported_conversionsnumberrequired
Conversions the ad platforms report (their attribution, not ours).
reported_roasnumber
reported_value / spend.
reported_valuenumberrequired
Value of the reported conversions, base currency.
revenuenumberrequired
roasnumber
revenue / spend; null without spend.
spendnumberrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/ai-citationsScope insight:read

Parameters

project_idstringpathrequired
dimensionstringquery
sourcestringquery
conversion_eventstringquery
fromstringquery
tostringquery
limitintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ai-citations"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 By citations (by date for date), at most limit (default 100, max 1000)
Example
[
  {
    "ai_conversions": 0,
    "ai_sessions": 0,
    "citations": 0,
    "impressions": 0,
    "key": "string",
    "share": 0
  }
]
Schema
ai_conversionsintegerrequired
Those of them with conversion_event.
ai_sessionsintegerrequired
AI Referral and Paid AI sessions that landed on the page (page only).
citationsintegerrequired
impressionsintegerrequired
keystringrequired
sharenumber
Of all citations in the range.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/ai-citations/topicsScope insight:read

Parameters

project_idstringpathrequired
kintegerquery
sourcestringquery
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ai-citations/topics"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "queries": 0,
  "topics": [
    {
      "citations": 0,
      "label": "string",
      "queries": [
        "string"
      ],
      "share": 0
    }
  ]
}
Schema
queriesintegerrequired
Grounding queries clustered (the most cited, at most 300).
topicsCitationTopic[]required
Show child parameters
citationsintegerrequired
labelstringrequired
The most cited query of the topic.
queriesstring[]required
Most cited first.
sharenumberrequired
Of all clustered citations.
400 Not a user (embeddings run as the user)
404
503 No AI service or embedding provider
GEThttps://lucidace.com/v1/projects/{project_id}/web/ai-trafficScope insight:read

AI crawler and agent requests plus AI-search referrals. Crawlers rarely run JavaScript, so requests count when an edge worker or log forwarder sends them to the capture API with the crawler's `$user_agent`; the user agent is classified at enrichment.

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
limitintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ai-traffic"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "crawlers": [
    {
      "bot": "string",
      "kind": "string",
      "last_seen_ms": 0,
      "pages": 0,
      "requests": 0,
      "vendor": "string"
    }
  ],
  "pages": [
    {
      "bots": 0,
      "page": "string",
      "requests": 0
    }
  ],
  "referrals": [
    {
      "key": "string",
      "pageviews": 0,
      "paid_sessions": 0,
      "platform": "string",
      "sessions": 0,
      "visitors": 0
    }
  ]
}
Schema
crawlersCrawler[]required
Known AI crawlers and agents seen by the capture API (not counted as visitors).
Show child parameters
botstringrequired
kindstringrequired
training, search or agent.
last_seen_msintegerrequired
pagesintegerrequired
requestsintegerrequired
vendorstringrequired
pagesCrawledPage[]required
Show child parameters
botsintegerrequired
pagestringrequired
requestsintegerrequired
referralsAiReferral[]required
Human sessions that arrived from an AI assistant (channel "AI Referral" or "Paid AI").
Show child parameters
keystringrequired
pageviewsintegerrequired
paid_sessionsintegerrequired
Sessions of them on the Paid AI channel (ads inside the assistant).
platformstringrequired
Catalog name (ChatGPT, Perplexity, ...), else the key.
sessionsintegerrequired
visitorsintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/ai-visibilityScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ai-visibility"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 brand, last_run_at, engines (with mention_rate, own_citation_rate, avg_position and the platform's ai_sessions), prompts, trend, competitors, citations, recent
{}
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/web/ai-visibility/answersScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json

data: up to 200 answers {engine, platform, model, prompt, mentioned, position, competitors, citations, own_cited, excerpt, error}

{}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/ai-visibility/answers" \
  -H "Content-Type: application/json" \
  -d '{}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/web/ai-visibility/settingsScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/ai-visibility/settings"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 enabled, brand, aliases, domains, competitors, prompts, last_run_at
{}
404
PUThttps://lucidace.com/v1/projects/{project_id}/web/ai-visibility/settingsScope admin

Parameters

project_idstringpathrequired

Request body

application/json

enabled, brand, aliases, domains, competitors, prompts (each list at most 25)

{}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/web/ai-visibility/settings" \
  -H "Content-Type: application/json" \
  -d '{}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
{}
400
403
404

Updated