IP Geolocation API - Free IP Address Lookup
Returns geolocation data for an IP address, including country, city, region, coordinates, timezone, ASN, and Cloudflare data center. If no IP is provided, the caller's own IP is used.
Code examples
curl -X POST https://api.botoi.com/v1/ip/lookup \
-H "Content-Type: application/json" \
-d '{"ip":"203.0.113.1"}'When to use this API
Personalize content by visitor location
Detect a visitor's country and city on page load to show localized pricing, language, or shipping options. A SaaS checkout page can call this endpoint to pre-fill the currency selector based on the visitor's country code.
Fraud scoring in payment pipelines
Compare the IP geolocation of a transaction against the billing address on file. Flag orders where the IP resolves to a different country than the card issuer, and route flagged transactions through manual review.
Compliance logging for access audits
Record the country and region of every admin login to an internal dashboard. Generate a monthly report of access events grouped by geography to satisfy SOC 2 or GDPR audit requirements.
Frequently asked questions
How accurate is the IP geolocation data?
Does this endpoint support IPv6 addresses?
What happens if I omit the ip parameter?
What is the ASN field?
Is there a rate limit on this endpoint?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.