WebPagetest Forums
Get locations for API work incorrectly - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Get locations for API work incorrectly (/showthread.php?tid=16100)



Get locations for API work incorrectly - Chefranov - 06-15-2020 12:18 AM

Hi Team!
I use your REST API for site testing (throw own chrome extension) and I am trying to get list of locations https://www.webpagetest.org/getLocations.php?f=json but some locations don't work, for example I use:

Code:
London2:Chrome.3GFast

And I get error. But this location works fine when I run test from your site. Where is my mistake? How can I get actual list of locations?


RE: Get locations for API work incorrectly - pmeenan - 06-15-2020 01:14 AM

Try https://www.webpagetest.org/getLocations.php?f=json&k=A instead. Not all of the locations are available for testing through the API. Adding k=A to the query will restrict the list to those that are available through the API.