Skip to main content

Load Balancer Detection API

developer
GET/v1/domain/load-balancer

Detects load balancing by analyzing DNS responses, HTTP headers, and connection patterns. Identifies load balancer types and providers.

What It Does

Analyzes multiple signals for load balancing: multiple A records in DNS (round-robin), load balancer specific headers (X-Served-By, X-Backend-Server, X-Amzn-Trace-Id), and cookie-based session affinity patterns (BIGipServer, AWSALB, ARRAffinity). Detects providers including F5 BIG-IP, AWS ELB/ALB, HAProxy, Azure LB, Google Cloud LB, Envoy, Istio, and Heroku Router.

Why It's Useful

Understanding load balancing architecture helps with infrastructure analysis, performance troubleshooting, and security assessments. It reveals deployment patterns and potential single points of failure.

Use Cases

Solutions Architect

Infrastructure Assessment

Analyze target infrastructure to understand load balancing approach.

Inform architecture decisions based on observed patterns.

Penetration Tester

Security Testing

Identify load balancing to understand potential attack surface variations.

Ensure all backend servers are tested during assessments.

SRE

Availability Analysis

Verify load balancing is properly configured for high availability.

Confirm redundancy is in place for critical services.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to detect load balancing forExample: example.com

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain
detectedbooleanWhether load balancing is detected
typestringLoad balancing type: "dns-round-robin", "anycast" (multiple A records advertised via BGP-anycast by a CDN — geo-routing, not app-layer LB), "header-based", "cookie-based", or "none"
providersarrayDetected load balancer providers with name, vendor, type, and evidence
multipleIPsbooleanWhether multiple IP addresses were found
ipCountnumberNumber of distinct IP addresses
ipAddressesarrayResolved IP addresses
recommendationsarrayInfrastructure improvement suggestions

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/load-balancer?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/load-balancer?domain=example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/load-balancer?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Load Balancer Detection guide

Learn the concepts, choose a practical workflow, and interpret the observations from Load Balancer Detection before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Load Balancer Detection endpoint live in the playground.