Skip to main content
Get LocationsFetch Locations
TestMu AI
StatusCommunityBlog
Get Locations

Fetch Locations

Fetch list of available Geolocations

GET
/locations
Fetch Locations
curl --request GET \
--url "https://api.lambdatest.com/screenshots/v1/locations" \
--header "Authorization: Basic <encoded-value>"
{
"locations": [
{
"code": "US",
"name": "United States"
}
]
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Response

application/json

successful operation

locationsobject[]
locations.codestring
Example: "US"
locations.namestring
Example: "United States"
Fetch Locations
curl --request GET \
--url "https://api.lambdatest.com/screenshots/v1/locations" \
--header "Authorization: Basic <encoded-value>"
{
"locations": [
{
"code": "US",
"name": "United States"
}
]
}