i
p
X
a
p
i
IP Lookup in PHP: City, ASN, and Cloud Flag
An IP lookup in PHP is a Bearer GET — not a form post. On ipXapi the path is GET https://ipxapi.com/api/ip?ip=. Official test-drive fixture: 148.105.12.120 (MailChimp / AS14782, Mountain View, is_cloud_provider=true, is_vpn=false).
Basic is $29.99/mo. Trial is 7 days or 50 requests. MCP: mcp.ipxapi.com. Docs: ipxapi.com/documentation.
PHP: official MailChimp IP
$ch = curl_init('https://ipxapi.com/api/ip?ip=148.105.12.120');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'Authorization: Bearer YOUR_KEY',
],
]);
$json = json_decode(curl_exec($ch), true);
$city = $json['city'] ?? null;
$cloud = $json['security'...
Continue Reading
Latest Articles
IP Geolocation API: City, ASN, and VPN Flags
An IP geolocation API is a REST endpoint that turns an IPv4/IPv6 address into JSON: country, city, coordinates, ASN/ISP, currency, and a security obje...
Continue Reading
ASN Details API For Network Information And Insights
With the growing complexity of the web and the need for detailed network information, tools like the ASN Details API from ipXapi have become indispens...
Continue Reading
ASN Details APIs For Accurate ISP And Network Tracking
Because there is so much data available online, it is difficult for organizations to manually track and maintain the accuracy of ASN information. This...
Continue Reading
