📜  apiipify (1)

📅  最后修改于: 2023-12-03 15:29:26.853000             🧑  作者: Mango

APIipify

APIipify is a simple and easy to use API service that allows developers to obtain information about an IP address, including its location, timezone, and ISP. It is useful for security-related tasks like geofencing, where you restrict access to certain areas of your site/app based on visitors' locations.

Features
  • Provides information about the IP address such as location, timezone, and ISP.
  • Easy to use API service with HTTP requests.
  • Provides JSON/XML response formats.
Getting Started

To get started with APIipify, you first need to sign up with your email address and get an API key. You can obtain your API key by visiting APIipify website. Once you have your API key, you can start making HTTP requests.

Making an HTTP request to APIipify is simple and straightforward. There are two endpoints which are used to obtain information about IP addresses. These endpoints are:

  1. /json/{IP address}
  2. /xml/{IP address}

Here is an example of an HTTP request with cURL in your terminal:

$ curl https://api.apiipify.com/json/8.8.8.8?apiKey=YOUR_API_KEY

This will return the following response:

{
  "ip": "8.8.8.8",
  "countryCode": "US",
  "countryName": "United States",
  "regionName": "Ohio",
  "cityName": "Columbus",
  "zipCode": "43215",
  "latitude": "39.9607",
  "longitude": "-83.0016",
  "timeZone": "-04:00:00",
  "isp": "Google LLC"
}
Pricing

APIipify has a free plan, which includes 1000 requests per month. After reaching the limit, the service will return a 429 Too Many Requests status code. APIipify also offers paid plans with additional features such as SSL encryption and faster response times.

Conclusion

APIipify is a great tool for developers that need to obtain information about IP addresses. It is easy to use, provides JSON/XML formats, and has a free plan. Get started by signing up with your email address and obtaining your API key!