The IP Info API provides detailed information about the client making a request, including IP address, geolocation (city and country), and User Agent. It is designed to aid developers in understanding client attributes and can be used in various scenarios like personalizing content, enforcing security measures, or analyzing client behavior.
Endpoints:
/info
Method: GET, POST
Description: Retrieves comprehensive information about the client, including IP address, HTTP headers, city, and country based on geolocation.
Response:
IP: The IP address of the client.
User-Agent: Client's User Agent (if set).
city: The name of the city associated with the client's IP address.
country: The name of the country associated with the client's IP address.
error: An error message if the IP address is not found in the database.
/ip
Method: GET, POST
Description: Retrieves only the IP address of the client.
Response:
IP: The IP address of the client.