latestOpenAPI 3.0.3Netlas API & Data License Agreement2026-08-104487309.0 KB

2b1f84425791

Domains

Domains Facet Search

Searches for q in the selected indices and groups results by the facets field.

get/api/domains_facet/

Query parameters

qstring required

The query string used for searching. See Query Syntax for more details.

Example:domain:example.com
facetsField[] required

A list of fields to group search results by.

[
  "geo.country"
]
indicesIndiceLabel[]

A list of indice labels to search in. If not provided, the search will be performed in the default (most relevant index).

Call indices endpoint to get the list of available indices.

[
  "2025-09-24",
  "2025-09-02"
]
sizeinteger

Number of search results to return for each facet.

Response

Facet Search Results

Example response

{
  "aggregations": [
    {
      "key": [
        "any_valid_key"
      ],
      "doc_count": 1675
    }
  ]
}