Use this page to mock PageSpeed Insights API in your testing and development.
Run our mock API sample using the open source WireMock library, or in the free edition of WireMock Cloud. You'll have a working API server simulating the behavior of PageSpeed Insights API, which will allow you to keep building and testing even if the actual API you isn't currently available.