IP Enrichment for SIEM and Logs
Add the holder, the block and the net name to every event. An analyst reads a network instead of a bare address, for IPv4 and IPv6 alike, and can tell at a glance whether two alerts share a source.
Loading
Last updated
A stray address in your logs becomes a named network and a mailbox to write to. APIFreaks returns the record from ARIN, RIPE NCC, APNIC, LACNIC or AFRINIC as one clean JSON object, timestamped and with the registry's own text attached.
Free credits. No credit card.
Google LLC
ARINOverview
An IP WHOIS API is an IP WHOIS lookup you run in code. Send an IPv4 or IPv6 address and it returns the registration record from the regional internet registry (RIR) that holds it, as JSON or XML: the holder, the CIDR block and the abuse contact. It is the same record a WHOIS IP lookup tool shows in a browser, ready for a script, a SIEM or a ticket.
You do not need to know which registry holds an address: the API finds it and returns the same JSON or XML structure for all five, with the registry's own text attached and any field a registry does not publish left out. The data is fresh from the registry, and the record says when it was fetched.
Quickstart
Send one address to the live endpoint. Type an IP and the code updates in every language.
Sign up for free. Your key and your free credits are ready right away. No card needed.
Send one GET request to the live endpoint with the IP address, and pass your API key in the request header or as a query parameter.
The response holds the parsed record and the registry's own text, and says which registry answered and when. Ask for XML if you prefer it.
Response explorer
A registry record is long, but the answers inside it are few. Pick a question and the fields that answer it light up in a real response for 8.8.8.8, which is an ARIN record. Some fields exist only for some registries; the registries section below shows which.
IP ranges
A CIDR block is a start address plus a prefix length: 8.8.8.0/24 is every address from 8.8.8.0 to 8.8.8.255, 256 in all, and a smaller number after the slash means a bigger block. IPv6 works the same way: 2606:4700:4700::1111 sits in Cloudflare's 2606:4700::/32. To find the CIDR block of an IP address, look it up and read the block from the record. It can be a list: a block that is not one clean prefix comes back as several, and 61.0.0.1 sits in four.
Before you block a range. A /24 or smaller usually has one holder but not always one user, since a hosting or cloud block can serve many customers. A rule for a large block held by an ISP blocks every customer on it, so block the address instead.
Where it comes from
A Regional Internet Registry (RIR) handles IP allocation for one part of the world. It manages, distributes and registers IP addresses and AS numbers there. There are five, one for each region.
IANA hands address space to the RIRs. An RIR allocates blocks to local internet registries (LIRs), mostly ISPs and enterprises, and they assign parts of those blocks to their customers. That hierarchy is what a record's parent blocks and block status describe.
The registry that answers is the one the address was allocated from. Each publishes its own layout and its own labels, and the record tells you who answered, so you know whose layout you are reading.
Each registry labels a block in its own words, mostly meaning the same thing. Allocated means handed to an ISP or registry member to pass on. Assigned means handed to an end user for its own network. The label arrives as the block status in the record.
Registry 1 of 5
Est. 1997, USA
United States, Canada, many Caribbean and North Atlantic islands
How it labels a block
Registry 2 of 5
Est. 1992, the Netherlands
Europe, the Middle East and parts of Central Asia
How it labels a block
Registry 3 of 5
Est. 1993, Australia
Asia Pacific
How it labels a block
Registry 4 of 5
Est. 2002, Uruguay
Latin America and the Caribbean
How it labels a block
Registry 5 of 5
Est. 2005, Mauritius
Africa
How it labels a block
What to do with it
Read what the registry gave you
01
Check who answered
whois_server names the registry, so you know whose layout you are reading.
02
Treat three parts as optional
The holder, the routes and the abuse contact are published only where the registry publishes them.
03
Fall back to the raw text
When one is missing, read the registry's own text in whois_raw_response.
Abuse reports
The mailbox can sit in four places, shown here in the order to check them. The registry's contact is not always the one the holder wants, so read the remarks before you send: for 1.1.1.1 the registry lists APNIC's helpdesk, while the block's remarks send reports about the Cloudflare resolver to resolver-abuse@cloudflare.com. The how-to guide with code shows each step.
Open the how-to guide with codeUse cases
Add the holder, the block and the net name to every event. An analyst reads a network instead of a bare address, for IPv4 and IPv6 alike, and can tell at a glance whether two alerts share a source.
Group the addresses from an incident by block and by holder. Many hits from one block point to one network to investigate, not many separate sources, so one report can cover them all.
The holder's name tells a cloud or hosting network from a consumer ISP, so you can send that traffic to review. WHOIS does not score risk: for VPN, proxy or Tor signals, add the IP Threat Intelligence API.
Group your server logs by holder to see which networks send your traffic. The holder is the ISP or company that holds the block, not always the visitor, so read what a record does not tell you first.
Before you allowlist an address a partner sends you, compare its holder and its block with who they say they are. A mismatch is a reason to ask again, and a match tells you which network you are trusting.
Pivot from one address to the organization behind it: follow the holder and the parent blocks to related blocks, and read the remarks and the incident response contact where a registry publishes them. For hostnames, use the Reverse DNS Lookup API.
Record limits
A WHOIS record is the registry's word about who holds a block. It does not say who uses the address, where it is, how it is routed, what is hosted on it or whether it is safe. Each gap below names the API that fills it.
The record names the organization that holds the block, usually an ISP or a hosting company. For 85.214.1.1 that is Strato GmbH, not whoever uses the address. Only the holder knows which customer that is, which is why the abuse contact exists.
See the abuse contactRIPE's own database documentation says it has never been specified what a block's country represents, so it cannot be used to map addresses to countries. The block 1.1.1.0/24 is registered to AU, and its description says it is routed globally by AS13335. To see where an address is, use the IP Geolocation API.
Open IP Geolocation APIA route object says which AS may announce a prefix, not that it does. RIPE Labs notes that a prefix is not always advertised. The route object for 85.214.1.0/24 says it is only advertised in case of DDoS. For an AS's blocks, contacts and BGP peers, use the ASN Lookup API.
Open ASN Lookup APIWHOIS names the holder. It does not say whether an address is a VPN, a proxy or a Tor exit, or how risky it is. For those signals use the IP Threat Intelligence API.
Open IP Threat Intelligence APIAn IP WHOIS record does not list the hostnames that point at an address. To find them, use the Reverse DNS Lookup API.
Open Reverse DNS Lookup APIThe record names the holder of an address block. The registrant of a domain name sits in a different record. To look up who registered a domain, use the Domain WHOIS Lookup API.
Open Domain WHOIS Lookup APIPricing
One lookup
15credits
Free, one time
10,000
Billed
Billed, −15 credits
The full record, or a 206 partial response when the WHOIS server returned an incomplete one.
Not billed
Not billed
A missing or invalid address, no API key or an unsupported format.
Not billed
Credits already taken are refunded.
Integrations
OpenAPI 3.1 for every live API, in JSON and YAML.
npm i @apifreaks/openapi-specsImport the endpoint and try it with your key.
Open the Postman collectionConnect any MCP-compatible client to live APIFreaks data.
npx -y @apifreaks/mcpLet an agent call the REST API directly, without MCP.
npx skills add https://github.com/api-freaks/af-agent-skills --skill apifreaks-platformView skill →A machine-readable index for crawlers and agents.
Start with free credits. No credit card required.
Need more volume, a 99.99% uptime SLA or invoice billing? Talk to sales.
Price per 1,000 requests
N/A
monthly plan
N/A
yearly plan
curl -H "X-apiKey: YOUR_API_KEY" \"https://api.apifreaks.com/v1.0/ip/whois/live?ip=8.8.8.8"