- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- CustomerIndexStats
- Try it!
Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day.
Note: This API requires a standard end user account to execute.
HTTP request
GET https://cloudsearch.googleapis.com/v1/stats/index
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
| fromDate | 
 Start of the date range to retrieve statistics for. This value must be within 1 year of the current date. | 
| toDate | 
 End of the date range to retrieve statistics for. This value must be within 1 year of the current date and greater than fromDate. | 
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "stats": [
    {
      object ( | 
| Fields | |
|---|---|
| stats[] | 
 Summary of indexed item counts, one for each day in the requested range. | 
| averageIndexedItemCount | 
 Average item count for the given date range for which billing is done. | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud_search.stats.indexing
- https://www.googleapis.com/auth/cloud_search.stats
- https://www.googleapis.com/auth/cloud_search
For more information, see the Authorization guide.
CustomerIndexStats
Aggregation of items by status code as of the specified date.
| JSON representation | 
|---|
| { "date": { object ( | 
| Fields | |
|---|---|
| date | 
 The date for which statistics were calculated. | 
| itemCountByStatus[] | 
 Number of items aggregrated by status code. |