IPAPI Integration¶
Official IPAPI API Documentation
IPAPI provides IP address and hostname geolocation data. Use KeyPool to call IPAPI with your team token and a stable base URL.
Endpoint¶
{YOUR_KEYPOOL_BASE_URL}/v1/ipapi
Authentication¶
Send your KeyPool team token as a bearer token. Do not pass an upstream access_key query parameter.
Authorization: Bearer {KEYPOOL_TOKEN}
Quick Start¶
Lookup An IP Address¶
curl -G "${KEYPOOL_BASE_URL}/v1/ipapi/api/161.185.160.93" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}" \
--data-urlencode "fields=main"
Lookup The Caller IP¶
curl "${KEYPOOL_BASE_URL}/v1/ipapi/api/check" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}"
Common Parameters¶
| Parameter | Purpose |
|---|---|
fields |
Limit the returned response fields |
hostname |
Request hostname data when supported |
security |
Request security data when supported |
language |
Localize supported response fields |
Interactive API Reference¶
For in-browser testing, see API Reference -> IPAPI.