Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.uselayers.com/llms.txt

Use this file to discover all available pages before exploring further.

LayersQL provides seven datasets for building metrics. Each dataset exposes its own metrics, dimensions, and example queries.
DatasetPurposeDefault group key
ProductsCatalog and performance metrics for productsproduct_id
SalesOrder-level metrics from the purchases tabletransaction_id
Search (text)Text search analytics grouped by canonical query termterm
Search (image)Image search analyticsimage_hash
Search (similar)Similar item search analyticsproduct_id
CollectionsCollection browsing and conversion analyticscollection_handle
BlocksRecommendation block requests and conversionsblock_id

Dates (all datasets)

All datasets accept the same date expressions in the SINCE clause:
  • Relative offsets: -24h, -48h, -7d, -14d, -30d, -90d, -12m, -1y
  • Keywords: today, yesterday, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year
  • Rolling windows: past_7_days, past_14_days, past_30_days, past_60_days, past_90_days, past_180_days, past_365_days
  • ISO timestamps: 2025-03-15 or 2025-03-15T10:30:00Z

Next steps