Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WhoisFreaks SDK Documentation

Official documentation for the **WhoisFreaks** SDKs: one API, 10
languages, 94 endpoints. Every SDK is generated from the same
languages, 95 endpoints. Every SDK is generated from the same
[OpenAPI specification](spec/whoisfreaks-openapi.yaml) and published to
its language's standard registry.

Expand All @@ -11,7 +11,7 @@ its language's standard registry.

- [Authentication](docs/authentication.md): get and configure your API key
- [Language guides](#language-guides): install + usage for each SDK
- [Endpoint reference](docs/endpoints/README.md): all 94 endpoints, grouped by category
- [Endpoint reference](docs/endpoints/README.md): all 95 endpoints, grouped by category
- [Runnable examples](examples/README.md): copy-paste, ready-to-run example for every endpoint in every language

## Language guides
Expand Down Expand Up @@ -56,7 +56,7 @@ The equivalent for every other language is in its [language guide](#language-gui

The API is organized into three sections. See the [full endpoint reference](docs/endpoints/README.md) for every operation with its URL, parameters, response fields and Python, TypeScript and Go examples. The [language guides](#language-guides) show every operation in all 10 languages.

### [API Solutions](docs/endpoints/api-solutions.md) (26 endpoints)
### [API Solutions](docs/endpoints/api-solutions.md) (27 endpoints)

Real-time and on-demand lookup APIs. Query a single domain, IP, or ASN and get structured JSON (or XML) back immediately.

Expand Down
40 changes: 20 additions & 20 deletions docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ with whoisfreaks.ApiClient(config) as client:
api = whoisfreaks.WHOISApi(client)

# whois_live parameters:
# domain_name (str, required)
# format (str, optional, keyword): one of json, xml; default "json"
# domain_name (str, required): Domain to look up
# format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json"
result = api.whois_live("whoisfreaks.com")
print(json.dumps(result.to_dict(), indent=2))
```
Expand All @@ -66,8 +66,8 @@ client.authentications["ApiKeyAuth"].apiKey = process.env.WHOISFREAKS_API_KEY;
const api = new WHOISApi(client);

// whoisLive(domainName, opts)
// domainName (string, required)
// opts.format (string, optional): one of json, xml; default "json"
// domainName (string, required): Domain to look up
// opts.format (string, optional): Response format. JSON when the parameter is left out; one of json, xml; default "json"
async function main() {
const result = await api.whoisLive("whoisfreaks.com");
console.log(JSON.stringify(result, null, 2));
Expand All @@ -92,8 +92,8 @@ const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY });
const api = new WHOISApi(config);

// whoisLive({ domainName, format? })
// domainName (string, required)
// format ("json" | "xml", optional): default "json"
// domainName (string, required): Domain to look up
// format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json"
async function main(): Promise<void> {
const result = await api.whoisLive({ domainName: "whoisfreaks.com" });
console.log(JSON.stringify(result, null, 2));
Expand All @@ -116,8 +116,8 @@ main().catch(async (err: unknown) => {
// Runnable example: Live WHOIS Lookup (GET /v2.0/whois/live)
// Run it from the Getting Started project: mvn -q compile exec:java -Dexec.mainClass=WhoisLive
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.
import com.whoisfreaks.client.ApiClient;
import com.whoisfreaks.client.Configuration;
import com.whoisfreaks.client.api.WhoisApi;
Expand Down Expand Up @@ -145,8 +145,8 @@ public class WhoisLive {
// Runnable example: Live WHOIS Lookup (GET /v2.0/whois/live)
// Run it from the Getting Started project: gradle run -PmainClass=WhoisLiveKt
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.
import com.whoisfreaks.client.apis.WHOISApi
import com.whoisfreaks.client.infrastructure.ApiClient

Expand All @@ -166,8 +166,8 @@ fun main() {
// Runnable example: Live WHOIS Lookup (GET /v2.0/whois/live)
// Run it from the Getting Started project: replace Program.cs with this file, then `dotnet run`
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.
using System;
using WhoisFreaks.Api;
using WhoisFreaks.Client;
Expand All @@ -190,8 +190,8 @@ Console.WriteLine(result.ToJson());
# Live WHOIS Lookup
#
# Parameters for whoisLive (GET /v2.0/whois/live):
# - domain_name (string, required)
# - format (string (one of: json, xml), optional)
# - domain_name (string, required): Domain to look up.
# - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.

require "json"
require "whoisfreaks"
Expand Down Expand Up @@ -219,8 +219,8 @@ end
// Runnable example: Live WHOIS Lookup (GET /v2.0/whois/live)
// Run it from the Getting Started module: save it as main.go, then `go run .`
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.

package main

Expand Down Expand Up @@ -256,8 +256,8 @@ func main() {
// Live WHOIS Lookup
//
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.
//
// Top-level code for Sources/<YourTarget>/main.swift (see Getting Started).

Expand Down Expand Up @@ -288,8 +288,8 @@ do {
// Live WHOIS Lookup
//
// Parameters for whoisLive (GET /v2.0/whois/live):
// - domainName (string, required)
// - format (string (one of: json, xml), optional)
// - domainName (string, required): Domain to look up.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.

require __DIR__ . '/vendor/autoload.php';

Expand Down
7 changes: 4 additions & 3 deletions docs/endpoints/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Endpoint Reference

The WhoisFreaks API exposes **94 endpoints** across **23 categories**, organized into 3 sections. Every endpoint is available in all 10 SDKs.
The WhoisFreaks API exposes **95 endpoints** across **23 categories**, organized into 3 sections. Every endpoint is available in all 10 SDKs.

## API Solutions

Real-time and on-demand lookup APIs. Query a single domain, IP, or ASN and get structured JSON (or XML) back immediately.

26 endpoints across 11 categories. See the [API Solutions overview](api-solutions.md).
27 endpoints across 11 categories. See the [API Solutions overview](api-solutions.md).

- [WHOIS](whois.md): 4 endpoints
- [DNS](dns.md): 8 endpoints
- [Domain Availability](domain-availability.md): 2 endpoints
- [Typosquatting](typosquatting.md): 1 endpoint
- [Typosquatting](typosquatting.md): 2 endpoints
- [SSL](ssl.md): 1 endpoint
- [Geolocation](geolocation.md): 2 endpoints
- [Subdomains](subdomains.md): 1 endpoint
Expand Down Expand Up @@ -65,6 +65,7 @@ Manage your account, monitor API usage and credits, and rotate your API key.
| API Solutions | Domain Availability | GET | `/v2.0/domain/availability` | `domainAvailabilityV2` |
| API Solutions | Domain Availability | POST | `/v2.0/domain/availability` | `bulkDomainAvailabilityV2` |
| API Solutions | Typosquatting | GET | `/v3.0/domain/typos` | `typosquatting` |
| API Solutions | Typosquatting | GET | `/v3.0/subdomains/typos` | `subdomainTyposquatting` |
| API Solutions | SSL | GET | `/v1.0/ssl/live` | `sslLookup` |
| API Solutions | Geolocation | GET | `/v1.0/geolocation` | `geolocation` |
| API Solutions | Geolocation | POST | `/v1.0/geolocation` | `bulkGeolocation` |
Expand Down
5 changes: 3 additions & 2 deletions docs/endpoints/api-solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Real-time and on-demand lookup APIs. Query a single domain, IP, or ASN and get structured JSON (or XML) back immediately.

**26 endpoints** across **11 categories**. Requests need your API key unless noted otherwise. See [Authentication](../authentication.md).
**27 endpoints** across **11 categories**. Requests need your API key unless noted otherwise. See [Authentication](../authentication.md).

## Categories

Expand Down Expand Up @@ -45,9 +45,10 @@ Check domain availability

Detect typo variants of brand domains

1 endpoint:
2 endpoints:

- **Typosquatting Lookup**: `GET /v3.0/domain/typos`
- **Subdomain Typosquatting Lookup**: `GET /v3.0/subdomains/typos`

### [SSL](ssl.md)

Expand Down
16 changes: 8 additions & 8 deletions docs/endpoints/asn-whois.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ WHOIS for an ASN. 1 credit.

| Parameter | In | Required | Type | Default | Description |
|-----------|----|----------|------|---------|-------------|
| `asn` | query | yes | string | | |
| `format` | query | no | string | `json` | (one of: json, xml) |
| `asn` | query | yes | string | | Autonomous system number to look up, with or without the AS prefix. |
| `format` | query | no | string | `json` | Response format. JSON when the parameter is left out. (one of: json, xml) |

**Response** (`AsnWhoisResponse`)

Expand Down Expand Up @@ -71,8 +71,8 @@ with whoisfreaks.ApiClient(config) as client:
api = whoisfreaks.ASNWHOISApi(client)

# asn_whois parameters:
# asn (str, required)
# format (str, optional, keyword): one of json, xml; default "json"
# asn (str, required): Autonomous system number to look up, with or without the AS prefix
# format (str, optional, keyword): Response format. JSON when the parameter is left out; one of json, xml; default "json"
result = api.asn_whois("as15169")
print(json.dumps(result.to_dict(), indent=2))
```
Expand All @@ -91,8 +91,8 @@ const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY });
const api = new ASNWHOISApi(config);

// asnWhois({ asn, format? })
// asn (string, required)
// format ("json" | "xml", optional): default "json"
// asn (string, required): Autonomous system number to look up, with or without the AS prefix
// format ("json" | "xml", optional): Response format. JSON when the parameter is left out; default "json"
async function main(): Promise<void> {
const result = await api.asnWhois({ asn: "as15169" });
console.log(JSON.stringify(result, null, 2));
Expand All @@ -117,8 +117,8 @@ main().catch(async (err: unknown) => {
// Runnable example: ASN WHOIS Lookup (GET /v2.0/asn-whois)
// Run it from the Getting Started module: save it as main.go, then `go run .`
// Parameters for asnWhois (GET /v2.0/asn-whois):
// - asn (string, required)
// - format (string (one of: json, xml), optional)
// - asn (string, required): Autonomous system number to look up, with or without the AS prefix.
// - format (string (one of: json, xml), optional): Response format. JSON when the parameter is left out.

package main

Expand Down
8 changes: 4 additions & 4 deletions docs/endpoints/databases-asn-whois.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ASN WHOIS Snapshot. Returns the file/snapshot described by this operation.

| Parameter | In | Required | Type | Default | Description |
|-----------|----|----------|------|---------|-------------|
| `date` | query | yes | string (date) | | |
| `date` | query | yes | string (date) | | The day whose file you want, in YYYY-MM-DD format. |

**Usage**

Expand All @@ -40,7 +40,7 @@ with whoisfreaks.ApiClient(config) as client:
api = whoisfreaks.DatabasesASNWHOISApi(client)

# db_asn_whois parameters:
# var_date (datetime.date, required)
# var_date (datetime.date, required): The day whose file you want, in YYYY-MM-DD format
data = api.db_asn_whois(date(2026, 10, 1)) # the file's raw bytes
path = "DbAsnWhois.json.gz"
with open(path, "wb") as f:
Expand All @@ -64,7 +64,7 @@ const config = new Configuration({ apiKey: process.env.WHOISFREAKS_API_KEY });
const api = new DatabasesASNWHOISApi(config);

// dbAsnWhois({ date })
// date (Date, required)
// date (Date, required): The day whose file you want, in YYYY-MM-DD format
async function main(): Promise<void> {
const blob = await api.dbAsnWhois({ date: new Date("2026-10-01") }); // a Blob with the file's bytes
const file = "DbAsnWhois.json.gz";
Expand All @@ -91,7 +91,7 @@ main().catch(async (err: unknown) => {
// Runnable example: ASN WHOIS Snapshot (GET /v3.3/download/snapshot/asn/whois)
// Run it from the Getting Started module: save it as main.go, then `go run .`
// Parameters for dbAsnWhois (GET /v3.3/download/snapshot/asn/whois):
// - date (string, required)
// - date (string, required): The day whose file you want, in YYYY-MM-DD format.

package main

Expand Down
Loading
Loading