{"openapi":"3.1.0","info":{"title":"GTmetrix Reports (BYOK) API","version":"0.1.0","description":"GTmetrix Reports (BYOK) lets an AI assistant read your own GTmetrix Reports data through the GTmetrix Reports API with a key you supply (GTmetrix API key). Read-only: 5 tools (list_tests, get_report, list_page_reports, get_latest_page_report, get_report_resource_summary). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-gtmetrix-reports.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-gtmetrix-reports/docs"},"termsOfService":"https://connectorbay.com/byok-gtmetrix-reports/terms"},"servers":[{"url":"https://byok-gtmetrix-reports.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-gtmetrix-reports/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_tests":{"post":{"operationId":"list_tests","summary":"List tests started through the API (tests are kept for 24 hours) with state, tested URL, location, browser, timestamps a","description":"List tests started through the API (tests are kept for 24 hours) with state, tested URL, location, browser, timestamps and the resulting report id. Reading costs no credits. Use for \"Which GTmetrix tests finished today and what are their report ids\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Results per page (1 to 500).","title":"Page Size"},"page_number":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Number"},"sort":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Sort by created, started or finished; prefix with - for descending (default created).","title":"Sort"},"filter_state":{"anyOf":[{"enum":["queued","started","completed","error"],"type":"string"},{"type":"null"}],"default":null,"description":"Only tests in this state: queued, started, completed or error.","title":"Filter State"},"filter_source":{"anyOf":[{"enum":["api","on-demand","monitored"],"type":"string"},{"type":"null"}],"default":null,"description":"Only tests from this source: api (default), on-demand or monitored.","title":"Filter Source"}},"title":"list_testsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_report":{"post":{"operationId":"get_report","summary":"Get one computed report: GTmetrix grade, performance and structure scores, Largest Contentful Paint, Total Blocking Time","description":"Get one computed report: GTmetrix grade, performance and structure scores, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, TTFB and load time. No credits are used. Use for \"What score did GTmetrix report sQ3x9aBc get\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"report_id":{"description":"Report ID (from list_tests, list_page_reports or a page's latest_report).","maxLength":64,"title":"Report Id","type":"string"}},"required":["report_id"],"title":"get_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_page_reports":{"post":{"operationId":"list_page_reports","summary":"List the reports of one monitored page, newest first, with grades, scores and key timings. Filtering and sorting are exp","description":"List the reports of one monitored page, newest first, with grades, scores and key timings. Filtering and sorting are expensive, so use only one of them per request. Use for \"How has the performance score of this GTmetrix page changed over its last reports\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_id":{"description":"Page ID (from list_pages in the gtmetrix-pages connector, or the page field of a report).","maxLength":64,"title":"Page Id","type":"string"},"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Results per page (1 to 500).","title":"Page Size"},"page_number":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Number"},"sort":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Sort by a report attribute such as created, expires or performance_score; prefix with - for descending (default -created).","title":"Sort"},"filter_source":{"anyOf":[{"enum":["api","on-demand","monitored"],"type":"string"},{"type":"null"}],"default":null,"description":"Only reports from this source: api, on-demand or monitored.","title":"Filter Source"}},"required":["page_id"],"title":"list_page_reportsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_latest_page_report":{"post":{"operationId":"get_latest_page_report","summary":"Get the most recent report of a page with grade, scores and key timings. Use for \"What is the latest GTmetrix result for","description":"Get the most recent report of a page with grade, scores and key timings. Use for \"What is the latest GTmetrix result for this page\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_id":{"description":"Page ID (from list_pages in the gtmetrix-pages connector, or the page field of a report).","maxLength":64,"title":"Page Id","type":"string"}},"required":["page_id"],"title":"get_latest_page_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_report_resource_summary":{"post":{"operationId":"get_report_resource_summary","summary":"Get the page weight of one report broken down by resource type (HTML, fonts, images, videos, scripts, CSS, other) with r","description":"Get the page weight of one report broken down by resource type (HTML, fonts, images, videos, scripts, CSS, other) with request counts and transferred and uncompressed sizes in bytes. Use for \"How much of the page weight in this GTmetrix report is images and scripts\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"report_id":{"description":"Report ID (from list_tests, list_page_reports or a page's latest_report).","maxLength":64,"title":"Report Id","type":"string"}},"required":["report_id"],"title":"get_report_resource_summaryArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}