Skip to content
Loading...

Environment

You can interact with the Netlas API using an API client, the curl command-line utility, the Netlas CLI, or the Netlas Python SDK.

This specification includes code samples for all of these options.

Setting Up an API Client

Most modern API clients support OpenAPI v3.1 imports. Click Download at the top of this page, then import the file into your preferred API client.

✅ We've confirmed that imports work smoothly in the following clients:

API Client Steps to Import
Postman In Import Settings, set Folder Organization to Tags for better structure.
Insomnia Collections → Create, then click the collection name in the top-left corner and choose Import From File.
Bruno Click Import Collection → OpenAPI V3 File, then choose a local folder to store the workspace.
Scalar Don’t forget to configure the API key in the collection's authentication settings.

⚠️ For tools that still expect OpenAPI 3.0, use the OpenAPI 3.0 JSON, for example with Thunder Client, RapidAPI for Mac (Paw), and other older OpenAPI-based import and code generation workflows.

Netlas CLI Tool

The Netlas CLI tool is ideal for users who prefer the command line or Bash scripting. It allows you to interact with Netlas just like any other terminal application.

To install the CLI via Homebrew:

brew tap netlas-io/netlas 
brew install netlas

Or install it using pipx:

pipx install netlas

Netlas Python SDK

The Netlas Python SDK is designed for Python developers. It provides a convenient way to work with the API, with built-in handling for common errors.

Install the SDK using pip:

pip install netlas

The Netlas CLI tool is included with the SDK, so it becomes available automatically after SDK installation.

Both the Netlas Python SDK and CLI are open source and available under the MIT license in the Netlas GitHub repository.

Netlas GitHub

Authentication

Each registered Netlas user receives a unique API key. You can find your API key on the profile page, accessible from the top-right menu in the web application.

API-key access

Include your API key as a Bearer token in the Authorization header to authorize your requests. Netlas ignores keys supplied in URL query parameters. Requests made this way use anonymous limits on endpoints that allow anonymous access.

To validate an API key, call Get User Profile. This endpoint requires authentication and has no effect on your request allowance or Search Coin balance. The curl examples in this manual use the NETLAS_API_KEY environment variable.

export NETLAS_API_KEY=put_your_key_here
curl --silent --show-error --fail --output /dev/null --write-out '%{http_code}\n' \
  -H "Authorization: Bearer $NETLAS_API_KEY" \
  "https://app.netlas.io/api/users/current/"

Netlas API authorization follows RFC 6750, The OAuth 2.0 Authorization Framework: Bearer Token Usage.

The X-API-Key header was previously used for authentication and is still supported, but considered deprecated and may be removed in future versions.

If you are using the Netlas CLI or SDK, securely save your API key locally:

netlas savekey "YOUR_API_KEY"

The Netlas CLI automatically uses the saved key.

Retrieve the saved key in Python with get_api_key().

import netlas
api_key = netlas.helpers.get_api_key()

⚠️ FYI: You may be eligible for a special subscription if you're using Netlas for educational purposes, building an integration, or writing for a blog or journal.
Read more →

Rate Limits

To ensure fair usage and optimal performance, the Netlas API enforces the following rate limits:

  • 60 requests per minute for search and count operations, excluding certificate searches.
  • 3 requests per minute for search and count operations involving certificate data collections.

If these limits are exceeded, the API responds with Error 429 (Too Many Requests) and includes a Retry-After header indicating the number of seconds to wait before retrying.

The Netlas CLI and SDK handle rate limit errors automatically by default. When using the SDK, you can customize this behavior by setting the throttling and retry parameters in the search methods. This allows you to either disable automatic handling or specify the number of retry attempts.

To manage rate limits manually, catch and handle the ThrottlingError exception in your code.

import netlas
import time

nc = netlas.Netlas()

for i in range(65):
    try:
        nc.host(host=None, fields=["*"], exclude_fields=True, throttling=False)
    except netlas.ThrottlingError as e:
        time.sleep(e.retry_after) # Wait for the specified time before retrying

⚠️ Important: Always handle Netlas API errors correctly. Ignoring rate limits or other errors may result in temporary access restrictions. Read more about the blocking policy in the FAQ section.

Usage quotas

Each page fetched in a paginated search counts as one request. A call to Responses Count counts as one request and costs zero Search Coins. A Host Summary lookup with the default fields counts as one request and costs one Search Coin.

Host Info

Retrieves a summary of Netlas data for a specific IP address or domain name.

An IP lookup summarizes observations for the address itself, excluding domain-based virtual hosts. Use Responses Search for individual service responses, including virtual hosts observed on an IP address or within a CIDR range.

The same summary is available through the IP/Domain Info tool in the web app.

Host Summary

Retrieve the latest available data for {host}.

path Parameters
required
IPv4 (string) or Domain (string)

The IP address or domain name for which data should be retrieved.

query Parameters
fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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
public_indices_only
boolean (public_indices_only)
Default: false
Example: public_indices_only=true

By default, data is requested from both private and public indices, returning the most recent results. Use this query parameter to restrict the search to public indices only.

Responses

Request samples

# IP query example
curl -s -X GET \
    "https://app.netlas.io/api/host/23.215.0.136/" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

# Domain query example
curl -s -X GET \
    "https://app.netlas.io/api/host/example.com/" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

# Filtering output
curl -s -X GET \
"https://app.netlas.io/api/host/google.com/" \
  -G \
    --data-urlencode 'fields=whois.registrant.organization' \
    --data-urlencode 'source_type=include' \
  -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
Example
{
  • "type": "ip",
  • "ip": "23.215.0.136",
  • "ptr": [
    ],
  • "geo": {
    },
  • "privacy": {
    },
  • "organization": "Example Technologies, Inc.",
  • "domains": [
    ],
  • "domains_count": 2,
  • "whois": {
    },
  • "ports": [
    ],
  • "software": [],
  • "ioc": [],
  • "source": [
    ]
}

Caller’s Host Summary

Retrieves the latest available data for the IP address of the client making the request.

Use this method to obtain information about your own IP address.

query Parameters
fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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
public_indices_only
boolean (public_indices_only)
Default: false
Example: public_indices_only=true

By default, data is requested from both private and public indices, returning the most recent results. Use this query parameter to restrict the search to public indices only.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/host/" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "type": "ip",
  • "ip": "23.215.0.136",
  • "ptr": [
    ],
  • "geo": {
    },
  • "privacy": {
    },
  • "organization": "Example Technologies, Inc.",
  • "domains": [
    ],
  • "domains_count": 2,
  • "whois": {
    },
  • "ports": [
    ],
  • "software": [],
  • "ioc": [],
  • "source": [
    ]
}

Responses

Access continuously updated internet scan data collected by Netlas.

The same data is available in the Netlas web app through the Responses Search tool.

Responses Search

Searches for q in the selected indices and returns up to 20 results after skipping the first start documents.

Your plan's search page limit applies. For each query, the API lets you page through only the first 10,000 results across all selected indices.

Use the Download endpoint to export up to 10,000 results per request, subject to your plan's download limit.

query Parameters
q
required
string (q)
Examples:
  • q=host:example.com - responses for a specific host
  • q=ip:[1.1.1.1 TO 1.1.1.255] - responses for a specific IP range
  • q=protocol:ftp AND geo.country:VA - specific protocol and country

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

start
integer (start) [ 0 .. 9980 ]
Default: 0
Example: start=20

Use for pagination. Offset from the first search result to return.

indices
string (indices)
Examples:
  • indices= - Leave empty or omit to search in the latest data available
  • indices=2026-09-29,2026-09-10 - Search in specific indices
  • indices=1764230724-u6lrerkpx - Search in private index

A single index label or a comma-separated string of index labels to search in. Do not use a JSON array or repeat the query parameter.

ℹ️ Unlike other search tools, Responses search does not have a default index.
If indices is not specified, the search is conducted using the latest publicly available internet scan data, which is updated in real time.

fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/responses/" \
    -G \
    --data-urlencode "q=host:example.com" \
    --data-urlencode "fields=ip,uri" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Responses 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
required
string (q)
Example: q=ip:"23.192.0.0/11"

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

indices
string (indices)
Examples:
  • indices= - Leave empty or omit to search in the latest data available
  • indices=2026-09-29,2026-09-10 - Search in specific indices
  • indices=1764230724-u6lrerkpx - Search in private index

A single index label or a comma-separated string of index labels to search in. Do not use a JSON array or repeat the query parameter.

ℹ️ Unlike other search tools, Responses search does not have a default index.
If indices is not specified, the search is conducted using the latest publicly available internet scan data, which is updated in real time.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/responses_count/" \
    -G \
    --data-urlencode 'q=ip:"23.192.0.0/11"' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "count": 123
}

Responses Download

Retrieves up to size search results matching the query q in the selected indices. A download request can return up to 10,000 results. Your plan may set a lower limit.

Request Body schema: application/json
required
q
required
string (q)

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

size
required
integer <= 10000

Number of documents to download, subject to your plan's download limit. Use the corresponding Count endpoint to estimate the number of matching documents.

indices
string (indices)

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
required
Array of strings (fields)

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
required
string (source_type)
Enum: "include" "exclude"

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
string
Default: "json"
Enum: "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.

Responses

Request samples

Content type
application/json
{
  • "q": "ip:\"23.192.0.0/11\"",
  • "size": 100,
  • "fields": [
    ],
  • "source_type": "include",
  • "indices": "2026-09-29"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Responses Facet Search

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

query Parameters
q
required
string (q)
Example: q=ip:"23.192.0.0/11"

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

facets
required
Array of strings (facets)
Example: facets=protocol

A list of fields to group search results by.

indices
string (indices)
Examples:
  • indices= - Leave empty or omit to search in the latest data available
  • indices=2026-09-29,2026-09-10 - Search in specific indices
  • indices=1764230724-u6lrerkpx - Search in private index

A single index label or a comma-separated string of index labels to search in. Do not use a JSON array or repeat the query parameter.

ℹ️ Unlike other search tools, Responses search does not have a default index.
If indices is not specified, the search is conducted using the latest publicly available internet scan data, which is updated in real time.

size
integer (facet_search_size) [ 1 .. 1000 ]
Default: 100

Number of search results to return for each facet.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/responses_facet/" \
    -G \
    --data-urlencode 'q=ip:"23.192.0.0/11"' \
    --data-urlencode 'facets=protocol' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "aggregations": [
    ]
}

Domains

Access DNS records for domain names, including records that map domains to IP addresses.

The same data is available in the Netlas web app through the DNS Search tool.

Domains Search

Searches for q in the selected indices and returns up to 20 results after skipping the first start documents.

Your plan's search page limit applies. For each query, the API lets you page through only the first 10,000 results across all selected indices.

Use the Download endpoint to export up to 10,000 results per request, subject to your plan's download limit.

query Parameters
q
required
string (q)
Examples:
  • q=domain:*.example.com a:* - subdomains of example.com with any A record
  • q=domain:/(.*\.)?paypal\.[a-z0-9-]*/ - domains and subdomains named "paypal" (regex)
  • q=ns:*.cloudflare.com - domains using Cloudflare name servers

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

start
integer (start) [ 0 .. 9980 ]
Default: 0
Example: start=20

Use for pagination. Offset from the first search result to return.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=domain,a

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/domains/" \
    -G \
    --data-urlencode "q=domain:example.com" \
    --data-urlencode "fields=a,aaaa,ns,mx,txt" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "items": [
    ]
}

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
required
string (q)
Example: q=domain:*.example.com a:*

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

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/domains_count/" \
    -G \
    --data-urlencode "q=domain:*.example.com a:*" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "count": 123
}

Domains Download

Retrieves up to size search results matching the query q in the selected indices. A download request can return up to 10,000 results. Your plan may set a lower limit.

Request Body schema: application/json
required
q
required
string (q)

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

size
required
integer <= 10000

Number of documents to download, subject to your plan's download limit. Use the corresponding Count endpoint to estimate the number of matching documents.

indices
string (indices)

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
required
Array of strings (fields)

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
required
string (source_type)
Enum: "include" "exclude"

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
string
Default: "json"
Enum: "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.

Responses

Request samples

Content type
application/json
{
  • "q": "domain:*.example.com a:*",
  • "size": 100,
  • "indices": "2026-10-01",
  • "fields": [
    ],
  • "source_type": "include"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Domains Facet Search

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

query Parameters
q
required
string (q)
Example: q=level:2

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

facets
required
Array of strings (facets)
Example: facets=zone

A list of fields to group search results by.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

size
integer (facet_search_size) [ 1 .. 1000 ]
Default: 100

Number of search results to return for each facet.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/domains_facet/" \
    -G \
    --data-urlencode 'q=level:2' \
    --data-urlencode 'facets=zone' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "aggregations": [
    ]
}

IP WHOIS

Access information on IP address ownership, network providers, contacts, and other WHOIS data.

The same data is available in the Netlas web app through the IP WHOIS Search tool.

IP WHOIS Search

Searches for q in the selected indices and returns up to 20 results after skipping the first start documents.

Your plan's search page limit applies. For each query, the API lets you page through only the first 10,000 results across all selected indices.

Use the Download endpoint to export up to 10,000 results per request, subject to your plan's download limit.

query Parameters
q
required
string (q)
Examples:
  • q=ip:23.215.0.136 - search for a specific IP address
  • q=net.cidr:1.1.1.0 net.net_size:255 - search for a specific CIDR range
  • q=net.organization:Mandiant - networks related to a specific organization

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

start
integer (start) [ 0 .. 9980 ]
Default: 0
Example: start=20

Use for pagination. Offset from the first search result to return.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_ip/" \
    -G \
    --data-urlencode "q=ip:212.77.12.64" \
    --data-urlencode "fields=net,asn" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "items": [
    ]
}

IP WHOIS 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
required
string (q)
Example: q=net.country:VA

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

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_ip_count/" \
    -G \
    --data-urlencode "q=net.country:VA" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "count": 123
}

IP WHOIS Download

Retrieves up to size search results matching the query q in the selected indices. A download request can return up to 10,000 results. Your plan may set a lower limit.

Request Body schema: application/json
required
q
required
string (q)

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

size
required
integer <= 10000

Number of documents to download, subject to your plan's download limit. Use the corresponding Count endpoint to estimate the number of matching documents.

indices
string (indices)

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
required
Array of strings (fields)

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
required
string (source_type)
Enum: "include" "exclude"

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
string
Default: "json"
Enum: "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.

Responses

Request samples

Content type
application/json
{
  • "q": "net.country:VA",
  • "size": 100,
  • "fields": [
    ],
  • "source_type": "include"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

IP WHOIS Facet Search

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

query Parameters
q
required
string (q)
Example: q=*

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

facets
required
Array of strings (facets)
Example: facets=net.country

A list of fields to group search results by.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

size
integer (facet_search_size) [ 1 .. 1000 ]
Default: 100

Number of search results to return for each facet.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_ip_facet/" \
    -G \
    --data-urlencode 'q=*' \
    --data-urlencode 'facets=net.country' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "aggregations": [
    ]
}

Domain WHOIS

Access information on domain ownership, registrars, contacts, registration and expiration dates, and other WHOIS data.

The same data is available in the Netlas web app through the Domain WHOIS Search tool.

Domain WHOIS Search

Searches for q in the selected indices and returns up to 20 results after skipping the first start documents.

Your plan's search page limit applies. For each query, the API lets you page through only the first 10,000 results across all selected indices.

Use the Download endpoint to export up to 10,000 results per request, subject to your plan's download limit.

query Parameters
q
required
string (q)
Examples:
  • q=example.com - search for a specific domain
  • q=registrant.organization:"Meta Platforms" - domain registered to a specific organization
  • q=expiration_date:[2025-01-01 TO 2025-01-31] - domains expiring in 2023

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

start
integer (start) [ 0 .. 9980 ]
Default: 0
Example: start=20

Use for pagination. Offset from the first search result to return.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_domains/" \
    -G \
    --data-urlencode "q=domain:example.com" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Domain WHOIS 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
required
string (q)
Example: q=registrant.organization:"Meta Platforms"

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

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_domains_count/" \
    -G \
    --data-urlencode 'q=registrant.organization:"Meta Platforms"' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "count": 123
}

Domain WHOIS Download

Retrieves up to size search results matching the query q in the selected indices. A download request can return up to 10,000 results. Your plan may set a lower limit.

Request Body schema: application/json
required
q
required
string (q)

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

size
required
integer <= 10000

Number of documents to download, subject to your plan's download limit. Use the corresponding Count endpoint to estimate the number of matching documents.

indices
string (indices)

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
required
Array of strings (fields)

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
required
string (source_type)
Enum: "include" "exclude"

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
string
Default: "json"
Enum: "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.

Responses

Request samples

Content type
application/json
{
  • "q": "registrant.organization:\"Meta Platforms\"",
  • "size": 100,
  • "fields": [
    ],
  • "source_type": "include"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Domain WHOIS Facet Search

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

query Parameters
q
required
string (q)
Example: q=level:2

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

facets
required
Array of strings (facets)
Example: facets=zone

A list of fields to group search results by.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

size
integer (facet_search_size) [ 1 .. 1000 ]
Default: 100

Number of search results to return for each facet.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/whois_domains_facet/" \
    -G \
    --data-urlencode 'q=level:2' \
    --data-urlencode 'facets=zone' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "aggregations": [
    ]
}

Certificates

Access X.509 certificates gathered from various sources.

The same data is available in the Netlas web app through the Certificates Search tool.

Certificates Search

Searches for q in the selected indices and returns up to 20 results after skipping the first start documents.

Your plan's search page limit applies. For each query, the API lets you page through only the first 10,000 results across all selected indices.

Use the Download endpoint to export up to 10,000 results per request, subject to your plan's download limit.

query Parameters
q
required
string (q)
Example: q=certificate.subject_dn:"example.com"

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

start
integer (start) [ 0 .. 9980 ]
Default: 0
Example: start=20

Use for pagination. Offset from the first search result to return.

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

ℹ️ Netlas stores all collected certificates in a single default index.
This parameter is included for interface consistency but is not applicable to certificate-related endpoints.

fields
Array of strings (fields)
Default: "*"
Examples: fields=* fields=ip fields=ptr[0],whois.abuse

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
string (source_type)
Default: "include"
Enum: "include" "exclude"

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

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/certs/" \
    -G \
    --data-urlencode "q=certificate.subject_dn:example.com" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Certificates 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
required
string (q)
Example: q=certificate.subject_dn:"example.com"

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

indices
string (indices)
Examples: indices=2026-10-01 indices=2026-10-01,2026-09-08

ℹ️ Netlas stores all collected certificates in a single default index.
This parameter is included for interface consistency but is not applicable to certificate-related endpoints.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/certs_count/" \
    -G \
    --data-urlencode 'q=certificate.subject_dn:example.com' \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "count": 123
}

Certificates Download

Retrieves up to size search results matching the query q in the selected indices. A download request can return up to 10,000 results. Your plan may set a lower limit.

Request Body schema: application/json
required
q
required
string (q)

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

size
required
integer <= 10000

Number of documents to download, subject to your plan's download limit. Use the corresponding Count endpoint to estimate the number of matching documents.

indices
string (indices)

Labels for the indices to search, supplied as a single string. For one index, use a label such as "2026-10-01". For multiple indices, separate the labels with commas, as in "2026-10-01,2026-09-08".

Use this format in both URL query parameters and JSON request bodies. Do not use a JSON array or repeat the indices query parameter.

Omit this parameter to use the endpoint's default index selection.

Call the Indices endpoint to get the list of available indices.

fields
required
Array of strings (fields)

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
required
string (source_type)
Enum: "include" "exclude"

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
string
Default: "json"
Enum: "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.

Responses

Request samples

Content type
application/json
{
  • "q": "certificate.subject_dn:\"example.com\"",
  • "size": 100,
  • "fields": [
    ],
  • "source_type": "include"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Indices

Netlas organizes its data into indices. Each search tool has a dedicated set of indices with data collected on specific dates.

Responses Search provides access to two types of indices.

  • Public indices are the standard Netlas indices available to all users.
  • Private indices are created with Private Scanner and can be shared with teammates.

Get Indices

Retrieve a list of indices accessible to the user.

Responses

Request samples

curl -X GET "https://app.netlas.io/api/indices/" \
    -H "content-type: application/json"

Response samples

Content type
application/json
[
  • {
    }
]

Mapping

Netlas stores collected data as JSON documents, organized into several data collections, such as Responses and Domains. Each data collection has its own mapping, which defines its document structure.

This group of methods provides access to the mapping of each data collection.

Get Mapping

Returns the field mapping for the default index in the {collection}.

Use this mapping to see which fields are available and check their types when writing Lucene queries.

Each field or subfield will include either a field_type or children property:

  • A field_type indicates that the field is a leaf node in the mapping tree.
  • A children property indicates a parent field that contains nested fields.

Example:

{
  "leaf": {
    "field_type": "type"
  },
  "parent": {
    "children": [
      {
        "leaf": {
          "field_type": "type"
        }
      }
    ]
  }
}

❗️Note: This endpoint returns the search mapping, which may slightly differ from the structure of actual search results. Refer to the response examples for each data collection to see how fields are represented in real-world data.

path Parameters
collection
required
string (dataCollectionType)
Enum: "responses" "domains" "whois_ip" "whois_domains" "certs"

The collection whose field mapping to retrieve.

Responses

Request samples

curl -X GET \
    "https://app.netlas.io/api/mapping/responses/" \
    -H "content-type: application/json"

Response samples

Content type
application/json
{
  • "http": {
    },
  • "ip": {
    }
}

Get Facet Mapping

Returns the facet-specific field mapping for the {collection}.

This mapping includes only fields that are suitable for use in facet (group-by) searches. Not all fields in the regular mapping can be used for aggregation, so fields that are not aggregatable (e.g., large text fields, arrays) are excluded from the facet mapping.

Use this endpoint to discover which fields are available for grouping results in your search queries.

path Parameters
collection
required
string (dataCollectionType)
Enum: "responses" "domains" "whois_ip" "whois_domains" "certs"

The collection whose facet mapping to retrieve.

Responses

Request samples

curl -X GET \
    "https://app.netlas.io/api/mapping/responses/facet/" \
    -H "content-type: application/json"

Response samples

Content type
application/json
{
  • "http": {
    },
  • "ip": {
    }
}

Discovery

The Discovery API returns relationships and the underlying result data for a node or group. Broader coverage can require multiple searches on related nodes or data from other collections. The Discovery tool in the web app visualizes these relationships as a graph.

Searches for a Node

Retrieve a list of available searches for the specified node, defined by node_value and node_type.

Request Body schema: application/json
required
node_type
required
string (node_type)
Enum: "address" "as_name" "asn" "dns_txt" "domain" "email" "favicon" "http_tracker" "ip" "ip-range" "jarm" "network_name" "organization" "person" "phone" "text"

The type of the node or group of nodes.

node_value
required
string (node_value)

The value of the node.

Responses

Request samples

Content type
application/json
{
  • "node_type": "domain",
  • "node_value": "example.com"
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Perform a Node Search

Execute a search using search_field_id for the node specified by node_value and node_type, and retrieve the results.

header Parameters
X-Count-Id
required
string (X-Count-Id)
Example: 99ec3869b238d440bffc2c6e7b4c8dc3f98cdd9f6b3106d1350cf3c8c0af1837e2942a04780e223b215eb8b663cf5353

Perform a /api/discovery/node_count request to get the X-Count-Id.

Request Body schema: application/json
required
node_type
required
string (node_type)
Enum: "address" "as_name" "asn" "dns_txt" "domain" "email" "favicon" "http_tracker" "ip" "ip-range" "jarm" "network_name" "organization" "person" "phone" "text"

The type of the node or group of nodes.

node_value
required
string (node_value)

The value of the node.

search_field_id
required
integer (search_field_id)

The ID of the search type.

Responses

Request samples

Content type
application/json
{
  • "node_type": "domain",
  • "node_value": "example.com",
  • "search_field_id": 29
}

Response samples

Content type
application/json
{
  • "aggregations": [
    ]
}

Searches for a Group

Retrieve a list of available searches for a group of nodes. Specify each node in node_value and use the same node_type for all nodes.

⚠️ Retrieving results for large groups may take considerable time.

Request Body schema: application/json
required
node_type
required
string (node_type)
Enum: "address" "as_name" "asn" "dns_txt" "domain" "email" "favicon" "http_tracker" "ip" "ip-range" "jarm" "network_name" "organization" "person" "phone" "text"

The type of the node or group of nodes.

node_value
required
Array of strings (node_value)

A list of nodes.

Responses

Request samples

Content type
application/json
{
  • "node_type": "domain",
  • "node_value": [
    ]
}

Response samples

Content type
application/x-ndjson
"{\"search_field\": \"TXT records for domain\", \"count\": 2, \"preview\": [\"_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9\", \"v=spf1 -all\"], \"search_field_id\": 32, \"is_too_much_docs\": false, \"node_types\": {\"dns_txt\": 3}}\n{\"search_field\": \"NS servers for domain\", \"count\": 2, \"preview\": [\"elliott.ns.cloudflare.com\", \"hera.ns.cloudflare.com\"], \"search_field_id\": 30, \"is_too_much_docs\": false, \"node_types\": {\"domain\": 1}}\n{\"search_field\": \"A records for domain\", \"count\": 16, \"preview\": [\"8.6.112.0\", \"8.6.112.6\", \"8.6.112.8\", \"8.6.112.10\", \"8.47.69.0\"], \"search_field_id\": 29, \"is_too_much_docs\": false, \"node_types\": {\"ip\": 0}}\n"

Perform a Group Search

Execute a search using search_field_id for the group of nodes specified in node_value, and retrieve the results.

⚠️ Retrieving results for large groups may take considerable time.

header Parameters
X-Count-Id
required
string (X-Count-Id)
Example: 99ec3869b238d440bffc2c6e7b4c8dc3f98cdd9f6b3106d1350cf3c8c0af1837e2942a04780e223b215eb8b663cf5353

Perform a /api/discovery/group_of_nodes_count request to get the X-Count-Id.

Request Body schema: application/json
required
node_type
required
string (node_type)
Enum: "address" "as_name" "asn" "dns_txt" "domain" "email" "favicon" "http_tracker" "ip" "ip-range" "jarm" "network_name" "organization" "person" "phone" "text"

The type of the node or group of nodes.

node_value
required
Array of strings (node_value)

A list of nodes.

search_field_id
required
integer (search_field_id)

The ID of the search type.

Responses

Request samples

Content type
application/json
{
  • "node_type": "domain",
  • "node_value": [
    ],
  • "search_field_id": 29
}

Response samples

Content type
application/x-ndjson
"{\"node_key\": \"example.org\", \"aggregations\": [{\"is_valid\": true, \"node_value\": \"104.18.2.24\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"104.18.3.24\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"40.89.128.172\", \"node_type\": \"ip\"}]}\n{\"node_key\": \"example.com\", \"aggregations\": [{\"is_valid\": true, \"node_value\": \"104.18.27.120\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"104.18.26.120\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.6.112.0\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.47.69.0\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.47.69.10\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.6.112.10\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"47.74.138.66\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"47.88.251.189\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"47.88.128.4\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"47.88.198.69\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"47.88.198.68\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.47.69.8\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.6.112.8\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.6.112.6\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"8.47.69.6\", \"node_type\": \"ip\"}, {\"is_valid\": true, \"node_value\": \"23.227.38.74\", \"node_type\": \"ip\"}]}\n"

Check Search Status

Retrieve the current status of an ongoing operation to list available searches for a group or run a search for a group.

path Parameters
stream-id
required
string (X-Stream-Id)
Example: 99ec3869b238d440bffc2c6e7b4c8dc3c63309fe08d50c704cba0c91acfedc63

The unique identifier of a stream used to track the progress of a search.

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

Scanner

The Netlas Private Scanner performs non-intrusive scans of internet-connected assets.

This group of endpoints is used by the Private Scanner tool in the Netlas web app.

Get Scans

Retrieve a list of private scans available to the user.

query Parameters
own_scans_only
boolean
Default: true

Return only scans owned by the user.

Responses

Request samples

curl -s -X GET "https://app.netlas.io/api/scanner/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
[
  • {
    }
]

Create Scan

Create and initiate a new private scan.

Request Body schema: application/json
required
Any of
name
required
string (scan_name)

Descriptive label for the scan.

agent_id
integer (agent_id)

Identifier of the scanner agent to use for the scan.

required
Array of IPv4 (string) or Domain (string) or CIDR (string) (targets)

A list of targets for the scan.
Valid targets include IP addresses, domain names, and CIDR ranges.

saved_graph_id
string

Identifier of the saved attack surface graph to scan.

version
integer

Saved graph version.

Responses

Request samples

Content type
application/json
{
  • "name": "My Private Scan",
  • "agent_id": 5,
  • "targets": [
    ],
  • "saved_graph_id": "string",
  • "version": 0
}

Response samples

Content type
application/json
[
  • {
    }
]

Get Scanner Agents

Retrieve the list of scanner agents available for initiating private scans from different geolocations.

Responses

Request samples

curl -X GET "https://app.netlas.io/api/scanner/agents/" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
[
  • {
    }
]

Compare Scans

Compare the reports of two private scans and return changes to their scope, collected responses, and CVE matches. This reads existing reports; it does not initiate a scan.

Pass the source scan ID in from and the destination scan ID in to. Use numeric scan IDs, not report IDs or index labels. Both parameters are required and must refer to different scans accessible to the current user.

Changes are directional, from from to to:

  • added: present in the destination report but absent from the source report.
  • removed: present in the source report but absent from the destination report.
  • changed: present in both reports, with differences listed in changes. Each change contains a field path and its old and new values.

The response includes report metadata in from and to, detailed events grouped under events.scope, events.responses, and events.cve, and event counts in the corresponding summary sections. Unchanged records are not included in the event lists. Empty lists and zero counts indicate no differences in that section.

For scope events, object is a target string. For response and CVE events, it is the report record: the destination record for added or changed, and the source record for removed. CVE events also include their report grouping in group, such as product or cpe.

Reports can be compared even when scan scopes or modes differ. Such differences can affect which services appear, so use comparable scans when tracking changes over time. The parameter order determines the direction; the API does not reorder scans by date. The created_at values in the comparison identify report generation times, not scan start times.

query Parameters
from
required
integer (scan_id)
Example: from=123

Numeric ID of the source private scan, used as the comparison baseline.

to
required
integer (scan_id)
Example: to=124

Numeric ID of the destination private scan to compare against the source.

Responses

Request samples

curl -s -G "https://app.netlas.io/api/scanner/compare/" \
    --data-urlencode "from=123" \
    --data-urlencode "to=124" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "from": {
    },
  • "to": {
    },
  • "events": {
    },
  • "summary": {
    }
}

Get Scan

Retrieve detailed information about a private scan using its id.

path Parameters
id
required
integer (scan_id)
Example: 123

Unique identifier for the scan.

Responses

Request samples

if [ -z "$1" ]; then
    echo "Error: Pass scan ID as an argument"
    exit 1
fi

curl -X GET "https://app.netlas.io/api/scanner/$1/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "id": 89,
  • "name": "Test Scan",
  • "label": "1764230724-u6lrerkpx",
  • "targets": [
    ],
  • "created_at": "2025-11-27T08:05:24.518270Z",
  • "owner": {},
  • "is_scan_from_team": false,
  • "mode": "top_tcp_ports",
  • "state": "done",
  • "rescan_of": null,
  • "agent": {
    }
}

Update Scan

Update the label of a private scan using its id.

path Parameters
id
required
integer (scan_id)
Example: 123

Unique identifier for the scan.

Request Body schema: application/json
required

The new label for the scan

name
string (scan_name)

New label for the scan

Responses

Request samples

Content type
application/json
{
  • "name": "Updated scan name"
}

Response samples

Content type
application/json
{
  • "id": 89,
  • "name": "Test Scan",
  • "label": "1764230724-u6lrerkpx",
  • "targets": [
    ],
  • "created_at": "2025-11-27T08:05:24.518270Z",
  • "owner": {},
  • "is_scan_from_team": false,
  • "mode": "top_tcp_ports",
  • "state": "done",
  • "rescan_of": null,
  • "agent": {
    }
}

Delete Scan

Permanently remove a private scan using its id.

path Parameters
id
required
integer (scan_id)
Example: 123

Unique identifier for the scan.

Responses

Request samples

if [ -z "$1" ]; then
    echo "Error: Pass scan ID as an argument"
    exit 1
fi

curl -X 'DELETE' "https://app.netlas.io/api/scanner/$1/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "type": "authorization_required",
  • "title": "Authorization required",
  • "detail": "You have to be signed in to perform this operation."
}

Get Scan Report

Retrieve the JSON report generated for a private scan using its id.

path Parameters
id
required
integer (scan_id)
Example: 123

Unique identifier for the scan.

Responses

Request samples

if [ -z "$1" ]; then
    echo "Error: Pass scan ID as an argument"
    exit 1
fi

curl -s -X GET "https://app.netlas.io/api/scanner/$1/report/" \
    -H "Authorization: Bearer $NETLAS_API_KEY" \
    -H "Accept: application/json"

Response samples

Content type
application/json
{
  • "id": 1001,
  • "name": "Example scan report",
  • "created_at": "2026-04-10T12:00:00Z",
  • "scan_id": 123,
  • "scope": [
    ],
  • "saved_graph": null,
  • "mode": "top_tcp_ports",
  • "agent": {
    },
  • "responses": [
    ],
  • "cve": {
    }
}

Rescan a Scan

Run an existing private scan again with the same targets and scan configuration, including its name, scan mode, and scanner agent (location).

Pass only the source scan's numeric id in the URL path. No request body is required; you do not need to submit the targets or configuration again. Use the scan id, not its index label.

A successful request returns HTTP 201 with a JSON array of newly created scan records. Each new scan has its own id, index label, and progress, and rescan_of identifies the source scan. The source scan and its results are retained. This starts a new scan; the collected results reflect the targets at the time of the rescan.

Scan creation is asynchronous. Use the returned scan id with Get Scan to check progress and Get Scan Report for its report. Normal private-scan credit requirements apply.

path Parameters
id
required
integer (scan_id)
Example: 123

Numeric ID of the private scan to reproduce. The new scan inherits its targets and configuration.

Responses

Request samples

if [ -z "$1" ]; then
    echo "Error: Pass a scan ID as an argument"
    exit 1
fi

curl -X POST "https://app.netlas.io/api/scanner/$1/rescan/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
[
  • {
    }
]

Change Scan Priority

Modify the priority of a private scan with id in the processing queue by shifting it shift positions.

ℹ️ This adjustment applies only to scans with the Pending status. Scans that are already scheduled or in progress will not be affected.

Request Body schema: application/json
required
id
required
integer (scan_id)

Unique identifier for the scan.

shift
required
integer (shift)

The number of positions to adjust the scan's priority in the queue.

  • A negative value (e.g., -2) moves the scan closer to the front, prioritizing it for earlier execution.
  • A positive value (e.g., +3) moves the scan further back, delaying its execution.

Responses

Request samples

Content type
application/json
{
  • "id": 123,
  • "shift": -2
}

Response samples

Content type
application/json
[
  • {
    }
]

Bulk Delete

Delete multiple private scans using their respective id values.

Request Body schema: application/json
required

The list of scan IDs to delete

ids
Array of integers (scan_id)

List of scan IDs to delete

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
{
  • "detail": "Validation error."
}

Bulk Rescan

Run multiple existing private scans again, reproducing each source scan's targets and configuration, including its name, scan mode, and scanner agent (location).

Send a JSON object containing only ids, a non-empty array of numeric scan IDs. Use scan IDs, not index labels; you do not need to submit targets or configuration again.

A processed batch returns HTTP 200 with a JSON array in request order. Each result includes id, identifying the requested source scan, and status. A created result includes the new scan in scan; its rescan_of points to the source ID. An error result includes a human-readable explanation in detail. Do not confuse the result's source id with the new scan's scan.id.

Scans are processed independently: a missing scan produces an item-level error without preventing other requested scans from being created. HTTP 200 does not mean every rescan succeeded; check each item's status. Repeated IDs are processed as separate entries, so submit each source ID once to avoid requesting repeated rescans.

Missing or empty ids returns HTTP 400 with detail: "IDs are required.". Missing authentication returns HTTP 403.

New scans run asynchronously and use private-scan credits. Check progress with Get Scan, using each successful result's scan.id. Source scans and their results are retained.

Request Body schema: application/json
required

Numeric IDs of the source private scans. No targets or scan configuration are required.

ids
required
Array of integers (scan_id) non-empty

Numeric IDs of the source private scans. No targets or scan configuration are required.

Responses

Request samples

Content type
application/json
{
  • "ids": [
    ]
}

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Datastore

The Netlas Datastore API provides access to a wide range of network-related datasets.

Use these endpoints to access the Netlas Datastore.

Get Products

Retrieve a list of published datasets available in the Netlas Datastore.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/datastore/products/" \
    -H "content-type: application/json"

Response samples

Content type
application/json
[
  • {
    }
]

Get Product

Retrieve details of a specific dataset from the Netlas Datastore.

path Parameters
id
required
integer (product_id)
Examples: 28 80 241 242 279 280

A unique identifier for the product.

Datasets belong to Product objects. A product can include one or multiple datasets.

Responses

Request samples

curl -s -X GET \
    "https://app.netlas.io/api/datastore/products/115/" \
    -H "content-type: application/json"

Response samples

Content type
application/json
{
  • "id": 115,
  • "description": "Known domain names with A, MX, NS, CNAME and TXT records.",
  • "datasets": [
    ],
  • "name": "fdns",
  • "pretty_name": "Forward DNS (fDNS)"
}

Users

User profile data and settings.

Get User Profile

Retrieve the profile details of the authenticated user.

Use this endpoint to validate a Bearer API key. It does not consume your request allowance or Search Coins.

Responses

Request samples

curl -X GET "https://app.netlas.io/api/users/current/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"

Response samples

Content type
application/json
{
  • "api_key": {
    },
  • "email": "[email protected]",
  • "first_name": "string",
  • "last_name": "string",
  • "account_category": "company",
  • "occupation": "string",
  • "occupation_details": "string",
  • "is_welcome_tour_passed": true,
  • "plan": { },
  • "plan_active_until": "2019-08-24",
  • "next_plan": { },
  • "is_next_plan_paid": true,
  • "next_plan_paid_period": "string",
  • "referral_code": "string",
  • "bonuses": 0,
  • "notifications": [
    ],
  • "teams": [
    ],
  • "is_recurring": true,
  • "is_authenticated_via_social": true,
  • "referral_link_usage_amount": 0,
  • "profession": "string",
  • "usage_purpose": "string"
}

Update User Profile

Modify the profile details of the currently authenticated user.

Request Body schema: application/json
required
first_name
string

The user's first name.

last_name
string

The user's last name.

Responses

Request samples

Content type
application/json
Example

Update both the first and last name.

{
  • "first_name": "John",
  • "last_name": "Doe"
}

Response samples

Content type
application/json
{
  • "api_key": {
    },
  • "email": "[email protected]",
  • "first_name": "string",
  • "last_name": "string",
  • "account_category": "company",
  • "occupation": "string",
  • "occupation_details": "string",
  • "is_welcome_tour_passed": true,
  • "plan": { },
  • "plan_active_until": "2019-08-24",
  • "next_plan": { },
  • "is_next_plan_paid": true,
  • "next_plan_paid_period": "string",
  • "referral_code": "string",
  • "bonuses": 0,
  • "notifications": [
    ],
  • "teams": [
    ],
  • "is_recurring": true,
  • "is_authenticated_via_social": true,
  • "referral_link_usage_amount": 0,
  • "profession": "string",
  • "usage_purpose": "string"
}

Get User Counters

Retrieve user profile counters, including request limits and Netlas Coins balance. This endpoint is public, but authenticated requests may return additional counters.

Responses

Request samples

curl -X GET "https://app.netlas.io/api/users/profile_data/" \
    -H "content-type: application/json" \
    -H "Authorization: Bearer $NETLAS_API_KEY"
    

Response samples

Content type
application/json
{
  • "requests_left": {
    },
  • "coins": {
    },
  • "scan_coins": {
    }
}