Network Data Labs IP Lookup API
Geolocation, network, and traits for a single IP
Geolocation, network, and traits for a single IP
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/networkdatalabs-com:networkdatalabs-com-ip-lookup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Network Data Labs IP Lookup API
version: 0.1.0
summary: IP geolocation and IP intelligence API
description: 'Developer-first IP intelligence API from Network Data Labs.
Every geo response includes `accuracy_radius_km` and `confidence` — we do not publish
single-number "99% city accuracy" claims.
**Base URL:** `https://api.networkdatalabs.com`
**Auth:** `Authorization: Bearer ` or `?api_key=`
**Languages:** Docs and support in Spanish and English.
The Free plan is for personal and non-commercial use. Commercial use requires a paid plan.'
contact:
name: Network Data Labs
email: hello@networkdatalabs.com
url: https://networkdatalabs.com
license:
name: Proprietary
url: https://networkdatalabs.com
servers:
- url: https://api.networkdatalabs.com
description: Production
security:
- BearerAuth: []
- ApiKeyQuery: []
tags:
- name: IP Lookup
description: Geolocation, network, and traits for a single IP
paths:
/v0/ip:
get:
tags:
- IP Lookup
operationId: getOwnIpLookup
summary: Look up your own IP
description: 'Same response as `GET /v0/ip/{ip}`, for the IP the request comes from
(the caller''s public IP as seen by the API). Counts toward the plan quota
(UTC calendar month) like any other lookup. Risk and security traits (`is_hosting`, `is_proxy`,
`is_vpn`, `is_tor`, `is_relay`) are included on paid plans and omitted on Free.'
parameters:
- $ref: '#/components/parameters/ApiKeyQueryOptional'
responses:
'200':
description: Successful lookup of the caller's IP
content:
application/json:
schema:
$ref: '#/components/schemas/IpLookup'
'400':
$ref: '#/components/responses/InvalidIp'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/KeyRestricted'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Internal'
/v0/ip/{ip}:
get:
tags:
- IP Lookup
operationId: getIpLookup
summary: Full IP intelligence lookup
description: 'Primary endpoint. Returns location (with accuracy radius + confidence),
network/ASN, and traits. Geo, ASN and organization are included on every plan.
Risk and security traits (`is_hosting`, `is_proxy`, `is_vpn`, `is_tor`, `is_relay`)
are included on paid plans (Starter, Growth, Scale) and omitted from Free-plan
responses. The unauthenticated homepage demo returns the full field set.'
parameters:
- $ref: '#/components/parameters/IpPath'
- $ref: '#/components/parameters/ApiKeyQueryOptional'
responses:
'200':
description: Successful lookup
content:
application/json:
schema:
$ref: '#/components/schemas/IpLookup'
examples:
google_dns:
summary: 8.8.8.8 (Google Public DNS)
value:
ip: 8.8.8.8
location:
continent_code: NA
country_code: US
country: United States
is_eu: false
region: California
region_code: CA
city: Mountain View
postal: '94043'
latitude: 37.4056
longitude: -122.0775
timezone: America/Los_Angeles
accuracy_radius_km: 1000
confidence: low
network:
asn: 15169
as_org: Google LLC
isp: Google LLC
organization: Google LLC
network: 8.8.8.0/24
traits:
is_anycast: true
is_hosting: true
is_mobile: false
is_satellite: false
is_bogon: false
is_proxy: false
is_vpn: false
is_tor: false
is_relay: false
us_ip:
summary: 4.2.2.2 (US example)
value:
ip: 4.2.2.2
location:
continent_code: NA
country_code: US
country: United States
is_eu: false
region: Kansas
region_code: null
city: Independence
postal: null
latitude: 37.2262
longitude: -95.7341
timezone: null
accuracy_radius_km: 50
confidence: medium
network:
asn: 3356
as_org: Level 3 Communications, Inc.
isp: Level 3 Communications, Inc.
organization: Level 3 Communications, Inc.
network: null
rir: null
traits:
is_anycast: false
is_hosting: false
is_mobile: false
is_satellite: false
is_bogon: false
is_proxy: false
is_vpn: false
is_tor: false
is_relay: false
'400':
$ref: '#/components/responses/InvalidIp'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/KeyRestricted'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Internal'
components:
parameters:
IpPath:
name: ip
in: path
required: true
description: IPv4 or IPv6 address
schema:
type: string
examples:
- 8.8.8.8
- 4.2.2.2
- 2001:4860:4860::8888
ApiKeyQueryOptional:
name: api_key
in: query
required: false
description: Optional API key (if not using Bearer header)
schema:
type: string
example: YOUR_API_KEY
schemas:
Traits:
type: object
required:
- is_bogon
- is_mobile
- is_satellite
properties:
is_anycast:
type: boolean
description: True when the IP is a well-known anycast DNS resolver (e.g. 8.8.8.8, 1.1.1.1).
is_hosting:
type: boolean
description: True when the IP belongs to a hosting, datacenter, cloud, or CDN network. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
is_mobile:
type: boolean
description: True when the IP is on a mobile carrier network.
is_satellite:
type: boolean
description: True when the IP is on a satellite internet network.
is_bogon:
type: boolean
description: True when the IP is in a private or special-use range (RFC1918 private, loopback, link-local, multicast, documentation/benchmark).
is_proxy:
type: boolean
description: Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
is_vpn:
type: boolean
description: True when the IP belongs to a known VPN network, including major commercial VPN providers. Privacy relay egress IPs are reported as is_relay, not is_vpn. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
is_tor:
type: boolean
description: True when the IP is a current Tor exit node. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
is_relay:
type: boolean
description: True when the IP is a privacy relay egress address. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
Error:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorBody'
ErrorBody:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- INVALID_IP
- INVALID_EMAIL
- INVALID_REQUEST
- UNAUTHORIZED
- PLAN_REQUIRED
- KEY_RESTRICTED
- RATE_LIMITED
- QUOTA_EXCEEDED
- NOT_FOUND
- SERVICE_UNAVAILABLE
- INTERNAL
message:
type: string
limit:
type: integer
description: Advertised cap that was exceeded (429 only)
reset_at:
type: string
format: date-time
description: When the 1-second rate window or quota period resets (429 only)
plan:
type: string
description: Current account plan (429 and paid-only 403)
suggested_plan:
type:
- string
- 'null'
description: Next plan that raises the cap. Omitted for Scale (contact us).
upgrade_url:
type: string
description: Public pricing page (`https://networkdatalabs.com/pricing`)
Location:
type: object
required:
- continent_code
- country_code
- country
- accuracy_radius_km
- confidence
properties:
continent_code:
type: string
description: Continent code (e.g. NA, EU, AS)
examples:
- NA
- EU
country_code:
type:
- string
- 'null'
description: ISO-3166-1 alpha-2
examples:
- US
country:
type:
- string
- 'null'
examples:
- United States
is_eu:
type: boolean
description: Whether the country is in the European Union
region:
type:
- string
- 'null'
examples:
- California
- Kansas
region_code:
type:
- string
- 'null'
examples:
- CA
- B
city:
type:
- string
- 'null'
examples:
- Mountain View
- Independence
postal:
type:
- string
- 'null'
latitude:
type:
- number
- 'null'
format: double
longitude:
type:
- number
- 'null'
format: double
timezone:
type:
- string
- 'null'
description: IANA timezone
examples:
- America/Los_Angeles
- America/Chicago
accuracy_radius_km:
type:
- number
- 'null'
description: 'Estimated accuracy radius in kilometers. Always present when geo is returned;
it tells you how precise the location is. Wide radii (e.g. 1000) mean city is a best-effort guess.
'
examples:
- 50
- 1000
confidence:
type: string
enum:
- high
- medium
- low
- unknown
description: Qualitative confidence in the geo estimate
Network:
type: object
properties:
asn:
type:
- integer
- 'null'
examples:
- 15169
- 3356
as_org:
type:
- string
- 'null'
examples:
- Google LLC
- Level 3 Communications, Inc.
isp:
type:
- string
- 'null'
organization:
type:
- string
- 'null'
network:
type:
- string
- 'null'
description: Containing prefix (CIDR)
examples:
- 8.8.8.0/24
- 4.0.0.0/12
rir:
type:
- string
- 'null'
description: Regional Internet Registry
examples:
- ARIN
- LACNIC
- RIPE
- APNIC
- AFRINIC
IpLookup:
type: object
required:
- ip
- location
- network
- traits
properties:
ip:
type: string
location:
$ref: '#/components/schemas/Location'
network:
$ref: '#/components/schemas/Network'
traits:
$ref: '#/components/schemas/Traits'
responses:
InvalidIp:
description: Malformed or unsupported IP address
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: INVALID_IP
message: Malformed IP address
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: UNAUTHORIZED
message: Missing or invalid API key
RateLimited:
description: 'Rate limit or account quota exceeded.
Free keys are limited to **1 request/second with no burst** (`RATE_LIMITED`).
Paid keys use a strict per-second window with no burst (`RATE_LIMITED`):
Starter 10/s, Growth 25/s, Scale 50/s. Quota (UTC calendar month
on Free and paid) → `QUOTA_EXCEEDED`. Free is a hard 1,000/month
(no buffer; resets on the 1st). Paid plans allow a 10% buffer over the monthly quota, then 429.
Quotas are per account (all keys combined) and counted in memory on the API
machine (a single Fly VM today), refreshed from stored usage every few minutes.
Internal keys are unlimited. Error `limit` is the advertised cap; `reset_at`
is ISO-8601 UTC. `plan` (current plan) and `upgrade_url` (`https://networkdatalabs.com/pricing`)
are always present. `suggested_plan` is the next tier (omitted on Scale;
contact us). After a downgrade, extra keys stay valid until revoked and
existing origin/IP allowlists keep being enforced (Free may only clear them).
'
headers:
Retry-After:
description: Seconds until the rate window or quota period resets
schema:
type: integer
X-RateLimit-Limit:
description: Request limit for the current 1-second rate window (Free 1/s; Starter 10/s; Growth 25/s; Scale 50/s)
schema:
type: integer
X-RateLimit-Remaining:
description: Remaining requests in the current rate window
schema:
type: integer
X-RateLimit-Reset:
description: Unix timestamp when the current rate window (or, on quota 429, the quota period) resets
schema:
type: integer
X-RateLimit-Limit-Day:
description: Advertised daily quota when the plan period is a UTC day. Current Free and paid plans send X-RateLimit-Limit-Month instead.
schema:
type: integer
X-RateLimit-Remaining-Day:
description: Remaining advertised daily units when the plan period is a UTC day. Current plans report remaining on -Month.
schema:
type: integer
X-RateLimit-Limit-Month:
description: Advertised monthly quota (Free, Starter, Growth, Scale). Resets on the 1st of the UTC calendar month.
schema:
type: integer
X-RateLimit-Remaining-Month:
description: Remaining advertised monthly units (0 while in a paid plan's 10% buffer)
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
rate_limited:
summary: Per-second window exceeded (paid)
value:
error:
code: RATE_LIMITED
message: 'Rate limit reached on the Starter plan (10 requests/second). Upgrade to Growth for 25 requests/second: https://networkdatalabs.com/pricing'
limit: 10
reset_at: '2026-10-12T12:00:01Z'
plan: starter
suggested_plan: growth
upgrade_url: https://networkdatalabs.com/pricing
free_rate_limited:
summary: Free plan 1 request/second exceeded
value:
error:
code: RATE_LIMITED
message: 'Rate limit reached on the Free plan (1 request/second). Upgrade to Starter for 10 requests/second: https://networkdatalabs.com/pricing'
limit: 1
reset_at: '2026-10-12T12:00:01Z'
plan: free
suggested_plan: starter
upgrade_url: https://networkdatalabs.com/pricing
quota_exceeded:
summary: Account quota exceeded (paid)
value:
error:
code: QUOTA_EXCEEDED
message: 'Monthly quota reached on the Starter plan (100,000 requests). Upgrade to Growth for 500,000/month: https://networkdatalabs.com/pricing'
limit: 100000
reset_at: '2026-11-01T00:00:00Z'
plan: starter
suggested_plan: growth
upgrade_url: https://networkdatalabs.com/pricing
free_quota_exceeded:
summary: Free plan monthly quota exceeded
value:
error:
code: QUOTA_EXCEEDED
message: 'Monthly quota reached on the Free plan (1,000 requests). Upgrade to Starter for 100,000/month: https://networkdatalabs.com/pricing'
limit: 1000
reset_at: '2026-11-01T00:00:00Z'
plan: free
suggested_plan: starter
upgrade_url: https://networkdatalabs.com/pricing
Internal:
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: INTERNAL
message: Internal server error
KeyRestricted:
description: 'The API key has an origin and/or IP allowlist, and this request matched neither.
Empty allowlists are unrestricted. `X-Forwarded-For` is never used for the IP check
(`Fly-Client-IP` on Fly, otherwise the socket peer).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: KEY_RESTRICTED
message: This API key is not allowed from this origin or IP address.
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API key
description: 'API keys are issued by Network Data Labs. Prefer
`Authorization: Bearer YOUR_API_KEY` (or `ndl_live_…` style keys).
Unknown or missing keys return `401 UNAUTHORIZED`. Any non-empty
string is **not** accepted.
'
ApiKeyQuery:
type: apiKey
in: query
name: api_key
description: Optional alternative to Bearer — useful for quick curl tests. Prefer header in production.