[keycdn] IP Location Finder API
Verfasst: 09.02.2019 13:43:13
For more information please visit: https://tools.keycdn.com/geo
"Get the IP geolocation data through the simple REST API. All the responses are JSON encoded. We are rate limiting requests (3r/s) to avoid overload of the system.
Please note that the use of this service requires a link back in your project: [IP Location Finder by KeyCDN](https://tools.keycdn.com/geo)
It is required to set the request header user-agent in the format keycdn-tools:https?://.*, which must include the website you are using the API for. Missing attributions or invalid values will be blocked."
Example:
Request:
Response:
For more information please visit: https://tools.keycdn.com/geo
"Get the IP geolocation data through the simple REST API. All the responses are JSON encoded. We are rate limiting requests (3r/s) to avoid overload of the system.
Please note that the use of this service requires a link back in your project: [IP Location Finder by KeyCDN](https://tools.keycdn.com/geo)
It is required to set the request header user-agent in the format keycdn-tools:https?://.*, which must include the website you are using the API for. Missing attributions or invalid values will be blocked."
Example:
Request:
Code: Alles auswählen
$ curl -H "user-agent: keycdn-tools:https://example.com" "https://tools.keycdn.com/geo.json?host=www.example.com"
Code: Alles auswählen
{
"status":"success",
"description":"Data successfully received.",
"data":{
"geo":{
"host":"www.example.com",
"ip":"93.184.216.34",
"rdns":"93.184.216.34",
"asn":15133,
"isp":"MCI Communications Services, Inc. d\/b\/a Verizon Business",
"country_name":"United States",
"country_code":"US",
"region_name":"Massachusetts",
"region_code":"MA",
"city":"Norwell",
"postal_code":"02061",
"continent_name":"North America",
"continent_code":"NA",
"latitude":42.1596,
"longitude":-70.8217,
"metro_code":506,
"timezone":"America\/New_York",
"datetime":"2019-06-01 00:00:00"
}
}
}