An IP hostname API in Python returns reverse DNS. On ipXapi the field is hostname on GET /api/abuse-check?ip=. Official IP: 8.8.8.8 → dns.google.
Basic $29.99/mo, 7-day trial or 50 requests. MCP: mcp.ipxapi.com.
Request
curl 'https://ipxapi.com/api/abuse-check?ip=8.8.8.8' -H 'Authorization: Bearer YOUR_KEY'
Response: official hostname (selected)
{"ip": "8.8.8.8", "hostname": "dns.google", "domain": "google.com", "isp": "Google LLC", "usage_type": "Content Delivery Network", "is_listed": false}
Go live
1. Register — 7-day trial.
2. Copy the Bearer key.
3. GET /api/abuse-check?ip=.
4. Render hostname and domain.
Read reverse DNS in Python →