Skip to main content

nameai

Official Python SDK for the Name.ai public API: domain search/availability, WHOIS, TLD pricing and registry requirements, and marketplace listings. No dependencies — the whole client is urllib from the standard library. Python ≥ 3.9.

pip install nameai
from nameai import NameAI

nameai = NameAI()

nameai.tld_price("ai", "register")          # {'tld': 'ai', 'op': 'register', 'priceCents': 18000}
nameai.search_domain("acme.ai")["results"]  # availability across alternate TLDs
nameai.whois_lookup("example.com")

Paging

Follow the cursor rather than incrementing an offset — a cursor names the row you stopped at, so a listing sold or added while you page cannot shift the window under you:

for listing in nameai.list_all_listings(tld="ai", sort="price_asc"):
    print(listing["domain"])

Batching

Several lookups in one round trip. Each operation still costs the rate limit what the individual call would have, and one failure does not fail the rest:

response = nameai.batch([
    {"id": "a", "op": "search_domain", "params": {"q": "acme.ai"}},
    {"id": "b", "op": "tld_registration_price", "params": {"tld": "ai", "op": "register"}},
    {"id": "c", "op": "whois_lookup", "params": {"domain": "example.com"}},
])
for result in response["results"]:
    print(result["id"], result["status"])

Errors and auth

A non-2xx raises NameAIError carrying the API's typed status, code and retry_after, so you can branch on the code instead of parsing a message.

Every method works unauthenticated. Authentication buys exactly one thing — real marketplace prices instead of masked ones. Get a token per name.ai/auth.md and pass NameAI(access_token=...).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameai-1.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nameai-1.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file nameai-1.1.0.tar.gz.

File metadata

  • Download URL: nameai-1.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nameai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e2b4ac88372e0caa2985240efb7a7c50af2b18b1a2b5ba4d69fddc7729e3373f
MD5 a620028151ddca73aecb53b07b43e98b
BLAKE2b-256 32cd1598ecbd24e2891b3b96003ce0a0bd3d34872900d1b1a05615e612b34751

See more details on using hashes here.

File details

Details for the file nameai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nameai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nameai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab03ba7dc95181512593eaf50430a03a166d80712d39df03d71631a8739320c6
MD5 5babd23a6c564ee7241c7faff0ee6f2f
BLAKE2b-256 773bf29d1255f13235b412f0fbdbded37354a7e22060e38082e77b3109e27182

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.1

2 files

This release

1.1.0 This release

2 files

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