1. API de IP simple: https://ips.im/api
Use Curl para obtener tu dirección IP: curl https://ips.im/api
Respuesta: 70.44.149.3
2. API JSON con detalles completos de la IP: https://ips.im/api/json
Usar Curl para obtener información de la IP: curl https://ips.im/api/json
Response:
{ "ip": '70.44.149.3', "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", "version": "", "country": "CA", "city": "Toronto", "region": "Ontario", "regionCode": "ON", "timezone": "America/Toronto", "postalCode": "M4G", "asn": 577, "colo": "YYZ", "asOrganization": "Bell Canada Business" }