Skip to content
GET /api/v1/performance

Website Performance Analyzer

Measure website performance timings including DNS lookup, TCP connect, SSL handshake, TTFB, and total load time

Parameters

name in type required description
url query string required Url

Request

Send your key in the X-API-Key header. More languages and patterns live on the code examples page.

curl -s "https://apixies.io/api/v1/performance?url=https%3A%2F%2Fstripe.com" \
  -H "X-API-Key: YOUR_API_KEY"

Response

The result sits under data in the standard envelope. See the response format guide for errors and status codes.

returns

data.timings
DNS, TCP, TLS, TTFB, download and total times in milliseconds.
data.timings.ttfb_ms
Time to first byte from the start of the request, DNS and connection setup included. The same thing curl calls time_starttransfer.
data.timings.server_wait_ms
The server's share of TTFB: from request sent to first byte, with no DNS, TCP or TLS time in it.
data.http_status
Final HTTP status code.
data.final_url
URL after redirects, with the hop count in redirect_count.
data.content_length
Bytes downloaded. The request asks for compression like a browser does, so this is the compressed size when the server compresses.
data.decoded_length
Size of the page after decompression, with the method (gzip, br, zstd) in content_encoding. Equal to content_length when the server doesn't compress.
data.primary_ip
IP address the connection went to.
example response 200
{
    "status": "success",
    "http_code": 200,
    "code": "SUCCESS",
    "message": "Performance analysis completed",
    "data": {
        "url": "https://github.com",
        "final_url": "https://github.com",
        "http_status": 200,
        "content_type": "text/html; charset=utf-8",
        "content_length": 117378,
        "content_encoding": "gzip",
        "decoded_length": 575801,
        "redirect_count": 0,
        "primary_ip": "140.82.121.3",
        "timings": {
            "dns_lookup_ms": 26.33,
            "tcp_connect_ms": 23.07,
            "ssl_handshake_ms": 39.48,
            "ttfb_ms": 128.03,
            "server_wait_ms": 39.08,
            "content_download_ms": 73.54,
            "total_time_ms": 201.57,
            "redirect_time_ms": 0
        },
        "analyzed_at": "2026-09-18T12:00:00+00:00"
    }
}

Authentication and limits

This endpoint needs an API key. Use the sandbox ("try it" above) to test it without registering. See the authentication guide for details.

Standard rate limits apply to this endpoint.

Common use cases

Website speed monitoring

Continuously monitor your website's performance metrics. Track DNS lookup, TTFB, and total load times over time to detect regressions before they impact users.

Competitive benchmarking

Compare your site's performance against competitors. Measure TTFB and total load times to identify areas where you can gain an edge in search rankings.

CDN and hosting evaluation

Test performance from different perspectives to evaluate CDN effectiveness, hosting providers, or DNS configuration changes. Compare before-and-after metrics for infrastructure migrations.

More documentation

Get a free API key

A temporary key takes one click and no signup. Register and you get 75 requests/day. Free tier is for development & small projects.

cookies

We use analytics cookies to see how the site gets used. Nothing loads until you accept. Privacy policy