Sign Up

Log In

GTmetrix

FREE
By gtmetrix
Updated 3 days ago
Business
6.9/10
Popularity Score
303ms
Latency
4%
Success Rate

GTmetrix API Documentation

Full page performance and speed analysis with a real browser using Google PageSpeed and Yahoo YSlow. Using the GTmetrix API, you can integrate performance testing into your development environment or into your application.

The GTmetrix API is based on the Web Testing Framework (WTF) Testing Service API which is RESTful API. Please contact us if you have any questions or comments about the API, or if you end up using it in a cool and interesting way!

Signup instantly for free and get your API key at http://gtmetrix.com/

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
GETbrowsers
GETlocations
GETresources
GETaccount
GETbrowser
POSTtest
GETresults
GET
Authorization:

The GTmetrix API uses HTTP Basic Access Authentication as its authentication mechanism. Use your e-mail address as the username and the API key as the password.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Request Snippet
unirest.("https://gtmetrix-gtmetrix.p.rapidapi.com")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.("https://gtmetrix-gtmetrix.p.rapidapi.com")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard