🚀 Experience the new and improved APIVoid! Check out what's new
A JSON API to get all domains that share the same IP address (DNS A record). Use this API to improve threat analysis and threat enrichment by obtaining a list of domains on the same IPv4 address.
Consumes 50 credits per API call
# Example Curl request from the command line:
curl -X POST "https://api.apivoid.com/v2/reverse-ip" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY_HERE" \
-d '{"ip": "35.215.65.121"}'
# Example JSON output for a 200 HTTP status code:
{
"ip": "35.215.65.121",
"page_num": 1,
"records_num": 2,
"domains": [
{
"name": "clearspeed.com",
"updated": "2024-08-13 22:37:06"
},
{
"name": "vagurudwara.com",
"updated": "2024-08-03 15:08:30"
}
],
"elapsed_ms": 623
}
Key Features
Businesses and startups use this Reverse IP API to obtain a list of domains that are hosted on the same server IP address, a valuable information for threat analysis and threat enrichment.
With this API you can get a list of up to 250 domains per page (on a single API call) and browse all pages.
The list of domains returned by the API are ordered by last updated datetime, useful in many scenarios.
When a domain doesn't have anymore an IP assigned, we do not delete it. Instead, we keep its last IP address.
The submitted IP address is checked in real-time and the response is returned in 1 second on average.
Common Use Cases
Our API can be used in many ways, from cybersecurity tasks to marketing-specific tasks. Here we showcase the most popular use cases according to our customers usage:
Use this API to check how many and what other domains are hosted on your website's IP address.
If you have a malicious domain you may also want to know what are other domains on the same IP.
Using a SIEM platform? Add context to security incidents, load domains hosted on the same IP.
Use this API to check what are other domains hosted on your customers or suppliers IP addresses.
USAGE EXAMPLE
All it takes is a HTTPS POST request with JSON payload to our endpoint, and you’ll receive the response within seconds, usually within 1 second. Here are a few code examples to use the API:
$ip = '35.215.65.121';
$apiUrl = 'https://api.apivoid.com/v2/reverse-ip';
$apiKey = 'your_api_key_here';
$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['ip' => $ip, 'page_num' => 1]));
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
$responseData = json_decode($response, true);
print_r($responseData);
// Extract and process domains if available
if (isset($responseData['domains']) && is_array($responseData['domains'])) {
$domains = [];
// Loop through the domains array and extract the 'name'
foreach ($responseData['domains'] as $domain) {
if (isset($domain['name'])) {
$domains[] = $domain['name'];
}
}
// Print the list of domain names
echo "Domains found:\n";
print_r($domains);
}
}
Create your account, pick a subscription plan, and make your first API call instantly with your API key—simple as that!
Get started now