Response Time API
free/v1/domain/response-timeMeasures response latency across one to five samples. Choose vantage=vps for uncached native DNS, TCP, TLS and true first-byte timing breakdowns; Workers remains the default.
What It Does
Workers mode retains the existing fetch measurements and five-minute result cache. Optional VPS mode takes fresh HTTP/1.1 samples, validates and pins every destination and redirect, and retries HEAD with GET only for 405/501 responses. Native samples expose DNS, TCP, TLS, first-byte, wait and download timings separately. Aggregate timing statistics use complete successful total durations, while ttfb statistics and status use measured first-byte latency. Unknown phases stay null, and attempted/unattempted samples are explicit under the aggregate deadline.
Why It's Useful
Response time directly impacts user experience and SEO rankings. Understanding the latency breakdown helps identify bottlenecks in DNS, TLS, or server processing.
Use Cases
Performance Monitoring
Monitor server response times to detect performance degradation.
Identify performance issues before they impact users.
Bottleneck Analysis
Analyze latency breakdown to identify whether issues are in DNS, TLS, or server processing.
Focus optimization efforts on the right component.
Competitive Benchmarking
Compare response times against competitors to benchmark performance.
Set performance targets based on competitive landscape.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
vantage | query | string | Optional | Measurement source: workers (default) or vps for fresh native connection timings from one VPS vantage point.Example: vpsOptions: workers, vps |
domain | query | string | Required | Domain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com |
samples | query | number | Optional | Number of measurement samples (1-5, default: 3)Example: 3 |
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. |
samples | number | Number of measurement samples taken |
successfulSamples | number | Samples that returned a response |
failedSamples | number | Samples that timed out or failed |
timing | object | Aggregate timing stats in ms: min, max, avg, median, p90, p95, p99, jitter |
individual | array | Per-sample measurements (totalMs, ttfbMs, success) |
serverTiming | array | Aggregated Server-Timing entries across samples — each { name, dur (avg ms), desc } |
status | string | TTFB rating per web.dev 2026 thresholds: fast (<800ms), acceptable (800–1800ms), slow (≥1800ms), or unreachable |
statusDescription | string | Human-readable performance description |
recommendations | array | Performance improvement suggestions, including backend-component callouts from Server-Timing |
complete | boolean | Whether all requested native measurements completed within the bounds. |
wall_ms | number | Elapsed native job time including DNS validation, process startup and cleanup. |
ttfb | object | Min/max/average/median/percentiles for actual first-byte latency from complete successful samples. |
attemptedSamples | number | Number of native samples attempted. |
unattemptedSamples | number | Requested samples not attempted because the aggregate deadline expired. |
individual[].dnsMs | number | null | Validated DNS lookup duration, including redirects. |
individual[].tcpMs | number | null | Observed TCP connection time, including redirects. |
individual[].tlsMs | number | null | Observed TLS handshake time; null when not applicable or unavailable. |
individual[].requestWaitMs | number | null | Observed server/network wait until first byte. |
individual[].downloadMs | number | null | Observed response-body transfer duration. |
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/response-time?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/response-time?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/response-time?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 Response Time guide
Learn the concepts, choose a practical workflow, and interpret the observations from Response Time 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 Response Time endpoint live in the playground.