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_ALLOWEDerror, 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
- Open the free API page at `db-ip.com/api/free`.
- Pick an IP address to look up, or use `self` for your own address.
- Send a GET request to `http://api.db-ip.com/v2/free/8.8.8.8` over plain HTTP, with no key.
- Read the JSON response for country, state, and city.
- Add a paid key later if you need HTTPS, coordinates, or more requests.
Other free apis & data options
Same category, safest first.