Skip to main content
POST
/
loadtime
Measure the page load time for a given URL
curl --request POST \
  --url https://api.geekflare.com/loadtime \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://example.com",
  "followRedirect": false,
  "proxyCountry": "us"
}
'
{
  "timestamp": 1776233511285,
  "apiStatus": "success",
  "apiCode": 200,
  "meta": {
    "url": "https://example.com",
    "redirectedURL": "https://example.com/",
    "test": {
      "id": "mxqx9v9y0742lap6altwdteqd28t23nq"
    },
    "proxyCountry": "us",
    "followRedirect": true
  },
  "data": {
    "dns": 10,
    "connect": 12,
    "tls": 9,
    "send": 19,
    "wait": 86,
    "total": 88,
    "statusCode": 404,
    "reasonPhrase": "Not Found",
    "timings": {
      "dns": 21,
      "connect": 15,
      "tls": 40,
      "send": 1,
      "wait": 457,
      "ttfb": 534,
      "download": 4,
      "total": 538,
      "redirectDuration": 0
    },
    "network": {
      "protocol": "h2",
      "bytesRead": 15400,
      "remoteIp": "1.1.1.1"
    },
    "headers": {
      "server": "cloudflare",
      "content-type": "text/html; charset=utf-8",
      "cache-control": "no-cache"
    },
    "protocolSupport": {
      "http10": false,
      "http11": true,
      "http2": true,
      "http3": false,
      "http3SupportedVersion": [
        "h3-29",
        "h3"
      ]
    }
  },
  "message": "Site is reachable."
}

Documentation Index

Fetch the complete documentation index at: https://docs.geekflare.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API Key required for all endpoints

Body

application/json
url
string
required

Target URL

Example:

"https://example.com"

followRedirect
boolean
default:false

Whether to follow redirects when checking site status

Example:

false

proxyCountry
string

Proxy country code to route the request

Example:

"us"

Response

Load time retrieved successfully

timestamp
number
required

Timestamp of the request in milliseconds

Example:

1776233511285

apiStatus
enum<string>
required

API status message

Available options:
success,
failure
Example:

"success"

apiCode
number
required

API status code

Example:

200

meta
object
required

Metadata about the load time test

data
object
required

Comprehensive site load time metrics

message
string

Overall message about site reachability

Example:

"Site is reachable."