Check if a domain name is available for purchase. You can check multiple domains at once.
Ruby
require 'dub' Models = ::OpenApiSDK::Models s = ::OpenApiSDK::Dub.new( security: Models::Shared::Security.new( token: 'DUB_API_KEY', ), ) req = Models::Operations::CheckDomainStatusRequest.new( domains: '<value>', ) res = s.domains.check_status(request: req) unless res.nil? # handle response end
[ { "domain": "<string>", "available": true, "price": "<string>", "premium": true } ]
Default authentication mechanism
The domains to search. We only support .link domains for now.
The domain status was retrieved.
The domain name.
Whether the domain is available.
The price description.
Whether the domain is a premium domain.
Was this page helpful?