Locate an IP network
POST https://{{host}}/edge-diagnostics/v1/locate-ip
Returns geolocation data of an IP's network. You can enter up to 10 IPs.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
accountSwitchKey | string | (Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys. |
Request Body
{"ipAddresses"=>["192.0.2.9", "192.0.2.0"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"completedTime":"2022-02-01T17:40:32Z","createdBy":"hgildong","createdTime":"2022-02-01T17:40:29Z","executionStatus":"SUCCESS","request":{"ipAddresses":["192.0.2.9","192.0.2.0"]},"results":[{"executionStatus":"SUCCESS","geoLocation":{"asNumber":13335,"city":"SYDNEY","continent":"OC","countryCode":"AU","latitude":-33.88,"longitude":151.22,"network":"mil","regionCode":"NSW","throughput":"low","timeZone":"GMT+10"},"ipAddress":"192.0.2.9"},{"executionStatus":"SUCCESS","geoLocation":{"city":"SEOUL","continent":"AS","countryCode":"KR","latitude":37.57,"longitude":127,"throughput":"low","timeZone":"GMT+9"},"ipAddress":"192.0.2.0"}]}