younifyd
Menu

Get Algolia Search Index Analytics User Count

Get count of users

GET/algolia-search/{hubId}/indexes/{indexId}/analytics/users-count

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Get Algolia Search Index Analytics User Count action (under Search Indexes - Analytics).
  3. Fill in the fields below, then reference the result from later steps as {{getAlgoliaSearchIndexAnalyticsUserCount.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

indexIdstringrequired

Index ID

Query parameters

startDatestring (date)

The lower bound timestamp (a date, a string like “2006-01-02”) of the period to analyze. Defaults to 7 days ago, 00:00:00am, UTC

endDatestring (date)

The upper bound timestamp (a date, a string like “2006-01-02”) of the period to analyze. Defaults to Today, 23:59:59pm, UTC

includeReplicasboolean

Include replica data in the results (Can only be used in conjunction with primary indexes).

Default false

tagsstring

Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded. E.g: * “lang:fr OR lang:en” * “platform:ios AND lang:en” * “(lang:fr OR lang:en) AND platform:android” * “device:mobile%20phone” (note the URL encoded)

Response

Returns 200 with an object. Read it in later steps with {{getAlgoliaSearchIndexAnalyticsUserCount.response.data.<field>}}.

countnumber

The total user count for the supplied index

datesarray<object>

Total user count by day

datestring

User count date

countnumber

User count for the given date

_linksobject

Resource HAL links

selfany
users-countany
indexany
json
{
  "count": 3,
  "dates": [
    {
      "date": "2020-01-01",
      "count": 1
    }
  ],
  "_links": {
    "self": null,
    "users-count": null,
    "index": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.