![]() |
Is it possible to return test results as JSON thru API? - Printable Version +- WebPagetest Forums (https://www.webpagetest.org/forums) +-- Forum: WebPagetest (/forumdisplay.php?fid=7) +--- Forum: General Discussion (/forumdisplay.php?fid=25) +--- Thread: Is it possible to return test results as JSON thru API? (/showthread.php?tid=13724) |
Is it possible to return test results as JSON thru API? - michael.stitt - 05-16-2015 04:40 AM I can hit the "/runtest.php" API endpoint and have JSON returned by appending the `f=json` URL parameter. Is there a way to get the results of the test returned as JSON, as opposed to XML? I tried appending the JSON URL parameter but that didn't work (e.g. 'http://www.webpagetest.org/xmlResult/<test-id>/?f=json'). Thanks! RE: Is it possible to return test results as JSON thru API? - pmeenan - 05-16-2015 04:43 AM The runtest.php response should give you an URL for the JSON version of the result. Usually looks something like http://www.webpagetest.org/jsonResult.php?test=<test-id> RE: Is it possible to return test results as JSON thru API? - michael.stitt - 05-16-2015 04:43 AM Ahh, I missed that for some reason. Thanks for the quick response! |