# CountRecordsRequest

Type: object

Schema: [CountRecordsRequest](https://docs.searchsoftware.nl/api/models/countrecordsrequest.md)

- `query` (optional)
  Type: string
  
  Search query, default *. The same as on the search route.

- `filters` (optional)
  Type: array
  
  The same filters as on the search route.
  
  Items:
    Reference: [RecordSearchFilterGroup](https://docs.searchsoftware.nl/api/models/recordsearchfiltergroup.md); Type: object

- `group_by` (optional)
  Type: string
  
  One attribute marked groupable in the attributes route.
  
  Example:
  
  ```json
  "assigned_to"
  ```

- `near` (optional)
  Reference: [RecordSearchNear](https://docs.searchsoftware.nl/api/models/recordsearchnear.md); Type: object

- `document_query` (optional)
  Type: string
  
  The same as on the search route. Not with group_by (422 DOCUMENT_QUERY_WITH_GROUP_BY).
  
  Example:
  
  ```json
  "AutoCAD"
  ```