Site Load Time API
Monitor website availability and performance in a single request.Get timing metrics including TTFB, DNS lookup, and TCP connection time.
Integrate with your stack
import requests
url = "https://api.geekflare.com/loadtime"
payload = {"url": "https://example.com", "followRedirect": False}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Why Geekflare Site Load Time API
Timing Metrics
We break down the total load time into specific phases: DNS Lookup, TCP Connection, TLS Handshake, and TTFB.
Status Codes
Get the HTTP response code (200, 301, 404, 503) to diagnose why a site might be failing.
Redirect Tracing
With the followRedirect parameter, our API chases the redirect chain to the final destination, reporting the status of the actual landing page.
Global Proxy Support
Use the proxyCountry parameter to route requests through different locations, helping you detect geo-blocking or regional downtime.
Lightweight Monitoring
This API uses lightweight HTTP requests, making it perfect for high-frequency monitoring without overloading your server.
Response Headers
Inspect the raw server response. We return the complete HTTP headers to verify security configurations.
Build more with Geekflare
Check Broken Links
Frequently Asked Questions
When set to true, the API will automatically follow HTTP 301/302 redirects until it reaches the final destination URL and return the status code of that final page.
Yes. By using the proxyCountry parameter, you can route the request through different country to see if the website is inaccessible in specific locations.
TTFB (Time To First Byte) is the time it takes for the server to send the first byte of data after a request.
Absolutely. Since it returns the HTTP Status Code (e.g., 200, 404 or 500), it is the standard way to build an uptime monitor.
Checking site status consumes only 1 credit per request.