Blog
IP Geolocation API — Location Data With Risk Scoring Built In
Get country, city, ASN, and timezone from any IP — plus proxy, VPN, and fraud risk in the same call. One key, one response.
Look up country, city, region, and timezone for any IP address, and get proxy, VPN, and fraud signals in the same response — so you're not paying for a geolocation vendor and a fraud vendor separately.
What the Geo Location API returns
A single GET request to /api/v1/traffic/check returns full location enrichment powered by MaxMind GeoLite2:
- Country, country code, and continent
- Region, city, and postal code
- Latitude, longitude, and accuracy radius in kilometers
- IANA timezone (e.g. America/Los_Angeles)
- ASN, ASN organization, and detected ISP
See the full field reference in the API docs.
Why bundle geo data with risk scoring
Most IP geolocation APIs stop at country and city. That's useful for content localization, but it doesn't tell you whether the request is trustworthy. Statin's Geo Location API layers connection_type, hosting, vpn, proxy, and tor flags on top of the same lookup, along with a 0–100 riskScore and reason codes like vpn_ip_range or hosting_or_datacenter_ip.
That means one integration covers both use cases:
- Localization and routing — serve region-specific pricing, currency, or content using country and region
- Fraud and compliance checks — flag signups where billing country doesn't match request country, or timezone offset looks inconsistent with claimed location
- Support and analytics — enrich dashboards with city-level context without a second API call
Read how one team consolidated fraud signals into a single score in our write-up on unifying risk scoring for fraud teams.
How it works
1. Create an account and copy your API key from the dashboard. 2. Call GET /api/v1/traffic/check?key=...&ip=... with the IP you want to look up. 3. Read country, city, timezone, and ASN straight from the JSON response — alongside proxy/VPN/risk flags if you need them.
Every request counts against your plan's daily quota and shows up in your dashboard's live request feed. Free plans include 500 requests/day; paid plans raise both the daily quota and requests-per-second limit — see plans and rate limits.
Common questions
Does the Geo Location API cost extra on top of risk scoring? No — geo enrichment (country, city, ASN, timezone, coordinates) is included in every /api/v1/traffic/check response at no extra cost, on every plan including Free.
What powers the location data? Local MaxMind GeoLite2-City and GeoLite2-ASN databases, refreshed regularly. See the FAQs for details on data handling.
Can I use just the geo fields and ignore risk scoring? Yes. The response includes both — use only the fields relevant to your integration.
