Integrations · Location

FreeIPAPI, region and city, filled in.

When Cloudflare can’t place a visit, an online lookup at freeipapi.com fills in country, region and city. Use it with or without an API key; the page shows how many lookups were made this month.

Online lookupWith or without a keyLookups counted
Visitor locationFreeIPAPI
  • Online lookupfreeipapi.com
  • API keyOptional
  • 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.

StepWhereDetails
Choose the online lookupSettings › Data & API › Visitor locationfreeipapi.com
Add an API key, if you have oneThe same pageIt works with or without one
Watch the countThe same pageHow many lookups were made this month

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. When Cloudflare can’t place a visit, the fallback you chose fills in.

  • A MaxMind GeoLite2 City database in your Cloudflare account
  • Or an online lookup: freeipapi.com, ip2location.io or ipapi.co
  • With or without an API key for the online lookups
Visitor location →
Visitor locationOrder
  • CloudflareFirst
  • MaxMind GeoLite2Fallback
  • Online lookupFallback

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
Visitor location →
Managed TransformsCloudflare
  • Add visitor location headersOn

Questions

FreeIPAPI questions

Something else? Ask us.

Do I need an API key for FreeIPAPI?

No. The online lookup works with or without an API key.

How many lookups are made?

The page shows how many lookups were made this month.

When is it used?

Only when Cloudflare can’t place a visit, such as one an ad blocker sent through the website.

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.