# IPGeolocation.io API reference

> 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…

Source: https://osinttools.io/apis/ipgeolocation-io/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/ipgeolocation-io/

- Base URL: https://api.ipgeolocation.io
- Authentication: API key in the `apiKey` query parameter. Get a key: https://ipgeolocation.io/ Paid plans can also use request origin whitelisting for client-side calls.
- Free tier: yes
- Pricing: Credits
- Rate limits: No per-second or per-minute limit is stated; usage is governed by credits (free plan: up to 1,000 credits per day).
- Vendor docs: https://ipgeolocation.io/documentation/ip-location-api.html

## Overview

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.

## Errors

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

## IP geolocation

### Geolocation, ASN, currency and time zone for one IP or domain.

`GET /v3/ipgeo`

- Takes: IP address, Domain
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | query | string | no | IPv4, IPv6 or domain (domain is paid-only); defaults to the caller's IP Example: 203.0.113.7 |
| `lang` | query | string | no | Response language, one of 13 codes such as cn, de, ja; non-English needs a paid plan Example: en |
| `include` | query | string | no | Comma-separated modules: geo_accuracy, dma_code, user_agent, security, abuse, hostname, liveHostname, hostnameFallbackLive; wildcards *, all, any Example: security,abuse |
| `fields` | query | string | no | Return only these fields, as dot paths Example: location.city,asn.organization |
| `excludes` | query | string | no | Remove these fields or objects, as dot paths Example: currency |

Response fields:

- `ip` (string): The address looked up
- `location.country_name` (string): Country name
- `location.city` (string): City
- `location.latitude` (string): Latitude
- `location.longitude` (string): Longitude
- `country_metadata.calling_code` (string): Country calling code
- `currency.code` (string): Currency code
- `asn.as_number` (string): Autonomous system number
- `asn.organization` (string): AS organisation
- `time_zone.name` (string): Time zone name
- `security.threat_score` (integer): Threat score (include=security, paid)
- `security.is_vpn` (boolean): VPN flag (include=security, paid)
- `abuse.emails[]` (string): Abuse contact emails (include=abuse, paid)

```bash
curl 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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"
  }
}
```

### Geolocation for up to 50,000 IPs in one request.

`POST /v3/ipgeo-bulk`

- Takes: IP address
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `fields` | query | string | no | Return only these fields, as dot paths Example: location.country_name,asn.organization |

Response fields:

- `[].ip` (string): The address looked up
- `[].location.country_name` (string): Country name (with default fields)
- `[].message` (string): Present instead of data for an entry that could not be looked up

```bash
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"]}'
```

Example response (200):

```json
[
  {
    "ip": "203.0.113.7",
    "location": {
      "country_name": "Exampleland"
    }
  },
  {
    "message": "Example message for an invalid entry"
  }
]
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
