Skip to main content

HTTP Version API

free
GET/v1/domain/http-version

Tests 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 Engineer

Performance Audit

Verify HTTP/2 or HTTP/3 is enabled for optimal content delivery.

Ensure modern protocols are configured for best performance.

DevOps Engineer

Infrastructure Assessment

Confirm load balancers and CDNs support modern HTTP protocols.

Validate infrastructure supports latest protocol standards.

Technical SEO

Competitive Benchmark

Compare HTTP protocol support across competitor sites.

Identify protocol optimization opportunities versus competitors.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain 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.

FieldTypeDescription
domainstringThe queried domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
http11boolean | nullObserved HTTP/1.1 support; null when the measurement is inconclusive.
http2boolean | nullObserved HTTP/2 support; null when the measurement is inconclusive.
http2Confidencestringconfirmed when HTTP/2 negotiated successfully; inconclusive when no conclusive measurement is available.
http3boolean | nullObserved HTTP/3 negotiation support; null when inconclusive.
http3Confidencestringconfirmed when HTTP/3 negotiated successfully; inconclusive otherwise.
alpnFromDnsarrayALPN tokens advertised by the HTTPS DNS record (RFC 9460). Empty if no HTTPS RR is published
protocolstringDetected protocol name
versionstringDetected protocol version
altSvcstringRaw Alt-Svc header value
altSvcEntriesarrayParsed Alt-Svc entries with protocol, authority, and max-age
earlyHintsSignalobjectObserved 103 Early Hints evidence: observed, capable and via=observed-103 when seen. Absence in one response does not establish lack of capability.
recommendationsarrayProtocol optimization suggestions
protocol_probesarrayActual 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
curl --request GET 'https://api.edgedns.dev/v1/domain/http-version?domain=https%3A%2F%2Fgoogle.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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.