Skip to main content

CDN Detection

free
GET/v1/domain/cdn

Identifies the Content Delivery Network (CDN) provider serving a domain by analyzing HTTP headers, DNS records, and response patterns.

What It Does

Examines HTTP response headers (CF-Ray, X-Amz-Cf-Id, X-Fastly-Request-Id, X-Vercel-Id, etc.) and DNS CNAME records (e.g. *.cloudfront.net, *.akamaiedge.net) to identify CDN providers. Detects 19 providers including Cloudflare, CloudFront, Akamai, Fastly, Google Cloud CDN, Azure CDN, Vercel, Netlify, Bunny CDN, Edgio, Alibaba Cloud CDN, and more.

Why It's Useful

CDN identification reveals infrastructure choices, potential DDoS protection levels, and helps understand caching behavior. It's useful for competitive analysis and security assessments.

Use Cases

Solutions Architect

Infrastructure Analysis

Analyze competitor CDN choices to inform your own infrastructure decisions.

Make informed CDN selection based on market leader choices.

Security Analyst

DDoS Assessment

Identify CDN-based DDoS protection during security assessments.

Understand target's DDoS protection capabilities.

Performance Engineer

Performance Debugging

Identify CDN in use to properly interpret cache headers and optimize performance.

Debug caching issues with CDN-specific knowledge.

Parameters

NameTypeRequiredDescription
domainstringRequiredThe domain to detect CDN forExample: example.com

Response Fields

FieldTypeDescription
domainstringThe queried domain
detectedbooleanWhether a CDN was detected
cdnobjectCDN details (name, confidence, evidence) or null
cnamestringCNAME record if present

Code Examples

cURL
curl "https://api.edgedns.dev/v1/domain/cdn" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "domain=example.com"
JavaScript
const response = await fetch(
  'https://api.edgedns.dev/v1/domain/cdn?domain=example.com',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const data = await response.json();
console.log(data);
Python
import requests

response = requests.get(
    'https://api.edgedns.dev/v1/domain/cdn',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={
    'domain': 'example.com'
    }
)

data = response.json()
print(data)

Read the full CDN Detection guide

Why it matters, real-world use cases, parameters, response fields, and how to call it from Claude, ChatGPT, or Gemini via MCP.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the CDN Detection endpoint live in the playground.