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.
name.com Core API (1.3.1)
https://docs.name.com/_mock/api-spec-cdn/namecom.api/
https://api.dev.name.com/
- Mock server
https://docs.name.com/_mock/api-spec-cdn/namecom.api/core/v1/domains/{domainName}:getAuthCode
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}:getAuthCode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/api-spec-cdn/namecom.api/core/v1/domains/{domainName}:getAuthCode'
{ "authCode": "string" }
- Mock server
https://docs.name.com/_mock/api-spec-cdn/namecom.api/core/v1/domains/{domainName}:getPricing
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}:getPricing
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs.name.com/_mock/api-spec-cdn/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 }
Request
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.
A unique string (e.g., a UUID v4) to make the request idempotent. This key ensures that if the request is retried, the operation will not be performed multiple times. Subsequent requests with the same key will return the original result.
- Mock server
https://docs.name.com/_mock/api-spec-cdn/namecom.api/core/v1/domains/{domainName}:purchasePrivacy
- Testing
https://api.dev.name.com/core/v1/domains/{domainName}:purchasePrivacy
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
'https://docs.name.com/_mock/api-spec-cdn/namecom.api/core/v1/domains/{domainName}:purchasePrivacy' \
-H 'Content-Type: application/json' \
-H 'X-Idempotency-Key: 083910ef-04e4-4bd1-a0bf-3737fe005ca8' \
-d '{
"purchasePrice": 0.1,
"years": 1
}'
{ "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 }