younifyd
Menu

Get Algolia Search Index Analytics Get Search Count

Get count of searches for an index

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

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Get Algolia Search Index Analytics Get Search Count action (under Search Indexes - Analytics).
  3. Fill in the fields below, then reference the result from later steps as {{getAlgoliaSearchIndexAnalyticsGetSearchCount.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

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)

includeReplicasboolean

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

Default false

Response

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

countnumber

Total number of searches for this period

datesarray<object>
datestring (date)

Date

countnumber

Count for the given date

_linksobject

Resource HAL links

selfany
searches-countany
indexany
json
{
  "count": 3,
  "dates": [
    {
      "date": "2020-08-24",
      "count": 3
    }
  ],
  "_links": {
    "self": null,
    "searches-count": null,
    "index": null
  }
}

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

Get Algolia Search Index Analytics Get Search Count — Amplience — Documentation