# DB-IP API reference

> The DB-IP API returns geolocation and network details for an IP address: country, region, city, coordinates, time zone, AS number and name, ISP, and on higher plans proxy and threat flags. An investigator uses it to place an address and see who runs the network. Calls are plain GET requests with…

Source: https://osinttools.io/apis/db-ip/ (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/db-ip/

- Base URL: https://api.db-ip.com/v2
- Authentication: No key needed. Get a key: https://db-ip.com/api/ The key is part of the URL path ({apiKey}); use the word free for the free tier, which works over HTTP only (HTTPS needs a paid key).
- Free tier: yes
- Rate limits: Daily quota per key (queriesPerDay); no per-second limit stated in the docs
- Vendor docs: https://db-ip.com/api/doc.php

## Overview

The DB-IP API returns geolocation and network details for an IP address: country, region, city, coordinates, time zone, AS number and name, ISP, and on higher plans proxy and threat flags. An investigator uses it to place an address and see who runs the network.

Calls are plain GET requests with the key in the URL path. The key `free` works without signing up, over HTTP only; HTTPS needs a paid key. Responses are JSON. Quota is counted per day, and the docs give no per-second limit.

The AS endpoints need a Core or Extended plan. Batch lookups take several addresses separated by commas.

## IP lookups

### Geolocation and network details for one IPv4 or IPv6 address.

`GET /{apiKey}/{ipAddress}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Cost: 1 query

Returns the fields your plan includes. Use `self` as the address to look up the caller. Free keys return basic location fields only; paid tiers add network, proxy and threat fields.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `apiKey` | path | string | yes | Your API key, or free for the free tier Example: free |
| `ipAddress` | path | string | yes | IPv4 or IPv6 address, or self Example: 203.0.113.7 |

Response fields:

- `ipAddress` (string): The address looked up
- `continentCode` (string): Two-letter continent code
- `continentName` (string): Continent name
- `countryCode` (string): ISO 3166-1 alpha-2 country code
- `countryName` (string): Country name
- `stateProv` (string): State or province
- `city` (string): City
- `latitude` (number): Latitude (paid tiers)
- `longitude` (number): Longitude (paid tiers)
- `timeZone` (string): IANA time zone name (paid tiers)
- `asNumber` (integer): Autonomous system number (paid tiers)
- `asName` (string): Autonomous system name (paid tiers)
- `isp` (string): Internet service provider (paid tiers)
- `isProxy` (boolean): Whether the address is a proxy (paid tiers)
- `threatLevel` (string): low, medium or high (paid tiers)
- `threatDetails[]` (string): Threat flags such as anonymous-proxy or port-scan (paid tiers)

```bash
curl 'https://api.db-ip.com/v2/free/203.0.113.7'
```

Example response (200):

```json
{
  "ipAddress": "203.0.113.7",
  "continentCode": "EU",
  "continentName": "Europe",
  "countryCode": "NL",
  "countryName": "Netherlands",
  "stateProv": "Noord-Holland",
  "city": "Amsterdam"
}
```

### One property of an IP lookup, such as isEuMember or city.

`GET /{apiKey}/{ipAddress}/{propertyName}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Cost: 1 query

Returns only the named field instead of the whole object.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `apiKey` | path | string | yes | Your API key, or free Example: free |
| `ipAddress` | path | string | yes | IPv4 or IPv6 address, or self Example: 203.0.113.7 |
| `propertyName` | path | string | yes | Name of the field to return Example: countryCode |

Response fields:

- `(value)` (string): The value of the requested property

```bash
curl 'https://api.db-ip.com/v2/free/203.0.113.7/countryCode'
```

Example response (200):

```
NL
```

### Batch lookup: several comma-separated addresses in one request.

`GET /{apiKey}/{ipAddresses}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Cost: 1 query per address, 10% less in a batch

Returns an object keyed by address; each value is a lookup object or an error object. Up to 32 addresses on the free key and 256 on paid keys. Batches get a 10% quota bonus.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `apiKey` | path | string | yes | Your API key, or free Example: free |
| `ipAddresses` | path | string | yes | Comma-separated IP addresses Example: 203.0.113.7,198.51.100.4 |

Response fields:

- `{ip}` (object): Lookup object (or error object) for each requested address
- `{ip}.countryCode` (string): ISO country code
- `{ip}.city` (string): City

```bash
curl 'https://api.db-ip.com/v2/free/203.0.113.7%2C198.51.100.4'
```

Example response (200):

```json
{
  "203.0.113.7": {
    "ipAddress": "203.0.113.7",
    "countryCode": "NL",
    "city": "Amsterdam"
  },
  "198.51.100.4": {
    "ipAddress": "198.51.100.4",
    "countryCode": "DE",
    "city": "Berlin"
  }
}
```

## Autonomous systems

### Details of an autonomous system by AS number.

`GET /{apiKey}/as/{asNumber}`

- Footprint: passive (the target is not contacted)
- Cost: 1 query
- Plan: Core and Extended

Available on Core and Extended plans; Basic keys get RESTRICTED. The same path also accepts an IP address instead of an AS number.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `apiKey` | path | string | yes | Your API key Example: YOUR_API_KEY |
| `asNumber` | path | integer | yes | AS number Example: 64496 |

Response fields:

- `number` (integer): AS number
- `name` (string): AS name
- `organization` (string): Organization
- `registry` (string): Regional registry: ripe, arin, apnic, lacnic or afrinic
- `countryCode` (string): ISO country code
- `prefixCount` (integer): Number of prefixes
- `ipv4.addressCount` (integer): IPv4 addresses
- `ipv6.addressCount` (integer): IPv6 addresses

```bash
curl 'https://api.db-ip.com/v2/YOUR_API_KEY/as/64496'
```

Example response (200):

```json
{
  "number": 64496,
  "name": "EXAMPLE-AS",
  "organization": "Example Networks",
  "registry": "ripe",
  "countryCode": "NL",
  "prefixCount": 12,
  "ipv4": {
    "addressCount": 4096,
    "prefixCount": 8
  },
  "ipv6": {
    "addressCount": 1024,
    "prefixCount": 4
  }
}
```

## Account

### Remaining quota for a key.

`GET /{apiKey}`

- Footprint: passive (the target is not contacted)

Free keys return queriesLeft only. Paid keys also return the daily allowance, status and expiry.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `apiKey` | path | string | yes | Your API key, or free Example: free |

Response fields:

- `queriesLeft` (integer): Queries left today
- `queriesPerDay` (integer): Daily allowance (paid keys)
- `status` (string): trial, active or canceled (paid keys)

```bash
curl 'https://api.db-ip.com/v2/free'
```

Example response (200):

```json
{
  "queriesLeft": 969
}
```

---

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/
