HSAAS IP Lookup API
A lightweight wrapper around ip-api.com, served from HSAAS with caching and rate limiting.
Endpoints
GET /api/ip
— returns data for the caller IPGET /api/ip?ip=8.8.8.8
— returns data for a specific IP or hostname
Response
{ "source":"ip-api.com","cached":true,"data": { /* ip-api payload */ } }
Usage Examples
curl
curl https://yourdomain.com/api/ip?ip=8.8.8.8
JavaScript (fetch)
fetch('https://yourdomain.com/api/ip?ip=1.1.1.1') .then(r => r.json()) .then(console.log);
Notes: Free ip-api.com plan is rate-limited and HTTP-only; HSAAS performs server-side calls and caches responses to protect upstream limits.