---
title: "Domains Count"
method: GET
path: "/api/domains_count/"
tags: ["Domains"]
---

# Domains Count

`GET /api/domains_count/`

Counts the number of documents matching the search query `q` in the selected `indices`.

- If there are fewer than 1,000 results, the method returns the exact count.
- If there are more than 1,000 results, the count is estimated with an error margin not exceeding 3%.

## Query parameters

- `q` string, required — The query string used for searching. See [Query Syntax](/knowledge-base/query-language/) for more details.
- `indices` IndiceLabel[] — A list of indice labels to search in. If not provided, the search will be performed in the default (most relevant index). Call [indices](#tag/Indices) endpoint to get the list of available indices.

## Response `200`

__Count__

- Count
  - `count` integer, required — Number of documents that match the search query

## Other responses

- `400` — __Bad Request__: Some required parameters were not passed or were not validated
- `403` — __Access Denied__: You are not allowed to perform this action Error details are included in the response body.
- `429` — __Daily request limit exceeded__ or __Request throttled__. Additional error details are provided in the response body
- `500` — __Internal Server Error__: Details are included in the response body
- `504` — __Timeout__: The request took too long to process

---

[API](https://skmtc.net/netlas/apis/netlas-api.md) · [All operations](https://skmtc.net/netlas/apis/netlas-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlas/netlas-api/revisions/2b1f84425791/schema)
