# REST Resource: stats.query.searchapplications

- [Resource: GetSearchApplicationQueryStatsResponse](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#GetSearchApplicationQueryStatsResponse)
  - [JSON representation](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#GetSearchApplicationQueryStatsResponse.SCHEMA_REPRESENTATION)
- [SearchApplicationQueryStats](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#SearchApplicationQueryStats)
  - [JSON representation](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#SearchApplicationQueryStats.SCHEMA_REPRESENTATION)
- [QueryCountByStatus](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#QueryCountByStatus)
  - [JSON representation](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#QueryCountByStatus.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#METHODS_SUMMARY)

## Resource: GetSearchApplicationQueryStatsResponse

Response format for getting query stats for a search application between given dates.

| JSON representation |
|---|
| ``` { "stats": [ { object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#SearchApplicationQueryStats`) } ], "totalQueryCount": string } ``` |

| Fields ||
|---|---|
| `stats[]` | ``object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#SearchApplicationQueryStats`)`` Query stats per date for a search application. |
| `totalQueryCount` | `string (https://developers.google.com/discovery/v1/type-format format)` Total successful query count (status code 200) for the given date range. |

## SearchApplicationQueryStats

Search application level query stats per date

| JSON representation |
|---|
| ``` { "date": { object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/Date`) }, "queryCountByStatus": [ { object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#QueryCountByStatus`) } ] } ``` |

| Fields ||
|---|---|
| `date` | ``object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/Date`)`` The date for which query stats were calculated. Stats calculated on the next day close to midnight are returned. |
| `queryCountByStatus[]` | ``object (`https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications#QueryCountByStatus`)`` |

## QueryCountByStatus

| JSON representation |
|---|
| ``` { "statusCode": integer, "count": string } ``` |

| Fields ||
|---|---|
| `statusCode` | `integer` This represents the http status code. |
| `count` | `string (https://developers.google.com/discovery/v1/type-format format)` |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/stats.query.searchapplications/get` | Get the query statistics for search application. |