> ## Documentation Index
> Fetch the complete documentation index at: https://docs.affonso.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get domain profile

> Read the saved public profile of a root domain

Returns the saved public profile of a root domain, such as its site type, language, and niche. Profiles are shared across teams and contain only public facts. This endpoint reads what is already saved. It never crawls the site or refreshes the profile. Requires the `read:discovery` permission.

## Path Parameters

**domain** `string` *required*

Root domain, for example `example.com` or `example.co.uk`. Send the registrable domain only, without a scheme, path, or subdomain. The value is trimmed and lowercased.

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `object`

The domain profile.

**Data fields**

**domain** `string`

The root domain.

**site\_type** `string`

`blog`, `publisher`, `directory`, `software`, `agency`, `forum`, `shop`, `course`, `other`, or `unknown`.

**language** `string | null`

Main language of the site.

**niche** `string | null`

Topic area of the site.

**own\_product** `boolean | null`

Whether the site sells its own product.

**directory** `boolean | null`

Whether the site is a directory.

**domain\_strength** `number | null`

Domain strength score. Never negative.

**status** `string`

`ready` when the profile is complete, `unavailable` when the site could not be profiled.

**checked\_at** `string`

ISO 8601 timestamp of the last check.

**expires\_at** `string`

ISO 8601 timestamp after which the profile is considered stale.

**stale** `boolean`

`true` when `expires_at` has passed. A stale profile is still returned.

## Errors

* **404** `NOT_FOUND`: no saved profile exists for this domain. A subdomain, a URL, or a value that is not a registrable domain also returns `404`. The message is `Domain profile not found`.
* **403** `INSUFFICIENT_PERMISSIONS`: the API key does not have the `read:discovery` permission.

```json Not found theme={null}
{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Domain profile not found"
  }
}
```

```bash cURL theme={null}
curl "https://api.affonso.io/v1/discovery/domains/example.com" \
  -H "Authorization: Bearer sk_live_your_api_key"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "domain": "example.com",
    "site_type": "blog",
    "language": "en",
    "niche": "email marketing",
    "own_product": false,
    "directory": false,
    "domain_strength": 41,
    "status": "ready",
    "checked_at": "2026-11-01T12:00:00.000Z",
    "expires_at": "2026-12-01T12:00:00.000Z",
    "stale": false
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.