Geolocation›Get Ips of geolocation
Geolocation
Get Ips of geolocation
This API fetches all the possible ips of geolocation. It is recommended to filter using two digit country code.
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/geoLocation/ips" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"in": [
"0.0.0.0",
"0.0.0.0",
"0.0.0.0"
],
"us": [
"0.0.0.0",
"0.0.0.0"
]
},
"message": "Geolocation IP fetched successfully",
"status": "success"
}
Authorizations
Authorizationstringheaderrequired
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
countryCodestring
To filter ips of specific country.
Response
application/jsonsuccessful operation
dataobject
data.instring[]
Example:["0.0.0.0","0.0.0.0","0.0.0.0"]
data.usstring[]
Example:["0.0.0.0","0.0.0.0"]
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/geoLocation/ips" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"in": [
"0.0.0.0",
"0.0.0.0",
"0.0.0.0"
],
"us": [
"0.0.0.0",
"0.0.0.0"
]
},
"message": "Geolocation IP fetched successfully",
"status": "success"
}