View analytics for your pages

Per-day view counts over a trailing window, computed from server-side pageview tracking. Requires authentication (session or lp_ key). Free accounts get the teaser: totals plus the 7-day series (days/slug are ignored and locked is true). Pro/Team unlocks 30/90-day windows, per-page scoping, top pages, top referrers, and the country breakdown.

get/api/analytics

Request

  • Base URL: https://lucid.page
  • URL: https://lucid.page/api/analytics
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter apiKey
    • none

Query parameters

days7 | 30 | 90

Window size in days (Pro/Team; free accounts always get 7)

slugstring

Scope the report to a single page you own (Pro/Team)

Response

The analytics report for the requested window

daysinteger
slugstring nullable
lockedboolean

True on the free plan: the report is the 7-day teaser and topDocs/referrers/countries are null

Changes

No recorded changes to this operation across all 1 revision of this API.