
ipapi.co, region and city, filled in.
When Cloudflare can’t place a visit, an online lookup at ipapi.co fills in country, region and city. Up to 1,000 lookups a day without an API key, or more with a paid key; the page shows how many lookups were made this month.
- Online lookupipapi.co
- API keyOptional
- Without a key1,000 a day
- LookupsThis month
A fallback when Cloudflare can’t place a visit.
Illustration
At a glance
Every visit placed.
When Cloudflare can’t place a visit, a fallback fills in.
Cloudflare first
The most exact, used whenever it can.
Only when needed
An ad blocker sent the visit through the website, or an unusual proxy.
Country, region and city
Filled in for visits Cloudflare can’t place.
One setting
Settings › Data & API › Visitor location.
Setup
Set it up.
In Settings › Data & API › Visitor location.
Where it shows
Where you see it.
Location on every report.
Countries
On every dashboard and report.
Regions and cities
For visits Cloudflare can’t place.
Ad-blocked visits
Sent through the website, still placed.
Unusual proxies
Placed by the fallback.
Lookups this month
Shown for online lookups.
Other Cloudflare accounts
Keep region and city with location headers.
The order
Cloudflare first, then a fallback.
Country, region and city come from Cloudflare first, which is the most exact. ipapi.co is asked only about visits Cloudflare can’t place, and each answer is cached for 30 days per address block.
- Without a key, the platform stays under the free limit
- Over the limit or no answer: the MaxMind database answers instead
- Switch to ip2location.io or freeipapi.com at any time; each saved key is kept
- CloudflareFirst
- ipapi.coFallback
- MaxMind GeoLite2If ipapi.co has no answer
Someone else’s Cloudflare
Keep region and city.
For websites on someone else’s Cloudflare account that forward visits through their own server, turn on Add visitor location headers in that account.
- In Rules › Settings › Managed Transforms
- On the other Cloudflare account
- Keeps region and city
- Add visitor location headersOn
Do I need an API key for ipapi.co?
No. Without a key you get up to 1,000 lookups a day, and the platform stays under that limit. Paid plans start at $15 a month for 60,000 lookups.
When is it used?
Only when Cloudflare can’t place a visit, such as one an ad blocker sent through the website. Each answer is cached for 30 days per address block.
What does ipapi.co receive?
The visitor’s IP address, for the lookup. ipapi.co is run by Kloudend, Inc. in the United States, and says it keeps lookups in its server logs for a limited time. Name it in your privacy policy; the About page lists it for you.
What if ipapi.co is over its limit?
The MaxMind GeoLite2 database answers instead, when you have it set up.
Is there an option that stays in my account?
Yes. A MaxMind GeoLite2 database in your Cloudflare account keeps every address there.
Try it on every client site.
Unlimited websites, every feature, one license.