RESTful API for managing domains, DNS records, and related services at Name.com. Access via HTTPS at api.name.com (production) or api.dev.name.com (testing). Supports standard authentication, rate-limited to 20 requests/second.
https://docs.name.com/_mock/coreapi/namecom.api/
https://api.dev.name.com/
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:getAuthCode
https://api.dev.name.com/core/v1/domains/{domainName}:getAuthCode
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:getAuthCode'
{ "authCode": "string" }
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:getPricing
https://api.dev.name.com/core/v1/domains/{domainName}:getPricing
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:getPricing?years=2'
A successful response.
Premium indicates that this pricing is a premium result and the respective prices must be passed in create, renew or transfer commands.
PurchasePrice is the price you will pay to register a domain. Can be passed in the CreateDomain request.
RenewalPrice is the price you will pay to renew a domain. Can be passed in the RenewDomain request.
{ "premium": true, "purchasePrice": 24.99, "renewalPrice": 24.99, "transferPrice": 24.99 }
Adds or renews WHOIS privacy protection for a domain. This is used to ensure personal contact details remain hidden from public WHOIS lookups. If WHOIS privacy is already enabled, this will extend the protection. If it’s not yet active, this will both purchase and enable the service. This is a billable action unless covered by a bundled privacy plan.
https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:purchasePrivacy
https://api.dev.name.com/core/v1/domains/{domainName}:purchasePrivacy
curl -i -X POST \
-u <username>:<password> \
'https://docs.name.com/_mock/coreapi/namecom.api/core/v1/domains/{domainName}:purchasePrivacy' \
-H 'Content-Type: application/json' \
-d '{
"purchasePrice": 0.1,
"years": 0
}'
{ "domain": { "domainName": "example.com", "createDate": "2023-01-15T14:30:00Z", "expireDate": "2025-01-15T14:30:00Z", "autorenewEnabled": true, "locked": true, "privacyEnabled": true, "contacts": { … }, "nameservers": [ … ], "renewalPrice": 12.99 }, "order": 0, "totalPaid": 4.99 }