Overview
The client library for Whois API in Python language.
The minimum Python version is 3.7.
Installation
pip install whois-api
Examples
Full API documentation available here
Create a new client
from whoisapi import * client = Client(api_key='Your API key')
Make basic requests
# Get parsed whois record as a model instance.
whois = client.data('whoisxmlapi.com')
# Get particular field of the whois record
print(whois.created_date_raw)
# Get raw API response
resp_str = client.raw_data('whoisxmlapi.com')
Additional options
You can specify a custom parameters for particular request
params = RequestParameters(ignore_raw_texts=1, da=2)
whois = client.data('whoisxmlapi.com', params)
print(whois.domain_availability_raw)
# Also you can modify default values of parameters:
client.parameters.output_format = 'xml'
print(client.raw_data('whoisxmlapi.com'))
Changelog
1.2.0 (2023-07-31)
Fix datetime parsing
1.1.4 (2023-07-31)
Fix datetime parsing
Add postal_code_str field
1.1.3 (2023-07-31)
Bump requests
Drop Python 3.6 support
1.1.2 (2022-11-08)
Bump urllib3
1.1.1 (2021-11-19)
Added postal address error handling
1.1.0 (2021-04-21)
Minor fixes
Error class ‘UnparableApiResponse’ was renamed to ‘UnparsableApiResponseError’
1.0.0 (2021-04-12)
First release
Metadata
Release files for whois-api 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whois-api-1.2.0.tar.gz | 10.4 kB | Without provenance | Details for whois-api-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whois_api-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for whois_api-1.2.0-py3-none-any.whl |
Total release size: 22.2 kB
Release files / whois-api-1.2.0.tar.gz
| Download URL | whois-api-1.2.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b18d084332dfc7be8f9d992f076468a2a545ea3037c99fc50732ca3db87addf
|
|
BLAKE2b-256 checksum How to use checksums |
9a6ea8dc555db3def55710c44f91135543ab1501822a9e1f3682502d50fe8434
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.16
|
Release files / whois_api-1.2.0-py3-none-any.whl
| Download URL | whois_api-1.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c780441faab557995e83a719a7957931b78f63011cf941ab879265546a9eb8b
|
|
BLAKE2b-256 checksum How to use checksums |
bee2f3afb9ead94e58e96c0c34dbc1e2f9bdc016fda3211398ac02f12ff90192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.16
|
Security for whois-api 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.