Skip to content
OSINTtools.io

IPGeolocation.io API

IP geolocation API with separate security, ASN, abuse-contact and time-zone endpoints; takes an IP address or, on paid plans, a domain.

Base URL
https://api.ipgeolocation.io
Sign-in
API key
Free tier
Free tier
Pricing
Credits
Format
REST, Bulk files
Endpoints
2

Compiled by OSINTtools.io editors from ipgeolocation.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The IPGeolocation.io IP Geolocation API returns location, country metadata, currency, ASN and time zone for an IPv4 or IPv6 address, and for a domain name on paid plans. Optional modules add security signals (VPN, proxy, Tor, bot flags and a threat score), the abuse contact, hostname and user agent parsing.

Calls go to https://api.ipgeolocation.io with the key in the apiKey query parameter. Omit ip to look up the caller's own address. Use fields and excludes with dot paths such as location.city to trim the response. Usage is counted in credits: a base lookup costs 1, the security module adds 2 and the abuse module adds 1; check the X-Credits-Charged header for the exact charge.

The free plan returns the default fields in English with no add-on modules, no domain lookups and no bulk. Named modules on a free key return 401. Separate endpoints exist for security (/v3/security), abuse (/v3/abuse) and ASN (/v3/asn); their parameters were not read for this reference.

Quick start

  1. Get a key

    Create an account with IPGeolocation.io and copy your api key (free tier). Where to get it

  2. Make your first request

    Geolocation, ASN, currency and time zone for one IP or domain.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "ip": "203.0.113.7",
      "location": {
        "country_name": "Exampleland",
        "city": "Example City",
        "latitude": "10.0000",
        "longitude": "20.0000"
      },
      "country_metadata": {
        "calling_code": "+999"
      },
      "currency": {
        "code": "EXA"
      },
      "asn": {
        "as_number": "AS64496",
        "organization": "Example Net AB"
      },
      "time_zone": {
        "name": "Etc/UTC"
      }
    }

Authentication

Send your API key in the apiKey query parameter of every request.

Paid plans can also use request origin whitelisting for client-side calls.

Get a key from IPGeolocation.io

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

No per-second or per-minute limit is stated; usage is governed by credits (free plan: up to 1,000 credits per day).

Free tier. Pricing: credits.

Errors

StatusMeaning
400Invalid or unresolvable IP or domain, invalid lang, malformed bulk payload, or more than 50,000 IPs in bulk
401Missing or invalid API key, or a free key used for paid-only features
402Paid subscription past its active-until date
403Request from an IP not on the key's allow-list
404IP not in the database, bad parameter format or unknown endpoint
423IP is a bogon or private-network address
429Usage limit reached

IP geolocation

  • Takes: IP address
  • Takes: Domain
  • Passive: the target is not contacted
  • Cost: 1 credit; include=security adds 2, include=abuse adds 1
  • Plan: Free plan returns default fields; modules and domain lookups need a paid plan

Omit ip to use the caller's address. Domain lookups are paid-only. Non-English lang values need a paid plan. Wildcards in include return default fields on the free plan.

Query parameters

ipstringtakes your ip address

IPv4, IPv6 or domain (domain is paid-only); defaults to the caller's IP

Example: 203.0.113.7
langstring

Response language, one of 13 codes such as cn, de, ja; non-English needs a paid plan

Example: enDefault: en
includestring

Comma-separated modules: geo_accuracy, dma_code, user_agent, security, abuse, hostname, liveHostname, hostnameFallbackLive; wildcards *, all, any

Example: security,abuse
fieldsstring

Return only these fields, as dot paths

Example: location.city,asn.organization
excludesstring

Remove these fields or objects, as dot paths

Example: currency
Response fields · 13Show

ipstring

The address looked up

country_namestring

Country name

citystring

City

latitudestring

Latitude

longitudestring

Longitude

calling_codestring

Country calling code

codestring

Currency code

as_numberstring

Autonomous system number

organizationstring

AS organisation

namestring

Time zone name

threat_scoreinteger

Threat score (include=security, paid)

is_vpnboolean

VPN flag (include=security, paid)

emails[]string

Abuse contact emails (include=abuse, paid)

curl 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "203.0.113.7",
  "location": {
    "country_name": "Exampleland",
    "city": "Example City",
    "latitude": "10.0000",
    "longitude": "20.0000"
  },
  "country_metadata": {
    "calling_code": "+999"
  },
  "currency": {
    "code": "EXA"
  },
  "asn": {
    "as_number": "AS64496",
    "organization": "Example Net AB"
  },
  "time_zone": {
    "name": "Etc/UTC"
  }
}
  • Takes: IP address
  • Passive: the target is not contacted
  • Cost: Per valid entry; see the X-Credits-Charged header
  • Plan: Paid plans only

Billed per valid entry. Invalid, bogon or unresolvable entries return a message object and are not charged; the X-Successful-Record header appears when some entries return messages. Send a JSON content type. Accepts the same query parameters as the single lookup.

Query parameters

fieldsstring

Return only these fields, as dot paths

Example: location.country_name,asn.organization
Request body (JSON) · 1Show

ipsstring[]always present

IPs to look up, up to 50,000

Response fields · 3Show

ipstring

The address looked up

country_namestring

Country name (with default fields)

messagestring

Present instead of data for an entry that could not be looked up

curl -X POST 'https://api.ipgeolocation.io/v3/ipgeo-bulk?apiKey=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"ips":["203.0.113.7","198.51.100.9"]}'
Replace YOUR_API_KEY with your key
Response
[
  {
    "ip": "203.0.113.7",
    "location": {
      "country_name": "Exampleland"
    }
  },
  {
    "message": "Example message for an invalid entry"
  }
]