Skip to content
OSINTtools.io

Network Data Labs API

IP intelligence API: location with an accuracy radius and confidence level, ASN and network, and Tor, VPN, relay and hosting flags.

Base URL
https://api.networkdatalabs.com/v0
Sign-in
Bearer token
Free tier
Free tier
Format
REST, Bulk files
Endpoints
5

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

Introduction

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"}}.

Quick start

  1. Get a key

    Create an account with Network Data Labs and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Location, network and traits for an IPv4 or IPv6 address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.networkdatalabs.com/v0/ip/203.0.113.7' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

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

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

A ?api_key= query parameter works for testing only.

Get a key from Network Data Labs

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

Rate limits and pricing

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.

Free tier.

Errors

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

IP lookups

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

Path parameters

ipstringrequiredtakes your ip address

IPv4 or IPv6 address

Example: 203.0.113.7
Response fields · 16Show

ipstring

The address looked up

country_codestring

Country code

countrystring

Country name

regionstring

Region

citystring

City

latitudenumber

Latitude

longitudenumber

Longitude

accuracy_radius_kmnumber

Accuracy radius in km

confidencestring

high, medium, low or unknown

asninteger

Autonomous system number

as_orgstring

AS organisation

networkstring

CIDR range

rirstring

Regional internet registry

is_vpnboolean

VPN (paid plans)

is_torboolean

Tor exit (paid plans)

is_hostingboolean

Hosting provider (paid plans)

curl 'https://api.networkdatalabs.com/v0/ip/203.0.113.7' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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
  }
}
  • Passive: the target is not contacted
  • Cost: 1 request against the monthly quota

Counts toward the quota.

Response fields · 3Show

ipstring

The caller's address

country_codestring

Country code

asninteger

Autonomous system number

curl 'https://api.networkdatalabs.com/v0/ip' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "198.51.100.4",
  "location": {
    "country_code": "NL"
  },
  "network": {
    "asn": 64496
  }
}
  • Takes: IP address
  • 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.

Request body (JSON) · 1Show

ipsstring[]always present

Up to 100 IPv4 or IPv6 addresses

Response fields · 2Show

resultsobject

Lookup result for each IP, keyed by address

errorsobject

Per-IP failures

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"]}'
Replace YOUR_API_KEY with your key
Response
{
  "results": {
    "203.0.113.7": {
      "ip": "203.0.113.7",
      "network": {
        "asn": 64496
      }
    }
  },
  "errors": {}
}

ASN lookups

  • Passive: the target is not contacted

Accepts the number with or without the AS prefix.

Path parameters

asnstringrequired

ASN, e.g. 64496 or AS64496

Example: AS64496
Response fields · 8Show

asninteger

ASN

namestring

AS name

orgstring

Organisation

domainstring

Organisation domain

typestring

Network type

country_codestring

Country code

rirstring

Regional internet registry

prefixes_samplestring[]

Sample of announced prefixes

curl 'https://api.networkdatalabs.com/v0/asn/AS64496' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

  • Passive: the target is not contacted

Useful to validate a key.

Response fields · 6Show

ipstring

Apparent IP of the caller

planstring

Current plan

usedinteger

Requests used

limitinteger

Plan limit

remaininginteger

Requests left

reset_atstring

When the quota resets

curl 'https://api.networkdatalabs.com/v0/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "198.51.100.4",
  "plan": "free",
  "usage": {
    "used": 12,
    "limit": 1000,
    "remaining": 988,
    "reset_at": "2026-12-01T00:00:00Z"
  }
}