# How to value a domain (https://developer.godaddy.com/en/docs/api-users/domains/valuation/value-a-domain)

---
title: How to value a domain
description: >-
  Get a domain's GoValue valuation using the Domain valuation API v2, or the v1
  API with suggested resale pricing.
keywords: >-
  get domain value, appraise a domain, GoValue API call, GET
  /v2/domains/domain-names/{domain-name}/govalue, GET /v1/domains/govalues, how
  much is my domain worth, value a domain programmatically, Afternic list price,
  wholesale domain value
agentNotes:
  permissions:
    - >-
      Requires an active GoValue subscription on the GoDaddy account whose
      credentials you use.
  scopes:
    - 'domains.domain:read'
  rateLimit: Each subscription plan sets a daily request limit. Exceeding it returns 429.
  idempotent: true
  destructive: false
  failureRecovery: >-
    Retry a 429 later, once the limit allows more requests. On v2, 400, 401,
    403, and 404 are not retryable. On v1, 404 VALUATION_NOT_FOUND and 422
    UNSUPPORTED_TLD are not retryable.
related:
  apis:
    - title: (Recommended) Domain Valuation API v2 reference
      href: /docs/references/rest/domain-valuation/v2/get-go-value
    - title: Domain Valuation API v1 reference
      href: /docs/references/rest/domain-valuation/v1/get-go-value
  concepts:
    - title: About Domain valuation
      href: /docs/api-users/domains/valuation
    - title: Authentication
      href: /docs/api-users/auth
    - title: Handle rate limits
      href: /docs/api-users/rate-limits
pageId: be24a8cb-fdd1-49b2-b1be-0fe58eb8ece5
---

## Overview

This guide covers retrieving a domain's GoValue valuation (GoDaddy's machine-learned estimate of what the domain is worth) programmatically with the Domain valuation API. The main procedure uses v2. A later section covers v1 for existing integrations.

Access is subscription-based. Go to [About Domain valuation](https://developer.godaddy.com/docs/api-users/domains/valuation) for what each field means and how the valuation model behaves.

## Prerequisites

Before you can use the Domain valuation API, you need:

* an active GoValue subscription on your GoDaddy account

  Subscribe on the [GoDaddy domain value appraisal page](https://www.godaddy.com/domain-value-appraisal). Plans differ by daily request limit.
* a [PAT](https://developer.godaddy.com/docs/api-users/auth) with the `domains.domain:read` scope

## Get a valuation with v2 (Recommended)

`GET /v2/domains/domain-names/{domain-name}/govalue` returns the GoValue valuation for a single domain.

The following procedure requests a valuation:

* Request the valuation:

```bash tab="curl"
curl -s "https://api.godaddy.com/v2/domains/domain-names/$DOMAIN_NAME/govalue" \
  -H "Authorization: Bearer $GODADDY_PAT"
```

```js tab="Node"
const pat = process.env.GODADDY_PAT;
const domainName = process.env.DOMAIN_NAME;

const res = await fetch(
  `https://api.godaddy.com/v2/domains/domain-names/${domainName}/govalue`,
  { headers: { Authorization: `Bearer ${pat}` } },
);
const valuation = await res.json();
console.log(valuation.goValue);
```

```python tab="Python"
import os, requests

pat = os.environ["GODADDY_PAT"]
domain_name = os.environ["DOMAIN_NAME"]
res = requests.get(
    f"https://api.godaddy.com/v2/domains/domain-names/{domain_name}/govalue",
    headers={"Authorization": f"Bearer {pat}"},
)
data = res.json()
print(data["goValue"])
```

```go tab="Go"
package main

import (
    "encoding/json"
    "fmt"
    "net/http"
    "os"
)

func main() {
    pat := os.Getenv("GODADDY_PAT")
    domainName := os.Getenv("DOMAIN_NAME")
    req, _ := http.NewRequest("GET",
        "https://api.godaddy.com/v2/domains/domain-names/"+domainName+"/govalue", nil)
    req.Header.Set("Authorization", "Bearer "+pat)

    res, err := http.DefaultClient.Do(req)
    if err != nil { panic(err) }
    defer res.Body.Close()

    var data struct {
        GoValue map[string]any `json:"goValue"`
    }
    json.NewDecoder(res.Body).Decode(&data)
    fmt.Println(data.GoValue)
}
```

The following table describes the path parameter:

| Parameter     | Required | Description              | Note                                                                                                                                         |
| ------------- | -------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `domain-name` | Yes      | The domain name to value | For example, `example.com`. Internationalized domain names (IDNs) aren't supported. A punycode A-label like `xn--80ak6aa92e.com` returns 400 |

The following example shows a successful v2 response with the valuation and your current usage allowance:

```json
{
  "domainName": "$DOMAIN_NAME",
  "goValue": { "currencyCode": "USD", "value": 1234 },
  "maxDailyUsage": 1000,
  "dailyUsage": 500
}
```

Go to [About Domain valuation](https://developer.godaddy.com/docs/api-users/domains/valuation) for a description of each response field and how to interpret the daily request limit fields.

## Get a valuation with v1

Use v1 only for existing integrations. v1 returns the estimated value plus a suggested Afternic list price, a wholesale value, a price range, and predicted yearly sales probabilities. `GET /v1/domains/govalues?domainName={domain}` returns the valuation for a single domain.

The following procedure requests a v1 valuation:

* Request the valuation:

```bash tab="curl"
curl -s "https://api.godaddy.com/v1/domains/govalues?domainName=testdomain.com" \
  -H "Authorization: Bearer $GODADDY_PAT"
```

```js tab="Node"
const pat = process.env.GODADDY_PAT;
const url = new URL("https://api.godaddy.com/v1/domains/govalues");
url.searchParams.set("domainName", "testdomain.com");

const res = await fetch(url, {
  headers: { Authorization: `Bearer ${pat}` },
});
const valuation = await res.json();
console.log(valuation.goValue, valuation.listPrice);
```

```python tab="Python"
import os, requests

pat = os.environ["GODADDY_PAT"]
res = requests.get(
    "https://api.godaddy.com/v1/domains/govalues",
    params={"domainName": "testdomain.com"},
    headers={"Authorization": f"Bearer {pat}"},
)
data = res.json()
print(data["goValue"], data["listPrice"])
```

```go tab="Go"
package main

import (
    "encoding/json"
    "fmt"
    "net/http"
    "os"
)

func main() {
    pat := os.Getenv("GODADDY_PAT")
    req, _ := http.NewRequest("GET",
        "https://api.godaddy.com/v1/domains/govalues?domainName=testdomain.com", nil)
    req.Header.Set("Authorization", "Bearer "+pat)

    res, err := http.DefaultClient.Do(req)
    if err != nil { panic(err) }
    defer res.Body.Close()

    var data struct {
        GoValue   map[string]any `json:"goValue"`
        ListPrice map[string]any `json:"listPrice"`
    }
    json.NewDecoder(res.Body).Decode(&data)
    fmt.Println(data.GoValue, data.ListPrice)
}
```

The following table describes the v1 query parameter:

| Parameter    | Required | Description              | Note                                                                                                                                                |
| ------------ | -------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `domainName` | Yes      | The domain name to value | For example, `testdomain.com`. Internationalized domain names (IDNs) aren't supported. The API rejects a punycode A-label like `xn--80ak6aa92e.com` |

The following example shows a successful v1 response with the valuation and your current usage allowance:

```json
{
  "status": "OK",
  "domainName": "$DOMAIN_NAME",
  "goValue": { "currencyCode": "USD", "value": 1234 },
  "goValueWholesale": { "currencyCode": "USD", "value": 900 },
  "minPrice": { "currencyCode": "USD", "value": 1000 },
  "maxPrice": { "currencyCode": "USD", "value": 1600 },
  "listPrice": { "currencyCode": "USD", "value": 1500 },
  "salesProbability": 0.000581,
  "salesProbability500": 0.000581,
  "salesProbabilityWholesale": 0.000581,
  "maxDailyUsage": 1000,
  "dailyUsage": 500
}
```

## Common errors

The following table lists common v2 errors and recommended actions. Go to [Errors](https://developer.godaddy.com/docs/api-users/errors) for the full error envelope.

| Status           | Most likely cause                                                                      | Recommended action                                                                |
| ---------------- | -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `400`            | The domain name is invalid or its TLD isn't supported                                  | Correct the `domain-name` value                                                   |
| `401`            | Authentication credentials are missing or invalid                                      | Check the `Authorization` header and PAT                                          |
| `403 RESTRICTED` | The account has no active GoValue subscription, or the PAT lacks `domains.domain:read` | Confirm the subscription and PAT scope                                            |
| `404`            | GoDaddy blocks appraisals for this domain                                              | Treat as "no valuation available" and don't retry                                 |
| `429`            | A request limit is exhausted                                                           | Retry later. Go to [Handle rate limits](https://developer.godaddy.com/docs/api-users/rate-limits) for guidance |

The following table lists common v1 errors and recommended actions:

| Status                    | Most likely cause                                                                        | Recommended action                                |
| ------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `400 INVALID_DOMAIN_NAME` | The domain name isn't syntactically valid                                                | Correct the `domainName` value                    |
| `401 UNAUTHENTICATED`     | Authentication credentials are missing or invalid                                        | Check the `Authorization` header and token        |
| `403 RESTRICTED`          | The account has no active GoValue subscription, or the token lacks `domains.domain:read` | Confirm the subscription and token scope          |
| `404 VALUATION_NOT_FOUND` | No valuation exists for this domain, even though its TLD is supported                    | Treat as "no valuation available" and don't retry |
| `422 UNSUPPORTED_TLD`     | The domain is syntactically valid, but its TLD isn't supported for valuation             | Treat as "no valuation available" and don't retry |
| `429 SLOW_DOWN`           | Daily request limit exceeded                                                             | Retry later                                       |
