Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Store → Get Analytics

AI-generated

Summary

Retrieve analytics data for a specified Lemon Squeezy store, with optional output simplification and configurable retry behavior for API requests.

Inputs

  • analyticsStoreId (required) — The ID of the store to analyze, selectable from a list or via an expression.
  • simplifyOutput — Boolean flag to simplify the JSON:API response by flattening attributes to the top level. Defaults to true.
  • retryOptions — Settings to configure retry behavior on failed API requests, including maximum retries and initial retry delay in milliseconds.

Output shape

a single JSON object representing the store analytics data

The output may be returned in either raw JSON:API format or simplified with attributes flattened, depending on the 'simplifyOutput' option. The operation fetches data directly from the Lemon Squeezy API with automatic retries based on the configured retry options. No pagination applies as analytics is a single resource fetch.

Examples

Example 1: Fetch analytics summary for a selected store with simplified output

Set 'analyticsStoreId' to the target store; ensure 'simplifyOutput' is true (default). Configure retry options as needed.

Links

Discussion