Skip to main content
GET
/
domains
/
status
Go
package main

import(
	"context"
	pearset "github.com/pearset/pearset-go"
	"github.com/pearset/pearset-go/models/operations"
	"log"
)

func main() {
    ctx := context.Background()

    s := pearset.New(
        pearset.WithSecurity("DUB_API_KEY"),
    )

    res, err := s.Domains.CheckStatus(ctx, operations.CheckDomainStatusRequest{
        Domains: operations.CreateDomainsStr(
            "<value>",
        ),
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
[
  {
    "domain": "<string>",
    "available": true,
    "premium": true,
    "prices": {
      "registration": 123,
      "renewal": 123
    },
    "price": "<string>"
  }
]
Domain registration is only available for certain Enterprise customers. Please contact us to get access.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

domains
required

The domains to search. We only support .link domains for now.

Response

The domain status was retrieved.

domain
string
required

The domain name.

available
boolean
required

Whether the domain is available.

premium
boolean | null
required

Whether the domain is a premium domain.

prices
object | null
required

Price details for the domain. Will be null if the domain is not available.

price
string | null
required
deprecated

Deprecated: Use prices instead.