younifyd
Menu

Get Algolia Search Index Stats

Get Search Index Statistics

GET/algolia-search/{hubId}/indexes/{indexId}/stats

Use it in a workflow

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

Request

Path parameters

hubIdstringrequired

Hub ID

indexIdstringrequired

Index ID

Response

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

totalRecordsnumber

The total number of records for the supplied index

totalRecordSizenumber

The total size in bytes of the records for the supplied index

averageRecordSizenumber

The average size in bytes of the records for the supplied index

usageobject
averageResponseTimeobject3 fields
numberOfSearchesobject3 fields
_linksobject

Resource HAL links

selfany
statsany
indexany
json
{
  "totalRecords": 546,
  "totalRecordSize": 256,
  "averageRecordSize": 56,
  "usage": {
    "averageResponseTime": {
      "unit": "DAYS",
      "duration": 30,
      "value": 1.25
    },
    "numberOfSearches": {
      "unit": "DAYS",
      "duration": 30,
      "value": 150
    }
  },
  "_links": {
    "self": null,
    "stats": null,
    "index": null
  }
}

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

Get Algolia Search Index Stats — Amplience — Documentation