Search indexed hosts with a human-friendly query.
POST/data/hosts
- Takes: Domain
- Takes: IP address
- Passive: the target is not contacted
- Cost: Most granular searches start at 1 credit
Returns hosts matching raw_query, paged. Set enrich_resolved_ips to add the resolved IPs of hosts that have CNAME resolutions.
Query parameters
enrich_resolved_ipsInclude resolved IPs for hosts with CNAME resolutions
Request body (JSON) · 5ShowHide
raw_query
The search query, for example host:*.example.com
include
all, or comma-separated fields such as host,resolution,port
aggregate
Keep false for normal row results
results_per_page
10, 30 (default) or 50
page
Page number, 1 to 100
Response fields · 5ShowHide
total
Total matches
took
Query time
relation
Whether total is exact or a lower bound
data[]
Host rows
next_after
Cursor for the next page
curl -X POST 'https://api.profundis.io/api/v2/common/data/hosts' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"raw_query":"host:*.example.com","include":"all","aggregate":false,"results_per_page":30,"page":1}'{
"total": 1,
"took": 12,
"relation": "eq",
"data": [
{
"host": "www.example.com"
}
]
}