ipapi.co

IP-based geolocation — country, city, ISP, currency, timezone. 1,000 free calls/day.

GeneralFreemiumfreemiumגיאו-מיקום
Official siteDocumentation

About this API

ipapi.co identifies a user's approximate location from their IP — content personalization (country/currency/language), fraud detection, analytics. 1,000 free calls/day, no signup required.

Who it's for

Automatic currency/language matching
Fraud protection
Analytics

How to use it

  1. 1
    Call ipapi.co/{ip}/json/ or ipapi.co/json/ (visitor's IP).

Installation & setup

None.

Code examples

curl "https://ipapi.co/json/"

Sample response

{
  "ip": "37.142.10.1",
  "country_name": "Israel",
  "country_code": "IL",
  "city": "Tel Aviv",
  "timezone": "Asia/Jerusalem",
  "currency": "ILS",
  "languages": "he,ar-IL,en-IL"
}

FAQ

City-level ~80%. Country-level 99%+.

Tips & pitfalls

Avoid client-side calls — the IP they receive will differ.

Guides

Related APIs