# Network Data Labs API reference

> Network Data Labs returns IP address and ASN data as JSON: location, network and ASN details, and traits such as VPN, Tor, relay and hosting flags. An investigator can use it to place an IP address, see which network owns it and check whether it belongs to anonymising or hosting infrastructure.…

Source: https://osinttools.io/apis/network-data-labs/ (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/network-data-labs/

- Base URL: https://api.networkdatalabs.com/v0
- Authentication: Bearer token in the `Authorization` header. Get a key: https://www.networkdatalabs.com/ A ?api_key= query parameter works for testing only.
- Free tier: yes
- Rate limits: Free: 1 request/second and 1,000 requests per UTC month. Paid: Starter 10/s, Growth 25/s, Scale 50/s; monthly quotas allow a 10% buffer. A bulk call counts as 1 request for the per-second limit and one per IP against the quota.
- Vendor docs: https://www.networkdatalabs.com/docs

## Overview

Network Data Labs returns IP address and ASN data as JSON: location, network and ASN details, and traits such as VPN, Tor, relay and hosting flags. An investigator can use it to place an IP address, see which network owns it and check whether it belongs to anonymising or hosting infrastructure.

All endpoints live under `https://api.networkdatalabs.com/v0`. Send your key as `Authorization: Bearer YOUR_API_KEY`; a `?api_key=` query parameter also works for quick tests but the header is preferred. Free keys do not receive the risk flags (`is_hosting`, `is_proxy`, `is_vpn`, `is_tor`, `is_relay`).

The Free plan allows 1 request per second and 1,000 requests per UTC calendar month. Errors share one shape, `{"error": {"code", "message"}}`.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | INVALID_IP: malformed IP address |
| 401 | UNAUTHORIZED: missing or unknown key |
| 403 | PLAN_REQUIRED (e.g. bulk on a Free key) or KEY_RESTRICTED (origin or IP allowlist mismatch) |
| 404 | NOT_FOUND: unknown ASN |
| 429 | RATE_LIMITED or QUOTA_EXCEEDED; Retry-After and X-RateLimit-* headers are sent |

## IP lookups

### Location, network and traits for an IPv4 or IPv6 address.

`GET /ip/{ip}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Cost: 1 request against the monthly quota

Returns location, network (ASN, organisation, CIDR, RIR) and boolean traits. Free keys omit the risk flags.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | IPv4 or IPv6 address Example: 203.0.113.7 |

Response fields:

- `ip` (string): The address looked up
- `location.country_code` (string): Country code
- `location.country` (string): Country name
- `location.region` (string): Region
- `location.city` (string): City
- `location.latitude` (number): Latitude
- `location.longitude` (number): Longitude
- `location.accuracy_radius_km` (number): Accuracy radius in km
- `location.confidence` (string): high, medium, low or unknown
- `network.asn` (integer): Autonomous system number
- `network.as_org` (string): AS organisation
- `network.network` (string): CIDR range
- `network.rir` (string): Regional internet registry
- `traits.is_vpn` (boolean): VPN (paid plans)
- `traits.is_tor` (boolean): Tor exit (paid plans)
- `traits.is_hosting` (boolean): Hosting provider (paid plans)

```bash
curl 'https://api.networkdatalabs.com/v0/ip/203.0.113.7' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "203.0.113.7",
  "location": {
    "country_code": "NL",
    "country": "Netherlands",
    "city": "Amsterdam",
    "latitude": 52.37,
    "longitude": 4.89,
    "accuracy_radius_km": 50,
    "confidence": "medium"
  },
  "network": {
    "asn": 64496,
    "as_org": "Example Networks",
    "network": "203.0.113.0/24",
    "rir": "RIPE"
  },
  "traits": {
    "is_vpn": false,
    "is_tor": false,
    "is_hosting": true
  }
}
```

### The same lookup for the caller's own public IP.

`GET /ip`

- Footprint: passive (the target is not contacted)
- Cost: 1 request against the monthly quota

Counts toward the quota.

Response fields:

- `ip` (string): The caller's address
- `location.country_code` (string): Country code
- `network.asn` (integer): Autonomous system number

```bash
curl 'https://api.networkdatalabs.com/v0/ip' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "198.51.100.4",
  "location": {
    "country_code": "NL"
  },
  "network": {
    "asn": 64496
  }
}
```

### Look up up to 100 IP addresses in one request.

`POST /bulk`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Cost: 1 request for the per-second limit, one per IP against the quota
- Plan: Starter and up

Paid plans only; Free keys get 403 PLAN_REQUIRED. Results are keyed by IP, with per-IP failures in errors.

Response fields:

- `results` (object): Lookup result for each IP, keyed by address
- `errors` (object): Per-IP failures

```bash
curl -X POST 'https://api.networkdatalabs.com/v0/bulk' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"ips":["203.0.113.7","198.51.100.4"]}'
```

Example response (200):

```json
{
  "results": {
    "203.0.113.7": {
      "ip": "203.0.113.7",
      "network": {
        "asn": 64496
      }
    }
  },
  "errors": {}
}
```

## ASN lookups

### Name, organisation, type and country of an autonomous system.

`GET /asn/{asn}`

- Footprint: passive (the target is not contacted)

Accepts the number with or without the AS prefix.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `asn` | path | string | yes | ASN, e.g. 64496 or AS64496 Example: AS64496 |

Response fields:

- `asn` (integer): ASN
- `name` (string): AS name
- `org` (string): Organisation
- `domain` (string): Organisation domain
- `type` (string): Network type
- `country_code` (string): Country code
- `rir` (string): Regional internet registry
- `prefixes_sample` (string[]): Sample of announced prefixes

```bash
curl 'https://api.networkdatalabs.com/v0/asn/AS64496' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "asn": 64496,
  "name": "EXAMPLE-NET",
  "org": "Example Networks",
  "domain": "example.com",
  "type": "hosting",
  "country_code": "NL",
  "rir": "RIPE",
  "prefixes_sample": [
    "203.0.113.0/24"
  ]
}
```

## Account

### Your apparent IP, plan, usage and limits.

`GET /me`

- Footprint: passive (the target is not contacted)

Useful to validate a key.

Response fields:

- `ip` (string): Apparent IP of the caller
- `plan` (string): Current plan
- `usage.used` (integer): Requests used
- `usage.limit` (integer): Plan limit
- `usage.remaining` (integer): Requests left
- `usage.reset_at` (string): When the quota resets

```bash
curl 'https://api.networkdatalabs.com/v0/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "198.51.100.4",
  "plan": "free",
  "usage": {
    "used": 12,
    "limit": 1000,
    "remaining": 988,
    "reset_at": "2026-12-01T00:00:00Z"
  }
}
```

---

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/
