Usage API (1.0.0)
Download OpenAPI specification:Download
API to retrieve usage statistics for HTTP requests made to Algolia applications.
Use the Usage API key for authentication.
Get usage.
Returns usage statistics over a specified period.
The specified period must be within the last 90 days. However, the period of data retention can be extended to a maximum of 365 days.
Authorizations:
path Parameters
statistic required | string Example: records,max_qps,region_max_qps The statistics to retrieve. To retrieve several queries, separate them with commas. StatisticsThe usage statistics cover several sets of operations: search, access control lists, indexing, records, synonyms, Rules, and Insights. They also return metrics on: total operations, total Query Suggestions operations, processing time, indices, queries per second, search capacity, and degraded queries. To avoid unnecessary calls, you can request all or some of the following sets of statistics with a grouping option. Search operations
ACL operations
Indexing operations
Record operations
Synonym operations
Rule operations
Insights operations
Total operations
Total Query Suggestions operationsQuery Suggestions operations are a subset of
Processing time
Indices
Maximum QPS (query per second)
Used search capacity
Degraded queriesUse these statistics to monitor the impact of degraded queries.
Some statistics provide information about the percentage of time when queries were degraded during the specified period.
For example, if Grouping
|
query Parameters
startDate required | |
endDate required | |
granularity | string (granularity) Default: "daily" Enum: "hourly" "daily" Return hourly or daily statistics.
|
Responses
Response samples
- 200
- 400
- 403
{- "statistics": [
- {
- "t": 1455451200000,
- "v": 0
}
]
}
Get usage for an index.
Returns index usage statistics over a specified period.
The specified period must be within the last 90 days. However, the period of data retention can be extended to a maximum of 365 days.
Authorizations:
path Parameters
statistic required | string Example: records,max_qps,region_max_qps The statistics to retrieve. To retrieve several queries, separate them with commas. StatisticsThe usage statistics cover several sets of operations: search, access control lists, indexing, records, synonyms, Rules, and Insights. They also return metrics on: total operations, total Query Suggestions operations, processing time, indices, queries per second, search capacity, and degraded queries. To avoid unnecessary calls, you can request all or some of the following sets of statistics with a grouping option. Search operations
ACL operations
Indexing operations
Record operations
Synonym operations
Rule operations
Insights operations
Total operations
Total Query Suggestions operationsQuery Suggestions operations are a subset of
Processing time
Indices
Maximum QPS (query per second)
Used search capacity
Degraded queriesUse these statistics to monitor the impact of degraded queries.
Some statistics provide information about the percentage of time when queries were degraded during the specified period.
For example, if Grouping
|
index required | string Example: YOUR_INDEX_NAME Index name. |
query Parameters
startDate required | |
endDate required | |
granularity | string (granularity) Default: "daily" Enum: "hourly" "daily" Return hourly or daily statistics.
|
Responses
Response samples
- 200
- 400
- 403
{- "statistics": [
- {
- "t": 1455451200000,
- "v": 0
}
]
}