Is it possible to return test results as JSON thru API?

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//?f=json’).

Thanks!

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=

Ahh, I missed that for some reason. Thanks for the quick response!