🚀 Experience the new and improved APIVoid! Check out what's new

HTTP Tracker API: Capture and track all HTTP requests

A JSON API to get a list of all HTTP and HTTPS requests made by an URL. Use this API to capture all web requests made when visiting an URL and extract (and count) also all unique hosts/domains contacted.

Consumes 20 credits per API call

# Example Curl request from the command line:
                          
curl -X POST "https://api.apivoid.com/v2/http-tracker" \
     -H "Content-Type: application/json" \
     -H "X-API-Key: YOUR_API_KEY_HERE" \
     -d '{"url": "https://www.apivoid.com/"}'

# Example JSON output for a 200 HTTP status code:

{
    "url": "https://www.apivoid.com/",
    "http_requests": [
        {
            "url": "https://www.apivoid.com/",
            "status_code": 200,
            "content_type": "text/html",
            "content_length": 30266,
            "elapsed_ms": 199,
            "ip_address": "159.69.124.48"
        },
        {
            "url": "https://www.apivoid.com/styles/main.css",
            "status_code": 200,
            "content_type": "text/css",
            "content_length": 192605,
            "elapsed_ms": 87,
            "ip_address": "159.69.124.48"
        },
        {
            "url": "https://www.apivoid.com/images/email-support.png",
            "status_code": 200,
            "content_type": "image/png",
            "content_length": 867,
            "elapsed_ms": 100,
            "ip_address": "159.69.124.48"
        },
        {
            "url": "https://www.apivoid.com/scripts/jquery-3.1.1.min.js",
            "status_code": 200,
            "content_type": "application/javascript",
            "content_length": 86709,
            "elapsed_ms": 107,
            "ip_address": "159.69.124.48"
        },
        {
            "url": "https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css",
            "status_code": 200,
            "content_type": "text/css",
            "content_length": 1482,
            "elapsed_ms": 157,
            "ip_address": "104.17.25.14"
        },
        {
            "url": "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",
            "status_code": 200,
            "content_type": "text/css",
            "content_length": 31000,
            "elapsed_ms": 172,
            "ip_address": "104.18.11.207"
        },
        ...
    ],
    "hosts_list": [
        "cdn.usefathom.com",
        "cdnjs.cloudflare.com",
        "fonts.googleapis.com",
        "maxcdn.bootstrapcdn.com",
        "www.apivoid.com",
        "www.google.com",
        "www.gstatic.com"
    ],
    "ips_list": [
        "104.17.25.14",
        "104.18.11.207",
        "142.250.185.227",
        "142.250.185.74",
        "142.250.186.164",
        "159.69.124.48",
        "169.150.247.37"
    ],
    "stats": {
        "total_requests": 27,
        "unsecure_requests": 0,
        "same_origin_requests": 16,
        "cross_origin_requests": 11,
        "unique_hosts": 7,
        "external_hosts": 6,
        "unique_ips": 7,
        "2xx_status_codes": 27,
        "3xx_status_codes": 0,
        "4xx_status_codes": 0,
        "5xx_status_codes": 0,
        "transferred_bytes": 926446,
        "html_files": 1,
        "html_files_bytes": 30266,
        "image_files": 8,
        "image_files_bytes": 63463,
        "javascript_files": 11,
        "javascript_files_bytes": 525055,
        "css_files": 5,
        "css_files_bytes": 230459,
        "font_files": 1,
        "font_files_bytes": 77160
    },
    "elapsed_ms": 1828
}
Code analysis

Key Features

Analyze what other URLs or domains are contacted by a website

Businesses and startups use this HTTP Tracker API to effortlessly track and capture all web requests (https://...) made when visiting an URL. Useful to spot all domains contacted by a particular URL.

Complete URLs List

Our API is focused into accurately tracking all HTTP requests made by a submitted URL.

View Hosts Contacted

With this API you can get a list of all hosts (domains and subdomains) contacted by an URL.

HTTP and HTTPS Requests

The API is configured to capture both HTTP and HTTPS web requests (same and cross-origin).

Fast Response

The submitted URL is analyzed in real-time and the response is returned in 10-15 seconds on average.

Common Use Cases

Take a look at some real-world use cases of this API service

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:

Phishing Analysis

Knowing all URLs and hosts contacted by an URL can improve analyzing of suspicious or phishing URLs.

Enrich SIEM Data

Using a SIEM platform? Add context to security incidents, populate HTTP requests data of an URL event.

Research Purposes

Find out any third-party host contacted by a competitor website, count requests to external hosts.

Automate Tasks

Use this API to automate any manual task of extracting requests and hosts contacted by an URL.

Use cases

USAGE EXAMPLE

Learn how seamless it is to add and use HTTP Tracker API anywhere you want

All it takes is a HTTPS POST request with JSON payload to our endpoint, and you’ll receive the response within seconds, usually within 10-20 seconds. Here are a few code examples to use the API:

$url = 'https://www.apivoid.com';

$apiUrl = 'https://api.apivoid.com/v2/http-tracker';
$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(['url' => $url]));
$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);
    
    // Print the list of HTTP requests
    print_r($responseData['http_requests'] ?? []);
    
    // Print the list of hosts contacted
    print_r($responseData['hosts_list'] ?? []);
    
    // Print the list of IPs contacted
    print_r($responseData['ips_list'] ?? []);
    
    // Print some stats
    print_r($responseData['stats'] ?? []);
}

Start using our API services, it takes just a few minutes

Create your account, pick a subscription plan, and make your first API call instantly with your API key—simple as that!

Get started now