Skip to main content

Get Registration Price

Get the registration price for a specific subname based on name length and type.

Endpoint​

GET /api/subnames/{parent}/{name}/price

Authentication​

None required — This is a public read endpoint.

Parameters​

ParameterTypeLocationRequiredDescription
parentstringpathâś…Parent ENS name (e.g., aboutme.eth)
namestringpathâś…Subname label to price (e.g., alice)

Response​

{
"parent": "aboutme.eth",
"name": "mycoolname",
"fullName": "mycoolname.aboutme.eth",
"available": true,
"pricing": {
"price": 0.97,
"priceFormatted": "$0.97",
"tier": "standard",
"reason": "Standard name",
"currency": "USDC",
"network": "Base"
},
"timestamp": "2024-02-10T14:30:00.000Z"
}

Pricing Tiers​

TierPrice/YearName LengthExamples
ultraPremium$97.001-2 charactersa, xy
ultraShort$19.973 charactersabc, dev
dictionary$9.97Common words (4+)crypto, alpha, gold
short$4.974 characterscode, hash
standard$0.975+ charactersalice, developer
reservedN/AReserved namesadmin, support
Free First Registration

Your first registration is FREE (one per wallet + one per IP address). Additional registrations require payment at the listed prices.

Dictionary Words​

Common English words and Web3-specific terms have a premium ($9.97) regardless of length:

Common words: the, be, have, do, say, get, make, go, know, take, see, come, think, look, want, give, use, find, tell, ask, work, seem, feel, try, leave, call...

Web3 terms: crypto, bitcoin, ethereum, wallet, token, nft, defi, web3, meta, alpha, prime, elite, vip, gold, diamond...

Examples​

cURL​

# Standard name (5+ chars)
curl "https://api.web3identity.com/api/subnames/aboutme.eth/developer/price"
# Response: $0.97 (standard)

# Short name (4 chars)
curl "https://api.web3identity.com/api/subnames/aboutme.eth/code/price"
# Response: $4.97 (short)

# Dictionary word
curl "https://api.web3identity.com/api/subnames/aboutme.eth/crypto/price"
# Response: $9.97 (dictionary)

# Ultra short (3 chars)
curl "https://api.web3identity.com/api/subnames/aboutme.eth/abc/price"
# Response: $19.97 (ultraShort)

# Premium (1-2 chars)
curl "https://api.web3identity.com/api/subnames/aboutme.eth/ab/price"
# Response: $97.00 (ultraPremium)

JavaScript​

async function getPrice(parent, name) {
const response = await fetch(
`https://api.web3identity.com/api/subnames/${parent}/${name}/price`
);
return response.json();
}

// Get price before registration
const priceInfo = await getPrice('aboutme.eth', 'mycoolname');

if (priceInfo.available) {
console.log(`Price: ${priceInfo.pricing.priceFormatted}/year`);
console.log(`Tier: ${priceInfo.pricing.tier}`);
console.log(`Reason: ${priceInfo.pricing.reason}`);
} else {
console.log('Name is already taken');
}

Price Comparison Function​

async function comparePrices(parent, names) {
const results = await Promise.all(
names.map(name => getPrice(parent, name))
);

return results
.sort((a, b) => a.pricing.price - b.pricing.price)
.map(r => ({
name: r.name,
price: r.pricing.priceFormatted,
tier: r.pricing.tier,
available: r.available
}));
}

// Find cheapest available name
const options = await comparePrices('aboutme.eth', [
'alice', 'bob', 'alice123', 'a', 'crypto'
]);
console.table(options);

Error Responses​

StatusCodeDescription
400BAD_REQUESTInvalid name format
429RATE_LIMITEDRate limit exceeded
500PRICING_ERRORInternal server error