HTTP Version API
free/v1/domain/http-versionTests HTTP/1.1, HTTP/2 and HTTP/3 through actual protocol negotiation. HTTPS DNS ALPN records and Alt-Svc advertisements are returned as separate signals alongside observed 103 Early Hints.
What It Does
Uses native HTTP clients to attempt HTTP/1.1, HTTP/2 and HTTP/3 connections from one probe vantage point. Reports confirmed negotiation or inconclusive failure per protocol, DNS ALPN advertisements, parsed Alt-Svc entries, and any 103 response actually observed for the requested URL. Advertisements alone do not establish negotiated support.
Why It's Useful
HTTP/2 (RFC 9113) and HTTP/3 (RFC 9114) provide significant performance improvements through multiplexing, header compression (HPACK/QPACK), and 0-RTT connection establishment. HTTP/3 over QUIC (RFC 9000) eliminates head-of-line blocking at the transport layer. Verifying support is important for performance optimization and ensuring CDN/load balancer configuration is correct.
Use Cases
Performance Audit
Verify HTTP/2 or HTTP/3 is enabled for optimal content delivery.
Ensure modern protocols are configured for best performance.
Infrastructure Assessment
Confirm load balancers and CDNs support modern HTTP protocols.
Validate infrastructure supports latest protocol standards.
Competitive Benchmark
Compare HTTP protocol support across competitor sites.
Identify protocol optimization opportunities versus competitors.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://google.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. |
http11 | boolean | null | Observed HTTP/1.1 support; null when the measurement is inconclusive. |
http2 | boolean | null | Observed HTTP/2 support; null when the measurement is inconclusive. |
http2Confidence | string | confirmed when HTTP/2 negotiated successfully; inconclusive when no conclusive measurement is available. |
http3 | boolean | null | Observed HTTP/3 negotiation support; null when inconclusive. |
http3Confidence | string | confirmed when HTTP/3 negotiated successfully; inconclusive otherwise. |
alpnFromDns | array | ALPN tokens advertised by the HTTPS DNS record (RFC 9460). Empty if no HTTPS RR is published |
protocol | string | Detected protocol name |
version | string | Detected protocol version |
altSvc | string | Raw Alt-Svc header value |
altSvcEntries | array | Parsed Alt-Svc entries with protocol, authority, and max-age |
earlyHintsSignal | object | Observed 103 Early Hints evidence: observed, capable and via=observed-103 when seen. Absence in one response does not establish lack of capability. |
recommendations | array | Protocol optimization suggestions |
protocol_probes | array | Actual native HTTP protocol negotiation results. |
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/http-version?domain=https%3A%2F%2Fgoogle.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/http-version?domain=https%3A%2F%2Fgoogle.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/http-version?domain=https%3A%2F%2Fgoogle.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full HTTP Version guide
Learn the concepts, choose a practical workflow, and interpret the observations from HTTP Version 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 HTTP Version endpoint live in the playground.