GET
/
v1
/
analytics
/
lifetime
Get lifetime product analytics
curl --request GET \
  --url https://api.oneofnone.io/v1/analytics/lifetime \
  --header 'x-api-key: <api-key>'
{
  "meta": {
    "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "team_name": "<string>",
    "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "collection_name": "<string>",
    "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "product_name": "<string>",
    "applied_filters": {}
  },
  "metrics": {
    "total_sales": 1,
    "total_taps": 1,
    "total_registrations": 1,
    "total_activities": 1,
    "total_vault_views": 1,
    "total_unique_visitors": 1
  },
  "breakdowns": {
    "sales_by_period": [
      {
        "period": "2023-12-25",
        "value": 1
      }
    ],
    "taps_by_period": [
      {
        "period": "2023-12-25",
        "count": 1
      }
    ],
    "registrations_by_period": [
      {
        "period": "2023-12-25",
        "count": 1
      }
    ],
    "activities_by_period": [
      {
        "period": "2023-12-25",
        "count": 1
      }
    ],
    "vault_views_by_period": [
      {
        "period": "2023-12-25",
        "count": 1
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Query Parameters

team_id
string<uuid>

The team ID to filter by. Either team_id or team_slug must be provided.

team_slug
string

The team slug to filter by. Either team_id or team_slug must be provided.

collection_id
string<uuid>

The collection ID to filter by.

collection_slug
string

The collection slug to filter by.

product_id
string<uuid>

The product ID to filter by.

country
string

The country code to filter by.

region
string

The region code to filter by.

Response

Successfully fetched lifetime product analytics.

meta
object
required
metrics
object
required
breakdowns
object
required