# Website Load Time API

Monitor website availability and performance in a single request. Get timing metrics including TTFB, DNS lookup, and TCP connection time.

99.9% Uptime TTFB & Latency Metrics Anti-Bot Bypass

### Integrate with your stack

Python

NodeJS

Go

PHP

Java

Ruby

cURL

```python
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)
```

## Site Load Time API features

### 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.

## Website Load Time API pricing

### Free
$0/mo  
500 Credits/mo  
Check ~500 URLs  
1 Request per second

### Starter
$9/mo  
5K Credits/mo  
Check ~5000 URLs  
5 Requests per second

### Growth (Most Popular)
$49/mo  
100K Credits/mo  
Check ~100K URLs  
25 Requests per second

### Business
$249/mo  
1M Credits/mo  
Check ~1M URLs  
50 Requests per second

## Other Geekflare API services

### Screenshot API
Take a full-page screenshot to verify rendering.

### Google Lighthouse API
Your server is fast, but how about page rendering? Run a Lighthouse audit to find out.

### Broken Link Checker API
Once you know the site is up, scan it to ensure the internal links are working too.

### Redirect Checker API
Trace the full path of URL redirects and analyze HTTP status codes.

### DNS Lookup API
Query DNS records (A, AAAA, MX, TXT) for any domain.

## Frequently Asked Questions

**What does the `followRedirect` parameter do?**  
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.

**Can I check if a site is down in a specific country?**  
Yes. By using the `proxyCountry` parameter, you can route the request through different countries to see if the website is inaccessible in specific locations.

**What is TTFB?**  
TTFB (Time To First Byte) is the time it takes for the server to send the first byte of data after a request.

**Can I use this for uptime monitoring?**  
Absolutely. Since it returns the HTTP Status Code (e.g., 200, 404 or 500), it is the standard way to build an uptime monitor.

**How much does an uptime check cost?**  
Checking site status consumes only 1 credit per request.

## Start Monitoring Your Website Performance
Get detailed timing metrics and uptime monitoring with our Site Load Time API.
