---
search:
  tags:
    - Query
    - GET
seo:
  description: >-
    Get the total number of results for a query. Reference for the GET
    /v1/query/id/{query_id}/count endpoint in the Roboto REST API.
sidebar:
  label: Get query result count
  badge: GET
title: Get query result count
type: openapi-operation
---
Get the total number of results for a query.

**Consistency:** Eventually Consistent (for API version >= 2026-03-13)

- Clients using API version &lt; 2026-03-13: Strongly consistent reads
- Clients using API version >= 2026-03-13: Eventually consistent reads
- Override: Send X-Roboto-Connection-Consistency header to explicitly control behavior

This endpoint uses eventual consistency for improved performance and scalability.
The count may not immediately reflect very recent writes. If you've just created or
updated data and don't see it in the count, retry after a brief delay.

### Access control
 - Restricted tokens need the API scope `api.everything_else`

`GET /v1/query/id/{query_id}/count`
