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=...).
- API docs: https://name.ai/developers/api
- OpenAPI spec: https://name.ai/openapi.json
- MCP server (same capabilities, for agents): https://name.ai/developers/mcp
Metadata
Release files for nameai 1.1.1
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 |
|---|---|---|---|---|
| nameai-1.1.1.tar.gz | 5.0 kB | Without provenance | Details for nameai-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nameai-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for nameai-1.1.1-py3-none-any.whl |
Total release size: 10.5 kB
Release files / nameai-1.1.1.tar.gz
| Download URL | nameai-1.1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3b521805e1f52b400265916f2b789ca250e5ee4ba71a084b9b871460cfdec6d
|
|
BLAKE2b-256 checksum How to use checksums |
87c503e1e936f2d9f74739b8749e30aea39ac4f9bdc8ab7401d0ebc98aa1f778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / nameai-1.1.1-py3-none-any.whl
| Download URL | nameai-1.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d01b04b12e0c5488ae9e404ead7654b5479807872b1563f9f737c675e1c988ce
|
|
BLAKE2b-256 checksum How to use checksums |
113f8b3016ec63dc2ac18a8872eab5190339aa901e6988a1b2ef8f745e9d2a92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for nameai 1.1.1
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.