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']['is_cloud_provider'] ?? null;
Response: official security object (selected)
{
"status": "success",
"isp": "MailChimp",
"org": "MailChimp",
"as": "AS14782 MailChimp",
"query": "148.105.12.120",
"city": "Mountain View",
"security": {
"is_proxy": false,
"is_tor": false,
"is_cloud_provider": true,
"is_vpn": false,
"is_anonymous": false,
"is_threat": false
}
}
Go live
1. Register — 7-day trial.
2. Copy the Bearer key.
3. GET /api/ip from PHP.
4. Branch on security.
Look up an IP from PHP with an ipXapi key →