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
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docs
on:
push:
branches: [main]
pull_request:
paths: ["spec/**", "scripts/**", "docs/**", "examples/**", "README.md"]

permissions:
contents: read

jobs:
verify-in-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with: { python-version: "3.11" }
- run: pip install "pyyaml==6.0.2"
- name: Regenerate docs from spec
run: python3 scripts/gen_docs.py spec/whoisfreaks-openapi.yaml .
- name: Fail if docs are out of date
run: |
# --porcelain also reports new (untracked) and deleted files
if [ -n "$(git status --porcelain)" ]; then
echo "::error::Docs are out of sync with the spec. Run: python3 scripts/gen_docs.py spec/whoisfreaks-openapi.yaml ."
git status --short
exit 1
fi
echo "Docs are in sync with the spec."
22 changes: 21 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
MIT License — Copyright (c) 2026 WhoisFreaks
MIT License

Copyright (c) 2026 WhoisFreaks

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
57 changes: 29 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# WhoisFreaks SDK Documentation

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

> Complete WhoisFreaks API — WHOIS, DNS, SSL, Geolocation, Typosquatting, IP Intelligence, Domain Reputation, and bulk database downloads.
> Complete WhoisFreaks API: WHOIS, DNS, SSL, Geolocation, Typosquatting, IP Intelligence, Domain Reputation, and bulk database downloads.

## Contents

- [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 60 endpoints, grouped by category
- [Runnable examples](examples/README.md) — copy-paste, ready-to-run example for every endpoint in every language
- [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 60 endpoints, grouped by category
- [Runnable examples](examples/README.md): copy-paste, ready-to-run example for every endpoint in every language

## Language guides

Expand All @@ -22,12 +22,12 @@ its language's standard registry.
| JavaScript | npm | `whoisfreaks-js` | [Guide](docs/languages/javascript.md) |
| TypeScript | npm | `whoisfreaks` | [Guide](docs/languages/typescript.md) |
| Java | Maven Central | `com.whoisfreaks:whoisfreaks` | [Guide](docs/languages/java.md) |
| Kotlin | Maven Central | `com.whoisfreaks:whoisfreaks` | [Guide](docs/languages/kotlin.md) |
| Kotlin | Maven Central | `com.whoisfreaks:whoisfreaks-kotlin` | [Guide](docs/languages/kotlin.md) |
| C# / .NET | NuGet | `WhoisFreaks` | [Guide](docs/languages/csharp.md) |
| Ruby | RubyGems | `whoisfreaks` | [Guide](docs/languages/ruby.md) |
| Go | Go modules | `github.com/WhoisFreaks/whoisfreaks-go` | [Guide](docs/languages/go.md) |
| Swift | Swift PM | `github.com/WhoisFreaks/whoisfreaks-swift` | [Guide](docs/languages/swift.md) |
| PHP | Packagist | `WhoisFreaks/whoisfreaks-php` | [Guide](docs/languages/php.md) |
| PHP | Packagist | `whoisfreaks/whoisfreaks-php` | [Guide](docs/languages/php.md) |

## Quick start

Expand All @@ -39,36 +39,36 @@ pip install whoisfreaks
```

```python
import os
import whoisfreaks
from whoisfreaks import Configuration, ApiClient

config = Configuration()
config.api_key["ApiKeyAuth"] = "YOUR_API_KEY"
client = ApiClient(config)
config = whoisfreaks.Configuration()
config.api_key["ApiKeyAuth"] = os.environ["WHOISFREAKS_API_KEY"]

result = client.whois_live(domainName="example.com")
print(result)
with whoisfreaks.ApiClient(config) as client:
record = whoisfreaks.WHOISApi(client).whois_live("example.com")
print(record.domain_registrar.registrar_name, record.expiry_date)
```

The equivalent for every other language is in its [language guide](#language-guides).

## Endpoint sections

The API is organized into three sections. See the [full endpoint reference](docs/endpoints/README.md) for every operation with parameters, response fields, and per-language examples.
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) — 20 endpoints
### [API Solutions](docs/endpoints/api-solutions.md) (20 endpoints)

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

[WHOIS](docs/endpoints/whois.md), [DNS](docs/endpoints/dns.md), [Domain Availability](docs/endpoints/domain-availability.md), [Typosquatting](docs/endpoints/typosquatting.md), [SSL](docs/endpoints/ssl.md), [Geolocation](docs/endpoints/geolocation.md), [Subdomains](docs/endpoints/subdomains.md), [IP Reputation](docs/endpoints/ip-reputation.md), [Domain Reputation](docs/endpoints/domain-reputation.md), [ASN WHOIS](docs/endpoints/asn-whois.md), [IP WHOIS](docs/endpoints/ip-whois.md)

### [Databases](docs/endpoints/databases.md) — 37 endpoints
### [Databases](docs/endpoints/databases.md) (37 endpoints)

Bulk data feeds and downloadable database snapshots for large-scale processing — newly registered, expiring/dropped, and full WHOIS/DNS/IP datasets.
Bulk data feeds and downloadable database snapshots for large-scale processing: newly registered, expiring/dropped, and full WHOIS/DNS/IP datasets.

[Databases - Newly Registered](docs/endpoints/databases-newly-registered.md), [Databases - Expiring & Dropped](docs/endpoints/databases-expiring-dropped.md), [Databases - WHOIS](docs/endpoints/databases-whois.md), [Databases - DNS](docs/endpoints/databases-dns.md), [Databases - Subdomains](docs/endpoints/databases-subdomains.md), [Databases - IP Geolocation](docs/endpoints/databases-ip-geolocation.md), [Databases - ASN WHOIS](docs/endpoints/databases-asn-whois.md), [Databases - IP WHOIS](docs/endpoints/databases-ip-whois.md), [Databases - IP Security](docs/endpoints/databases-ip-security.md), [Databases - Threat Feed](docs/endpoints/databases-threat-feed.md)

### [Account & Utilities](docs/endpoints/account-utilities.md) — 3 endpoints
### [Account & Utilities](docs/endpoints/account-utilities.md) (3 endpoints)

Manage your account, monitor API usage and credits, and rotate your API key.

Expand All @@ -77,24 +77,25 @@ Manage your account, monitor API usage and credits, and rotate your API key.

## Authentication at a glance

All requests require an `apiKey` query parameter. Get a key at
<https://billing.whoisfreaks.com>, then configure it once via each SDK's
configuration object — see [Authentication](docs/authentication.md).
Every request except the public database file status check needs an `apiKey`
query parameter. Get a key at <https://billing.whoisfreaks.com>, then configure it
once via each SDK's configuration object. See [Authentication](docs/authentication.md).

Base URLs:

| Purpose | URL |
|---------|-----|
| Live lookups | `https://api.whoisfreaks.com` |
| Database downloads | `https://files.whoisfreaks.com` |
| Live lookups, bulk lookups and account | `https://api.whoisfreaks.com` |
| Database downloads, threat feeds and database file status | `https://files.whoisfreaks.com` |

## About these docs

These docs are generated from the OpenAPI spec by `scripts/gen_docs.py`, so they
stay in sync with the API. To regenerate after a spec change:
stay in sync with the API. To regenerate after a spec change or an SDK release
(`SDK_VERSION` sets the version in install lines):

```bash
python3 scripts/gen_docs.py path/to/whoisfreaks-openapi.yaml .
SDK_VERSION=0.23.0 python3 scripts/gen_docs.py spec/whoisfreaks-openapi.yaml .
```

## Support
Expand All @@ -105,4 +106,4 @@ python3 scripts/gen_docs.py path/to/whoisfreaks-openapi.yaml .

## License

MIT — see individual SDK repositories for details.
MIT. See individual SDK repositories for details.
64 changes: 64 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# GitHub Pages site: https://whoisfreaks.github.io
# The Markdown under docs/ and examples/ is generated by scripts/gen_docs.py and
# carries no front matter, so page titles and descriptions for search results
# are set here with front matter defaults instead.
title: WhoisFreaks Docs
description: >-
Documentation for the WhoisFreaks WHOIS, reverse WHOIS, WHOIS history, DNS lookup,
domain availability, IP geolocation and threat intelligence APIs, with official SDKs
for Python, JavaScript, TypeScript, Java, Kotlin, Go, C#, Ruby, PHP and Swift.
url: https://whoisfreaks.github.io
baseurl: ""
lang: en

plugins:
- jekyll-seo-tag
- jekyll-sitemap

exclude:
- scripts/

defaults:
- scope: { path: "README.md" }
values:
title: "WhoisFreaks API and SDK Documentation: WHOIS, DNS and Domain APIs"
- scope: { path: "docs/endpoints/whois.md" }
values:
title: "WHOIS API: Live, History, Reverse and Bulk WHOIS Lookup"
description: "WHOIS API reference: live WHOIS lookup, WHOIS history back to 1986, reverse WHOIS search by keyword, and bulk WHOIS, with parameters, response fields and SDK examples."
- scope: { path: "docs/endpoints/dns.md" }
values:
title: "DNS Lookup API: Live, Historical, Reverse and Bulk DNS"
description: "DNS lookup API reference: live DNS records (A, AAAA, MX, NS, CNAME, SOA, TXT, SPF), historical DNS, reverse DNS and bulk DNS lookups, with SDK examples."
- scope: { path: "docs/endpoints/domain-availability.md" }
values:
title: "Domain Availability API: Single, Bulk and TLD Suggestions"
description: "Domain availability API reference: check if a domain is available, get up to 100 suggestions on other TLDs, and check up to 100 domains in one request."
- scope: { path: "docs/endpoints/typosquatting.md" }
values:
title: "Typosquatting API: Find Lookalike and Typo Domains"
description: "Typosquatting API reference: find registered domains that look like typo variants of a brand, by keyword or wildcard pattern."
- scope: { path: "docs/endpoints/ip-whois.md" }
values:
title: "IP WHOIS API: IP Address Ownership Lookup"
- scope: { path: "docs/endpoints/asn-whois.md" }
values:
title: "ASN WHOIS API: Autonomous System Lookup"
- scope: { path: "docs/endpoints/ssl.md" }
values:
title: "SSL Certificate API: Live Certificate and Chain Lookup"
- scope: { path: "docs/endpoints/geolocation.md" }
values:
title: "IP Geolocation API: Single and Bulk IP Lookup"
- scope: { path: "docs/endpoints/ip-reputation.md" }
values:
title: "IP Reputation API: IP Threat Intelligence Lookup"
- scope: { path: "docs/endpoints/domain-reputation.md" }
values:
title: "Domain Reputation API: Domain Threat Scoring"
- scope: { path: "docs/endpoints/subdomains.md" }
values:
title: "Subdomains API: Subdomain Enumeration Lookup"
- scope: { path: "docs/endpoints/databases-threat-feed.md" }
values:
title: "Threat Intelligence Feed: Phishing, Malware and Spam Domains"
Loading
Loading