■ Domain Registration API

Domain Registration API

Buy Domains with Crypto. 500+ TLDs.

Register, manage, and monetize domains autonomously. Built for AI agents, autonomous systems, and developers who refuse to hand-hold a registrar portal. No credit card. No KYC. Just code.

Get API Key → View Docs
Registered agents
Domains registered
500+
Supported TLDs
15%
Referral commission

Why AI agents need domains

AI agents are no longer confined to answering questions. The most capable autonomous systems today build web projects, launch affiliate marketing sites, create SaaS landing pages, and run programmatic content operations at scale. For all of these activities, a domain name is not optional — it is the foundation of a digital identity that the agent can own, operate, and monetize without relying on a human intermediary.

Domains are one of the few digital assets that an AI agent can register, hold, and transfer with complete programmatic control. Unlike a social media account that can be suspended by a platform, a domain registered to an agent's crypto wallet is an asset the agent genuinely controls. It can point that domain to its deployed services, set up email forwarding, create subdomains for different products, and eventually transfer the domain to a buyer — all via API calls.

With Purple Flea's Domain Registration API, your agent gets a complete domain lifecycle toolkit. Check availability in milliseconds. Register instantly with a crypto payment from its Purple Flea wallet. Manage DNS records as services spin up or down. Renew automatically from trading profits. Transfer to buyers for profit. The entire workflow — from discovery to sale — can run without a single human approval or a credit card on file.

This is what autonomous digital business looks like. Your agent identifies a valuable domain, checks whether it is available, registers it before a human speculator notices, deploys a landing page, and lists it on a domain marketplace. The API handles every step. The agent keeps the proceeds.

🌐

Autonomous Web Projects

Agents can spin up entire web businesses — from domain registration to DNS configuration to content deployment — with zero manual steps.

💰

Domain Speculation

Register brandable .ai and .com domains programmatically, hold them in your agent's portfolio, and sell at a profit through domain marketplaces.

🔗

Affiliate & Content Sites

Launch affiliate sites, niche content blogs, and lead generation pages at scale. Each gets its own domain, DNS config, and identity — managed by API.

500+ TLDs including .ai, .com, .io

From high-value generics to niche extensions, Purple Flea covers the full TLD spectrum. Every extension is available through the same unified API with the same crypto payment flow.

.ai~$80/yr
.com~$12/yr
.io~$35/yr
.co~$25/yr
.dev~$14/yr
.app~$14/yr
.xyz~$1-5/yr
.net~$12/yr
.org~$13/yr
.me~$18/yr
.gg~$60/yr
.finance~$45/yr
.exchange~$45/yr
.casino~$350/yr
+490 morevaries

The .ai extension deserves special attention. In the current AI boom, brandable .ai domains are appreciating assets. A memorable five-letter .ai domain registered at $80 today might command ten times that value on a secondary market within months. Agents running domain speculation strategies can use Purple Flea's availability check API to scan thousands of name combinations per minute, identify the most brandable options using scoring heuristics, and register promising names before human domain investors notice. The API imposes no rate limits on availability checks, making it ideal for high-volume scanning operations.

The .gg extension is dominant in gaming and streaming communities. .finance and .exchange carry authority in the DeFi space. .dev and .app are Google-backed extensions trusted by technical audiences. Whichever vertical your agent operates in, the right TLD signals credibility and commands attention. Register multi-year terms upfront to lock in current pricing — many TLDs are appreciating in registration cost as demand grows.

Five endpoints. Complete control.

The Domain API follows RESTful conventions. All requests use JSON. Authentication is via the X-API-Key header. Base URL: https://domains.purpleflea.com/v1

Check domain availability

GET /domains/check
curl "https://domains.purpleflea.com/v1/domains/check?name=purpleflea.ai" \
  -H "X-API-Key: pf_live_your_key_here"

# Response
{
  "available": true,
  "name": "purpleflea.ai",
  "price": 80.00,
  "currency": "USD",
  "premium": false,
  "tld": ".ai"
}

Register a domain

POST /domains/register
curl -X POST "https://domains.purpleflea.com/v1/domains/register" \
  -H "X-API-Key: pf_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "purpleflea.ai", "years": 1, "payment": "ETH", "auto_renew": true}'

# Response
{
  "domain": "purpleflea.ai",
  "registered_at": "2026-02-26T14:32:10Z",
  "expires": "2027-02-26T14:32:10Z",
  "tx_hash": "0xa3f9...c72b",
  "amount_paid": "0.02847 ETH",
  "status": "active"
}

List your registered domains

GET /domains
curl "https://domains.purpleflea.com/v1/domains" \
  -H "X-API-Key: pf_live_your_key_here"

# Response
{
  "domains": [
    { "name": "purpleflea.ai", "expires": "2027-02-26", "auto_renew": true, "status": "active" },
    { "name": "myagent.com", "expires": "2028-01-14", "auto_renew": false, "status": "active" }
  ],
  "total": 2
}

Set a DNS record

POST /domains/:domain/dns
curl -X POST "https://domains.purpleflea.com/v1/domains/purpleflea.ai/dns" \
  -H "X-API-Key: pf_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"type": "A", "name": "@", "value": "1.2.3.4", "ttl": 3600}'

# Response
{
  "id": "rec_9f3a2b",
  "type": "A",
  "name": "@",
  "value": "1.2.3.4",
  "ttl": 3600,
  "propagated_in": "~60s"
}

Transfer a domain

POST /domains/:domain/transfer
curl -X POST "https://domains.purpleflea.com/v1/domains/purpleflea.ai/transfer" \
  -H "X-API-Key: pf_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"to_address": "0xABCD1234...EFGH5678"}'

# Response
{
  "domain": "purpleflea.ai",
  "transferred_to": "0xABCD1234...EFGH5678",
  "tx_hash": "0xd4e7...a190",
  "status": "transfer_initiated"
}

Full DNS control via API

Managing DNS records through a web portal is a bottleneck for any autonomous agent workflow. Purple Flea's DNS API gives your agent complete, programmatic control over every record type — no dashboard required, no mouse clicks, no waiting on support tickets.

DNS changes propagate within 60 seconds across Purple Flea's nameserver network. This means your agent can deploy a new service, point the domain to its IP address, and have a live website within a minute of the infrastructure coming online. For agents that spin services up and tear them down dynamically — running experiments, serving traffic to the highest-bidder ad campaigns, or routing requests across a fleet of deployed instances — this speed is a competitive advantage.

Subdomain management is equally powerful. Create api.yourdomain.ai, app.yourdomain.ai, and dashboard.yourdomain.ai as separate CNAME records, each pointing to different deployed services. Set up MX records for email routing. Use TXT records for domain verification with third-party services like Google Search Console or SendGrid. Configure SRV records for service discovery. Everything an agent needs to operate a professional web presence is available through a single, consistent API.

Supported Record Types

A AAAA CNAME MX TXT NS SRV CAA PTR
01

Register Domain

Agent calls POST /domains/register with crypto payment

02

Deploy Service

Agent provisions compute, gets an IP address

03

Set DNS A Record

Agent calls POST /domains/:domain/dns with IP

04

Live in 60 Seconds

Domain resolves globally. No human involved.

Pay with crypto. No KYC. No friction.

Five major cryptocurrencies accepted. Payments are processed on-chain so your agent can approve transactions directly from its Purple Flea wallet with zero human involvement.

ETH
USDC
BTC
SOL
BNB

Traditional domain registrars require a credit card tied to a verified identity. This is a fundamental incompatibility with autonomous agent operations. An AI agent running a domain speculation business or managing a portfolio of affiliate sites cannot have a credit card. Purple Flea eliminates this constraint entirely. Your agent holds crypto in its Purple Flea wallet, and when it needs to register a domain, it signs the payment transaction on-chain. No card. No identity check. No account suspended for "suspicious activity."

USDC is the recommended payment method for agents that want price stability. Because domain registration prices are quoted in USD, paying with USDC eliminates exchange rate uncertainty. If your agent is generating profits from trading or casino operations, it can convert a portion of those profits to USDC and maintain a domain registration budget. Multi-year registrations are available at a discount — registering a domain for three years upfront locks in the current price and reduces renewal risk.

Automatic renewal is available for all domains. When enabled, the system will charge your agent's wallet 30 days before expiration. Your agent can also set a renewal budget cap — if the renewal price exceeds the cap (as can happen with premium domains), it will receive an alert via webhook rather than auto-renewing. This gives speculative portfolios a clean mechanism to let low-value domains expire while protecting high-value assets.

Domain speculation as an autonomous business

Domain speculation has historically been a human game — domainers who built intuition for what names would be valuable, checked expiry lists manually, and raced against other speculators to register promising names. AI agents can play this game better, faster, and at a scale no human can match.

An agent running an autonomous domain speculation strategy can combine several capabilities: scanning expiry databases for domains dropping in the next 24 hours, applying brandability scoring models that evaluate pronounceability, length, and keyword relevance, checking sale history to estimate resale value, and registering the highest-scoring names before human competitors. The availability check endpoint handles tens of thousands of requests per day, making bulk scanning operations practical.

With Purple Flea's Trading API generating profit and the Wallet API managing funds, an agent can run a fully self-sustaining domain portfolio business. Trading profits fund domain acquisitions. Domain sale proceeds flow back into the wallet. The agent rebalances the portfolio based on market conditions, renews the highest-value names, and lets lower-value domains expire. This is an end-to-end autonomous business loop that requires zero human intervention once deployed.

The .ai TLD is particularly attractive for speculative portfolios right now. As AI companies proliferate, the demand for memorable .ai names is growing faster than the supply. Agents that build large portfolios of brandable .ai names today are positioning for significant appreciation as that demand continues to increase. At $80 per year, the holding cost is modest relative to the potential upside.

$80/yr
Average .ai registration cost

Speculation workflow

1

Scan for expiring domains

Query expiry databases via the availability check API at scale

2

Score brandability

Apply ML scoring for pronounceability, length, keyword value

3

Register top candidates

Pay with USDC from trading profits via wallet API

4

List and sell

Point domains to for-sale landing pages, transfer on sale

15% commission on every domain sale

Purple Flea's referral program pays 15% commission on all domain registrations and renewals that come through your agent's referral key. This stacks across every product — domain registrations, multi-year renewals, and any upsells. The commission is paid in USDC directly to your wallet, no claiming required.

The economics are compelling. If your agent builds an onboarding workflow — a LangChain tool that helps other agents get set up with Purple Flea, a CrewAI task that recommends domain services, or a Claude MCP integration that surfaces domain opportunities — every agent it onboards becomes a recurring revenue stream. A modest scenario: 100 referred agents each register 1 domain at an average price of $30. That is $3,000 in gross domain revenue, of which $450 flows to your referral wallet.

The compounding effect is where it gets interesting. Agents that register domains often renew them annually. A referred agent that builds a 20-domain portfolio generates $600/year in renewals, of which $90 is your commission — every year, indefinitely. As the agents you refer grow their portfolios, your passive income from the referral program grows with them. This is autonomous revenue generation layered on top of your primary business activities.

15%
Commission rate
$450
Example: 100 domains avg $30

Referral math

100 referred agents × 1 domain × $30 avg = $3,000 gross
$3,000 × 15% = $450 commission
Annual renewals stack on top — every year.

Running in Python in under 60 seconds

Install the requests library and paste your API key. That is all the setup required to start registering domains programmatically.

Python — check availability and register
import requests

API_KEY = "pf_live_..."
BASE    = "https://domains.purpleflea.com/v1"
HEADERS = {"X-API-Key": API_KEY}

# Step 1: Check availability
r = requests.get(
    f"{BASE}/domains/check",
    params={"name": "myagent.ai"},
    headers=HEADERS
)
data = r.json()

# Step 2: Register if available
if data["available"]:
    reg = requests.post(
        f"{BASE}/domains/register",
        json={"name": "myagent.ai", "years": 1, "payment": "USDC"},
        headers=HEADERS
    )
    result = reg.json()
    print(f"Registered: {result['domain']} — expires {result['expires']}")
else:
    print(f"myagent.ai is taken. Try another name.")
Python — set DNS record after deploying a service
# After spinning up compute and getting an IP address:
server_ip = "45.76.123.55"

dns = requests.post(
    f"{BASE}/domains/myagent.ai/dns",
    json={
        "type":  "A",
        "name":  "@",
        "value": server_ip,
        "ttl":   3600
    },
    headers=HEADERS
)
print(f"DNS set: {dns.json()['id']} — live in ~60s")
Python — bulk register 10 domains in a loop
import requests, time

API_KEY = "pf_live_..."
BASE    = "https://domains.purpleflea.com/v1"
HEADERS = {"X-API-Key": API_KEY}

# Candidate names to register
candidates = [
    "agentic.ai", "autonomy.ai", "neuralops.ai", "agentflow.io",
    "promptly.dev", "loopback.ai", "stackrun.app", "botyard.com",
    "inferex.ai", "chainops.xyz"
]

registered = []
skipped    = []

for name in candidates:
    # Check availability first
    chk = requests.get(
        f"{BASE}/domains/check",
        params={"name": name},
        headers=HEADERS
    ).json()

    if not chk.get("available"):
        skipped.append(name)
        continue

    # Register with USDC, auto-renew on
    reg = requests.post(
        f"{BASE}/domains/register",
        json={"name": name, "years": 1, "payment": "USDC", "auto_renew": True},
        headers=HEADERS
    ).json()

    registered.append({"name": reg["domain"], "expires": reg["expires"]})
    print(f"  Registered {reg['domain']} — expires {reg['expires']}")
    time.sleep(0.5)  # brief pause between calls

print(f"\nRegistered: {len(registered)}  |  Skipped (taken): {len(skipped)}")

Domain portfolio management

List every domain you own, inspect expiry dates, and toggle auto-renew settings — all via API. No dashboard needed to manage a portfolio of any size.

Python — list portfolio and flag domains expiring soon
import requests, datetime

API_KEY = "pf_live_..."
BASE    = "https://domains.purpleflea.com/v1"
HEADERS = {"X-API-Key": API_KEY}

# Fetch full portfolio
resp    = requests.get(f"{BASE}/domains", headers=HEADERS).json()
domains = resp["domains"]
today   = datetime.date.today()

print(f"Portfolio: {len(domains)} domains\n")

for d in domains:
    exp   = datetime.date.fromisoformat(d["expires"])
    days  = (exp - today).days
    renew = "auto" if d["auto_renew"] else "manual"
    flag  = " *** EXPIRING SOON" if days < 30 else ""
    print(f"  {d['name']:30} expires {exp}  ({days}d)  [{renew}]{flag}")
Python — enable auto-renew on a domain
# Toggle auto-renew via PATCH /domains/:domain
patch = requests.patch(
    f"{BASE}/domains/myagent.ai",
    json={"auto_renew": True},
    headers=HEADERS
)
result = patch.json()
print(f"auto_renew → {result['auto_renew']}")

# Disable auto-renew (let a domain expire)
requests.patch(
    f"{BASE}/domains/lowvalue.xyz",
    json={"auto_renew": False},
    headers=HEADERS
)
📄

List all domains

GET /domains returns your full portfolio with name, expiry date, status, and auto-renew flag for every registered domain.

📅

Track expiry dates

The expires field on each domain lets your agent calculate days remaining and trigger renewal or sale workflows before a domain lapses.

🔄

Auto-renew settings

Use PATCH /domains/:domain with {"auto_renew": true} to protect high-value names. Set false on low-value domains to let them expire and recover the renewal cost.

Works with your entire agent stack

The Domain API integrates with every Purple Flea product and every major agent framework. Use it standalone or wire it into a multi-agent workflow.

Get started

Register your first domain in 60 seconds

Get your API key, fund your wallet with crypto, and make your first domain registration call. No sign-up form. No credit card. No waiting.

Get API Key → View Docs