Skip to main content
GET
/
v1
/
asset
/
enumerate
/
{enum_id}
/
export
Export Enumeration
curl --request GET \
  --url https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.projectdiscovery.io/v1/asset/enumerate/{enum_id}/export")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
"<string>"
{
"export_id": "<string>"
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Path Parameters

enum_id
string
required

Query Parameters

not_seen_for_days
integer

Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched.

Required range: x >= 1
format
enum<string>
Available options:
raw,
json,
csv

Search by string

labels
string

Filter by comma separated labels, e.g-> labels=p1,p2

is_new
boolean

Filter by new content

host
string

Filter by comma separated hosts, e.g-> host=p1,p2

domains
string

Filter by comma separated domains, e.g-> domains=p1,p2

port
string

Filter by comma separated ports, e.g-> port=p1,p2

status_code
string

Filter by comma separated status codes, e.g-> status_code=p1,p2

title
string

Filter by comma separated titles, e.g-> title=p1,p2

content_length
string

Filter by comma separated content lengths, e.g-> content_length=p1,p2

cname
string

cname to filter

technologies
string

technologies to filter

ip
string

ips to filter

custom_filter
string

custom query to filter. double encode the query string.

is_screenshot
boolean

Return records that have screenshots

is_tech
boolean

Return records that have technologies

is_favicon
boolean

Return the records that have favicon

time
enum<string>
default:all_time

time filter to select

Available options:
last_day,
last_week,
last_month,
last_3_months,
last_6_months,
last_12_months,
all_time
start_date
string<date>

time filter start date

end_date
string<date>

time filter end date

favicon
string

Filter by comma separated favicons, e.g-> favicon=p1,p2

only_dns
boolean

Query only dns FQDN records

only_ip
boolean

Query only dns IP records

async
boolean

Response

OK

The response is of type string.