POSThttps://api.deepinfo.com/v1/tools/domain-ip-extractor

Extracts domain names and IP addresses from a block of text in one call: domains holds the names (public-suffix list only), ips the IPv4 and IPv6 addresses.

Authentication

Send your API key in the apikey request header.

Request Body

ParameterTypeRequiredDescription
textstringRequired
Text to scan. Limited to 1,000,000 characters and 10,000 lines.
application/json
{
  "text": "Indicators seen in the leak: 198.51.100.7, 203.0.113.10 and 198.51.100.7 again, plus 2001:db8::1.\nHosts: www.example.com, mail.example.org, shop.example.co.uk, xn--mteri-h9ac.example.com.\nNot hosts: bad..name, host.invalid, 10.0.0.1, user@example.org"
}

Response Fields

FieldTypeDescription
domainsarray of string
The unique domain names found.
ipsarray of string
The unique IP addresses found, IPv4 and IPv6.

Response Schema

FieldTypeExample
domainsarray<string>"www.example.com"
ipsarray<string>"198.51.100.7"

Examples

Saved examples from the Deepinfo API. Selecting one loads it into the request and response panels.

Reference updated