Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Lookups draw on the plan’s credits; always check success, which is false when the account is out of credits (a soft failure can also lack the usual fields).
- A 403 means a rate limit; 500, 502 and 503 are system errors. Treat every field as nullable: new fields appear without notice.
- fraud_score runs 0 to 100: IPQS treats 85 and up as highly suspicious and 90 and up as high risk.
- Fraud reporting, custom tracking variables (userID, transactionID), allowlist/blocklist edits, CSV bulk uploads and postbacks are not in this entry. The URL scanner and credit usage APIs take the key only in the URL path, which this entry does not do.
Endpoints
Score an IP for proxy, VPN and fraud risk
- To match the IPQS website’s free lookup tool, use strictness=0, allow_public_access_points=true, lighter_penalties=true, mobile=true.
Verify an email and score its risk
- overall_score: 0 invalid, 1 DNS valid but mail server unreachable, 2 temporary rejection, 3 accepts all mail, 4 verified mailbox. A timeout sets timed_out true.
- IPQS documents a header-key form for this API; its table names the ip URL but passes an email parameter, so the email path used here is a reading of that table.
Validate a phone number and score its risk
- Owner names come mostly for US and Canadian numbers, with limited coverage elsewhere.