cURL
curl --request POST \ --url https://api.speedvitals.com/v1/ttfb-tests \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "url": "https://speedvitals.com", "region": "asia" } '
{ "url": "https://speedvitals.com", "region": "america", "result": [ { "location_id": "del", "location_name": "Delhi", "status": "success", "data": { "timings": { "dns_lookup": 2, "server_processing": 18, "tcp_connection": 10, "tls_handshake": 25, "total": 56, "ttfb": 55 }, "http_version": 2, "http_status": 200, "response_headers": { "accept-ranges": "bytes", "age": 520141, "cache-control": "max-age=604800", "vary": "Accept-Encoding", "x-cache": "HIT" } }, "error": null } ] }
Runs a new TTFB test for a region.
This is the TTFB test body object
The url of the webpage
"https://speedvitals.com"
The id of a ttfb region
asia
america
europe
"asia"
A TTFB result to be returned
Show child attributes