GTmetrix
Web speed and performance tests with reports
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- Sign in at gtmetrix.com (an account is required; the free plan includes some API credits).
- Open gtmetrix.com/api and click “Generate API Key” (it is also under “Account” → “API”).
- Copy the key. Each test uses API credits; checking the account status does not.
Tools (1)
GTmetrix API request
GTMETRIX_SEND_REQUESTAuthenticated call to the GTmetrix API (https://gtmetrix.com/api/2.0). Any endpoint of the API is allowed. Examples: GET /status (credits), GET /locations, GET /browsers, POST /tests {"data": {"type": "test", "attributes": {"url": "https://…"}}} (uses credits; add the header Content-Type: application/vnd.api+json), GET /tests/{id} (status and report link), GET /reports/{id}.
Required scopes
No scopes required
Input
GTmetrix API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

