Geolocation, network, cloud and Tor flags for one IPv4 or IPv6 address, with bogon detection and a rule-based risk score. privacy=true adds VPN, proxy, residential proxy, relay, bot and threat detection.
curl -X POST "https://api.primaryapi.com/v1/run/ip.intelligence" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'{
"output": {
"found": true,
"data": {
"riskScore": "<integer>",
"isBogon": "<boolean>",
"ip": "<string>",
"hostname": "<string | null>", …
}
},
"credits": 1
}Input and output
2 fields
8.8.8.8.15 fields
Good to know
Bogon (private/reserved) addresses return isBogon: true with null geo.
Without privacy: true the VPN. proxy, relay, abuse, spam and bot flags are null and security is null. privacy: true fills them, with postal code, time zone, hostname and connection details too.
Unknown IP? It comes back as not found, not as an error.
Terms of use. When a response carries an attribution (lookups without privacy=true), keep it ("IP Geolocation by DB-IP", https://db-ip.com) wherever you display the data. IP addresses are personal data under GDPR.
The same key and credits work for every API.