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

Extracts every unique IPv4 and IPv6 address from a block of text. Duplicates are removed and the order follows the text.

It extracts every address it can parse, including private and reserved ones (10.0.0.1 comes back), so filter those out yourself if you only want routable 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
ipsarray of string
The unique IP addresses found, IPv4 and IPv6.

Response Schema

FieldTypePresentExample
ipsarray<string>2 of 2"198.51.100.7"

Examples

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

Reference updated