Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

DB-IP

DB-IP's free tier allows 500 basic geolocation lookups a day with no credit card and no overage on that daily cap, but it has no HTTPS.

DB-IP offers a free HTTP API that maps an IP address to country, state, and city. Paid plans add detail and HTTPS. It is meant for prototypes and small websites.

By DB-IPAPIs & dataChecked ✓ 23 Nov 2026

Is it a fit?

Good fit

Use DB-IP when you need country, state, or city lookups at low volume and plain HTTP calls are fine.

  • prototyping
  • student projects
  • personal sites

Not a fit

Avoid it if you need HTTPS, more than 500 requests a day for free, or detail such as coordinates, timezone, or ASN.

  • need HTTPS
  • require coordinates or ASN data
  • high traffic

You call the free endpoint straight from curl, a browser script, or the PHP client, with no account in the examples. It suits small sites and prototypes that need a visitor's country, state, or city and can live with plain HTTP.

What the free plan gives you

The free API maps an IP address to country, state, and city. It is limited to 500 requests per day. The free URL uses free in place of an API key, for example http://api.db-ip.com/v2/free/8.8.8.8. You can also pass self to look up the address that sends the request.

The free API does not include the extra data of the paid Basic API, such as GPS coordinates, district, zip code, and timezone. Localized place names are for paid keys only. The Basic API starts at 8.29 EUR a month and adds HTTPS.

When you hit a limit

The docs list an error OVER_QUERY_LIMIT for a key that has used its daily quota. A batch query that would go over the quota also raises it. The docs and pricing pages describe no bill for the free API.

The docs also list TEMPORARY_BLOCKED for the free API. DB-IP uses it when its systems see unusual or malicious activity, and it blocks the key for a while.

Gotchas

  • The free API works only over HTTP. Calling it over HTTPS returns the HTTPS_NOT_ALLOWED error, so a browser page served over HTTPS may block the call.
  • A batch query helps your quota: it gets a 10% bonus, so 10 addresses cost 9 queries. Free batches accept up to 32 addresses per request; larger batches can return TOO_MANY_ADDRESSES.
  • Free responses carry less data than paid ones. For coordinates, timezone, or ASN data you need a paid API.

Alternatives in this atlas

  • IPinfo: when you want country-level lookups with no request cap and HTTPS.
  • IPLocate: when you want a daily allowance with full data and no credit card.
  • Geolocated.io: when you want a larger daily allowance on a free plan.

Questions people ask

Is the DB-IP API free?

Yes. The free API gives you country, state, and city for an IP address, limited to 500 requests per day.

Does the DB-IP free API support HTTPS?

No. The docs say encrypted API access is only for paid service, and the free API returns HTTPS_NOT_ALLOWED over HTTPS.

What happens when I go over the DB-IP free limit?

The API returns an OVER_QUERY_LIMIT error once you use your daily quota. The paid Starter plan raises the daily limit to between 2,000 and 50,000 requests.

How to get started

  1. Open the free API page at `db-ip.com/api/free`.
  2. Pick an IP address to look up, or use `self` for your own address.
  3. Send a GET request to `http://api.db-ip.com/v2/free/8.8.8.8` over plain HTTP, with no key.
  4. Read the JSON response for country, state, and city.
  5. Add a paid key later if you need HTTPS, coordinates, or more requests.

Other free apis & data options

Same category, safest first.

Open-Meteo · APIs & data
10,000 API calls per day · 600 API calls per minute and 5,000 per hour · 300,000 API calls per month listed; monthly limits currently not enforced
Billing risk: None
No card
Esri · APIs & data
2M basemap tiles or 1K basemap sessions per month · 20K geocodes (not stored) per month · 20K routes and 5K service areas per month
Billing risk: None
No card
ipwho.org · APIs & data
2,000 lookups/day on the free plan, hard limit · All fields included on every plan, no feature gating · No credit card required
Billing risk: None
No card
ip-api · APIs & data
45 requests per minute per IP · HTTP only (no HTTPS) · No API key or registration required
Billing risk: None
No card