CDN Detection API
free/v1/domain/cdnIdentifies the CDN(s) serving a domain — including layered deployments (Fastly fronting CloudFront, Cloudflare in front of AWS) — by analyzing HTTP headers, DNS records, and the Via header. Classifies each provider as a pure CDN, a hosting platform (Vercel, Netlify), or an edge runtime (Fly.io, Workers).
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. Collects ALL matching providers (not just the first) and derives topology — `single` when one provider is detected, `layered` when ≥2 fire on the same response. Layered chains are ordered by the Via header when present, otherwise by confidence. 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
Infrastructure Analysis
Analyze competitor CDN choices to inform your own infrastructure decisions.
Make informed CDN selection based on market leader choices.
DDoS Assessment
Identify CDN-based DDoS protection during security assessments.
Understand target's DDoS protection capabilities.
Performance Debugging
Identify CDN in use to properly interpret cache headers and optimize performance.
Debug caching issues with CDN-specific knowledge.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://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.
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL that was fetched, echoing the protocol used in the request. |
detected | boolean | Whether at least one CDN/hosting-platform was detected |
cdn | object | Primary CDN: { name, type ("cdn" | "hosting-platform" | "edge-runtime"), confidence, evidence }, or null when none detected |
cname | string | CNAME record if present |
cnameChain | array | Resolved CNAME chain (up to 3 hops) used to catch CDNs behind aliases |
topology | string | "single" when one provider is detected, "layered" for multi-CDN deployments (Fastly fronting CloudFront, etc.), null when undetermined |
topologyChain | array | Ordered chain of CDN names for layered deployments (Via-header-ordered when present) |
providers | array | All detected providers (≥1 when layered) each with name, type, confidence, evidence |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/domain/cdn?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/cdn?domain=https%3A%2F%2Fexample.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);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/domain/cdn?domain=https%3A%2F%2Fexample.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full CDN Detection guide
Learn the concepts, choose a practical workflow, and interpret the observations from CDN 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 CDN Detection endpoint live in the playground.