Skip to main content

ipdatum

Official zero-dependency Python SDK for IPDatum — dual-stack IPv4 & IPv6 geolocation, ASN metadata, VPN/proxy/Tor/cloud detection, reverse & forward DNS, and RDAP/WHOIS intelligence.

Works immediately on the free keyless tier (1,000 requests/day) or with an API key from the IPDatum Dashboard.

Installation

python -m pip install ipdatum

Requires Python 3.9+ (zero third-party runtime dependencies).

Quick Start

from ipdatum import IPDatumClient

with IPDatumClient() as client:  # or IPDatumClient(api_key="ipd_...")
    info = client.lookup("88.198.47.21")
    print(info.location.city, info.location.country, info.security.is_vpn)
    print(client.last_rate_limit)

Batch, ASN, DNS & WHOIS

from ipdatum import IPDatumClient

client = IPDatumClient()

# Up to 100 IPv4/IPv6 addresses (no-code tool: https://www.ipdatum.com/bulk-ip-lookup)
batch_res = client.batch(["8.8.8.8", "2606:4700:4700::1111"])

# ASN metadata & RDAP prefixes
google_asn = client.asn("AS15169")

# Reverse PTR or forward A/AAAA resolution + IP intelligence
dns_res = client.dns("8.8.8.8")

# RDAP / WHOIS for an IP, ASN, or domain
whois_res = client.whois("8.8.8.8")

Error Handling

from ipdatum import IPDatumClient, IPDatumError

client = IPDatumClient()
try:
    client.lookup("999.999.999.999")
except IPDatumError as exc:
    print(exc.status_code, exc.code, exc.retry_after, str(exc))

License

MIT — see LICENSE.

Metadata

Release files for ipdatum 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipdatum 1.0.0
File Size Uploaded Provenance Actions
ipdatum-1.0.0.tar.gz 8.9 kB With provenance Details for ipdatum-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ipdatum 1.0.0
File Interpreter ABI Platform Actions
ipdatum-1.0.0-py3-none-any.whl Python 3 none any Details for ipdatum-1.0.0-py3-none-any.whl

Total release size: 17.6 kB

Release files / ipdatum-1.0.0.tar.gz

Download URL ipdatum-1.0.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4510263caecc06da6731403502b5efa520eebd18cbadbd02e781a4389cf3d5f5
BLAKE2b-256 checksum
How to use checksums
07445641a3f10c4c6248c283df1d74ca4988b681949d733b055b1a314acd9456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / ipdatum-1.0.0-py3-none-any.whl

Download URL ipdatum-1.0.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b08882141a24a4f4d518e72b4428c94206a60371a72e57aadf0466fbde74f40c
BLAKE2b-256 checksum
How to use checksums
8464ea39c887d07e0c21040242518c96563c9e686853251377c74141268a5218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for ipdatum 1.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ipdatum-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page