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

2b1f84425791

Domain WHOIS

Domain WHOIS Download

Retrieves size search results matching the query q in the selected indices.

The Netlas SDK and CLI tool additionally include a download_all() method and an --all key that allow you to query all available results.

post/api/whois_domains/download/

Request body

qstring required

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

sizeinteger required

Number of documents to download. Call corresponding Count endpoint to get a number of available documents.

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.

fieldsField[] required

You can control the amount of output data by specifying which fields to include or exclude in the response. Use the source_type parameter to select between include and exclude options.

source_type'include' | 'exclude' required

Specify fields and use source_type to choose between:

  • include to return only the specified fields
  • exclude to return all fields except the specified ones
type'json' | 'csv'

Download output format.

  • json: JSON array output.
  • csv: CSV text output in the response body.

Note: the API may still respond with Content-Type: application/json for CSV output, and Accept: text/csv may return 406. Use request field type: csv to request CSV.

Example request

{
  "q": "domain:example.com",
  "size": 1000,
  "indices": [
    "2025-09-24",
    "2025-09-02"
  ],
  "fields": [
    "*"
  ]
}

Response

Search Results

OR
string required

CSV text content returned by download endpoints when type: csv is requested.

Example response

[
  {
    "data": {
      "server": "whois.iana.org",
      "last_updated": "2024-05-05T01:45:12.744Z",
      "extension": "com",
      "@timestamp": "2024-05-05T01:45:12.744Z",
      "punycode": "example.com",
      "level": 2,
      "zone": "com",
      "domain": "example.com",
      "name": "example",
      "raw": "Raw WHOIS data in the form of a string will be here.\n\nThe rest of the document contains the same data in parsed form.",
      "created_date": "1992-01-01T00:00:00.000Z",
      "extracted_domain": "example.com"
    }
  }
]