Loading
Loading
https://api.apifreaks.com/v1.0/geolocation/lookup
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
import json
url = "https://api.apifreaks.com/v1.0/geolocation/lookup"
payload = json.dumps({
"ips": [
"8.8.8.8",
"1.1.1.1",
"dns.google.com"
]
})
headers = {
'Content-Type': 'application/json',
'X-apiKey': ''
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
The response will be an array of objects, with each object containing geolocation lookup data for the corresponding IP address in the request. Each object will include the following fields:
| Field | Type | Requirement | Description |
|---|---|---|---|
| - | Array | Mandatory | To see the Complete response structure for each ip, Click here. |