Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/networkdatalabs-com:networkdatalabs-com-asn-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: Network Data Labs ASN 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: ASN
description: Autonomous System details
paths:
/v0/asn/{asn}:
get:
tags:
- ASN
operationId: getAsn
summary: ASN detail
description: Autonomous System name, org, type, RIR, and sample prefixes.
parameters:
- name: asn
in: path
required: true
description: ASN number (with or without `AS` prefix)
schema:
oneOf:
- type: integer
minimum: 0
example: 15169
- type: string
pattern: ^(AS|as)?[0-9]+$
example: AS15169
examples:
numeric:
value: 15169
prefixed:
value: AS15169
- $ref: '#/components/parameters/ApiKeyQueryOptional'
responses:
'200':
description: ASN details
content:
application/json:
schema:
$ref: '#/components/schemas/AsnDetail'
examples:
google:
summary: AS15169 Google
value:
asn: 15169
name: GOOGLE
org: Google LLC
domain: google.com
type: hosting
country_code: US
rir: ARIN
prefixes_sample:
- 8.8.8.0/24
- 8.8.4.0/24
us_network:
summary: AS3356 (US network)
value:
asn: 3356
name: AS3356
org: Level 3 Communications, Inc.
domain: null
type: unknown
country_code: null
rir: null
prefixes_sample:
- 4.0.0.0/12
- 4.16.0.0/15
- 4.18.0.0/16
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/KeyRestricted'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Internal'
components:
schemas:
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`)
AsnDetail:
type: object
required:
- asn
- name
- org
properties:
asn:
type: integer
name:
type: string
examples:
- GOOGLE
org:
type: string
domain:
type:
- string
- 'null'
type:
type:
- string
- 'null'
description: Coarse ASN category
enum:
- hosting
- isp
- education
- government
- business
- unknown
- null
country_code:
type:
- string
- 'null'
rir:
type:
- string
- 'null'
prefixes_sample:
type: array
items:
type: string
description: Sample of announced prefixes (not exhaustive)
responses:
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
NotFound:
description: Resource not found (e.g. unknown ASN)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: NOT_FOUND
message: ASN not found
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.
parameters:
ApiKeyQueryOptional:
name: api_key
in: query
required: false
description: Optional API key (if not using Bearer header)
schema:
type: string
example: YOUR_API_KEY
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.