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.
openapi: 3.2.0
info:
title: NetAPI — Domain Data Free Datasets API
version: 2.2.0
description: 'NetAPI serves daily-updated domain data as CSV: full domain lists and
detailed datasets for more than 1,500 TLDs, newly registered domains,
domains grouped by DNS provider or registrar, single-domain and single-IP lookups, and free threat-intelligence
feeds.
All API operations share one path, `GET /api2/`, and are selected with
the `method` query parameter. The other parameters depend on the method;
see the `method` description and the per-endpoint documentation in the
`endpoints/` directory of this repository.
Errors are returned as a short plain-text message whose text starts with
the HTTP status code, e.g. `403 Forbidden: No active/paid plan.`
`GET /api-json/` is the JSON twin of the API for integrations and AI
tools (it also powers the NetAPI MCP server, https://mcp.netapi.com/mcp):
JSON documents, JSON errors `{"error": {"code", "message"}}`, the token in
the `Authorization: Bearer` header. Both share the request limits
(429 Too Many Requests + Retry-After when a limit is reached).'
contact:
name: NetAPI support
url: https://netapi.com/contact-us/
termsOfService: https://netapi.com/tos/
license:
name: NetAPI Terms of Service (paid data); CC BY 4.0 (free datasets)
url: https://netapi.com/tos/
servers:
- url: https://netapi.com
description: Production
tags:
- name: free-datasets
description: Free datasets served outside /api2/
paths:
/netapi_top1mln.csv:
get:
operationId: top1m
tags:
- free-datasets
summary: NetAPI Top 1 Million — free daily ranking of the most popular domains
description: 'Plain CSV with a header row and 1,000,000 data rows
(`NetAPI_Rank,Domain`), rebuilt daily, about 22 MB. Licensed under
CC BY 4.0. Methodology: https://netapi.com/top-1-mln-websites/'
externalDocs:
url: https://netapi.com/top-1-mln-websites/
security: []
parameters:
- name: token
in: query
required: false
description: Optional API token; associates the download with your account in the request log. Does not change the response.
schema:
type: string
responses:
'200':
description: The ranking.
content:
text/csv:
schema:
type: string
example: 'NetAPI_Rank,Domain
1,google.com
2,microsoft.com
3,apple.com
'
components:
securitySchemes:
apiToken:
type: apiKey
in: query
name: token
description: API token from https://netapi.com/dashboard/
bearerToken:
type: http
scheme: bearer
description: The same API token in the Authorization header (JSON API); OAuth access tokens issued by https://netapi.com are accepted too.
externalDocs:
description: Web API reference
url: https://netapi.com/help/api/