iplocation
iplocation copied to clipboard
Re-add other services
It might be more useful to have many services that are all slightly off from each other than to rely on a single one. Maybe re-add the services that used to be here?
Do you plan to support new API in the iplocation script?
For your information, we have IP2Location.io API which has free tier that is good for your script.
We can offer integration help if you are interested.
Putting IPinfo.io's name in the hat as well. We provide easily accessible IP to Geolocation data through API.
Features
Without API token access
- Users can make IP geolocation API calls without a token
- The API rate-limits upto 1,000 requests/day without an access token
With free tier token access
- Users can make 50,000 requests/month with a free tier API access token
- To sign up for the free tier, users don't have to provide payment information or anything. It is effortless to get started.
With premium tier token access
- With premium tier services, users can access other IP information available to them, such as ASN information, anonymous/VPN IP detection, IP to Company information etc.
- https://ipinfo.io/pricing
Example Queries
Making an API without a token
curl ipinfo.io/$ip_address
{
"ip": "17.236.163.29",
"city": "Cupertino",
"region": "California",
"country": "US",
"loc": "37.3230,-122.0322",
"org": "AS714 Apple Inc.",
"postal": "95014",
"timezone": "America/Los_Angeles",
"readme": "https://ipinfo.io/missingauth"
}
Making an API call with a free tier token
curl ipinfo.io/$ip_address?token=<access_token>
{
"ip": "17.236.163.29",
"city": "Cupertino",
"region": "California",
"country": "US",
"loc": "37.3230,-122.0322",
"org": "AS714 Apple Inc.",
"postal": "95014",
"timezone": "America/Los_Angeles"
}
Making an API call with an access token with premium services
curl ipinfo.io/$ip_address?token=<access_token>
{
"ip": "17.236.163.29",
"city": "Cupertino",
"region": "California",
"country": "US",
"loc": "37.3230,-122.0322",
"postal": "95014",
"timezone": "America/Los_Angeles",
"asn": {
"asn": "AS714",
"name": "Apple Inc.",
"domain": "apple.com",
"route": "17.128.0.0/9",
"type": "business"
},
"company": {
"name": "Apple Inc.",
"domain": "apple.com",
"type": "business"
},
"privacy": {
"vpn": false,
"proxy": false,
"tor": false,
"relay": false,
"hosting": false,
"service": ""
},
"abuse": {
"address": "US, CA, Cupertino, MS 89-1DR, 1 Infinite Loop, 95014",
"country": "US",
"email": "[email protected]",
"name": "Apple Abuse",
"network": "17.0.0.0/8",
"phone": "+1-408-974-7777"
},
"domains": {
"page": 0,
"total": 0,
"domains": []
}
}