Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
  1. Members
  • Introduction
  • Filter parameter specification
  • Data formats
    • Records
    • Timeseries
  • Reports
    • Members
      • members (records)
      • members_count (records)
      • members_grouped_count (records)
      • member_balance (timeseries)
      • members_count_snapshot (timeseries)
      • members_count_history (timeseries)
    • Sendings
      • sendings (records)
      • sendings_events_history (timeseries)
      • sendings_recipients_statistics (timeseries)
      • sendings_links (records)
      • sendings_links_stats (records)
      • Examples
        • sendings - find sending by reporting_id
        • sendings_events_history - show sending events
        • sendings_recipients_statistics - show recipients by age groups
    • Links
      • links_visits_history (timeseries)
  • Geo API
    • Find Locations Coordinates
      POST
    • List places
      POST
    • Show place
      GET
  • Metadata
    POST
  • Field metadata
    POST
  • Query (records)
    POST
  • Query (timeseries)
    POST
  • Query (records) export
    POST
  • Query (timeseries) export
    POST
  • Tenants query (records) export
    POST
  • Tenants query (timeseries) export
    POST
  1. Members

members_count_snapshot (timeseries)

Required permitRate limit tokens costAvailable intervalsData lag
Reporting:Api:Report:MembersCountSnapshot31h, 1d, 1w, 1mo~15 minutes
This report allows you to get information members' count in loyalty club (community).
Implementation is done by periodic (~15 minutes) snapshots of members' count.
it allows to query members' count with filtering over some of fields
it has values present in every time bucket
it's not so precise as counts are materialized each 15 minutes and last one in time bucket is taken to be returned

Fields#

community_id#

TypeFilterable
Integer (via X-Customer header)
ID of member's community

optin_channel#

TypeFilterable
String
See members report.

optin_subchannel#

TypeFilterable
String
See members report.

optin_platform#

TypeFilterable
Enum
See members report.

gender#

TypeFilterableReadonly
String
See members report.

age#

TypeFilterable
Enum
See members report.

Query without aggregations#

Query returns series with members' count.
{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {},
            "values": [
                850,
                850,
                850,
                850
            ]
        }
    ],
    "data_points": 4,
    "result_type": "timeseries"
}

Aggregations#

consents#

Members count aggregated by given consents by members.

Labels#

KeyTypeDescription
consent_keyStringSee consents in Fields

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {
                "consent_key": "facebook_ads"
            },
            "values": [
                61,
                61,
                61,
                61
            ]
        },
        {
            "label": {
                "consent_key": "email_marketing"
            },
            "values": [
                133,
                133,
                133,
                133
            ]
        },
        {
            "label": {
                "consent_key": "cookie_tracking"
            },
            "values": [
                213,
                213,
                212,
                212
            ]
        },
    ],
    "data_points": 12,
    "result_type": "timeseries"
}

total_consents#

Members count aggregated by given consents by members in context of all communities.

Labels#

KeyTypeDescription
consent_keyStringSee consents in Fields

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {
                "consent_key": "facebook_ads"
            },
            "values": [
                61,
                61,
                61,
                61
            ]
        },
        {
            "label": {
                "consent_key": "email_marketing"
            },
            "values": [
                133,
                133,
                133,
                133
            ]
        },
        {
            "label": {
                "consent_key": "cookie_tracking"
            },
            "values": [
                213,
                213,
                212,
                212
            ]
        },
    ],
    "data_points": 12,
    "result_type": "timeseries"
}

marketing_via_anything#

Count of members that can be reached with marketing sendings.

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {},
            "values": [
                529,
                529,
                528,
                528
            ]
        }
    ],
    "data_points": 4,
    "result_type": "timeseries"
}

total_marketing_via_anything#

Count of members that can be reached with marketing sendings in context of all communities.

marketing_via_sms#

Count of members that can be reached with marketing SMS sendings.

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {},
            "values": [
                529,
                529,
                528,
                528
            ]
        }
    ],
    "data_points": 4,
    "result_type": "timeseries"
}

total_marketing_via_sms#

Count of members that can be reached with marketing SMS sendings in context of all communities.

marketing_via_email#

Count of members that can be reached with marketing email sendings.

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {},
            "values": [
                529,
                529,
                528,
                528
            ]
        }
    ],
    "data_points": 4,
    "result_type": "timeseries"
}

total_marketing_via_email#

Count of members that can be reached with marketing email sendings in context of all communities.

marketing_via_push#

Count of members that can be reached with marketing push notification sendings.

Example query#

{
    "interval": "1h",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-08-22T01:00:00.000-06:00",
        "2024-08-22T02:00:00.000-06:00",
        "2024-08-22T03:00:00.000-06:00",
        "2024-08-22T04:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {},
            "values": [
                529,
                529,
                528,
                528
            ]
        }
    ],
    "data_points": 4,
    "result_type": "timeseries"
}

total_marketing_via_push#

Count of members that can be reached with marketing push notification sendings in context of all communities.
Previous
member_balance (timeseries)
Next
members_count_history (timeseries)
Built with