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

# Get Domain Trend

> One sending domain's deliverability over time

> [!NOTE]
>
> **Smart Delivery v2 (Deliverability Test) API**: the deliverability (inbox placement) test that sends your campaign email to seed inboxes and reports where it landed. Contact [support@smartlead.ai](mailto:support@smartlead.ai) for access.

## Path Parameters

**domain** `string` *required*

Sending domain, for example `sender-one.com`

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

**from** `string`

First day, `YYYY-MM-DD` (UTC). Default: 29 days before `to`

**to** `string`

Last day, `YYYY-MM-DD` (UTC). Default: today. The range is at most 400 days

**interval** `string`

`day` (default), `week` or `month`

**providerId** `number`

Only this provider (ID from [List Seed Providers](https://api.smartlead.ai/api-reference/smart-delivery-v2/providers.md))

```bash cURL theme={null}
curl -X GET "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/domains/sender-one.com?api_key=YOUR_KEY"
```

```python Python theme={null}
import requests

API_KEY = "YOUR_API_KEY"

response = requests.get(
    "https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/domains/sender-one.com",
    params={"api_key": API_KEY}
)
print(response.status_code)
print(response.json())
```

```javascript JavaScript theme={null}
const API_KEY = 'YOUR_API_KEY';

const response = await fetch(
  `https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/domains/sender-one.com?api_key=${API_KEY}`,
  {
    method: 'GET'
  }
);
console.log(await response.json());
```

## Response Fields

**from** `string`

First day

**to** `string`

Last day

**interval** `string`

`day`, `week` or `month`

**items** `array`

One item per interval, oldest first

**bucket**

**bucket** `string`

First day of the interval, `YYYY-MM-DD`

**runs** `number`

Completed runs in the range

**counts** `object`

Counts for the emails sent: `expected`, `sent`, `failed`, `inbox`, `tab`, `spam`, `missing`, `unreadable`, `notSent`, `unconfirmed`, `bouncedSeed`, `bouncedSender`, `bouncedUnknown`, `spfFail`, `dkimFail`, `dmarcFail`, and `inboxRate` (inbox share of the emails that reached a verdict, 0 to 1, or `null` when none did). Seed-side bounces (`bouncedSeed`) are left out of the placement rate; sender-side and unknown bounces count as not delivered.

**avgTimeToInboxMs** `number | null`

Average send-to-inbox time

## Response Codes

**200** `Success`

Success

**400** `Error`

Invalid date range (`RANGE_INVALID`)

**401** `Unauthorized`

Missing, invalid or expired API key (`UNAUTHORIZED`)

**403** `Forbidden`

Client (agency) API keys are not allowed (`CLIENT_NOT_ALLOWED`), or your plan does not include API access (`API_ACCESS_RESTRICTED`)

**429** `Too Many Requests`

Too many requests for this API key. Wait the number of seconds in the `Retry-After` header (`RATE_LIMITED`)

```json 200 - Success theme={null}
{
  "from": "2026-10-19",
  "to": "2026-11-17",
  "interval": "day",
  "items": [
    { "bucket": "2026-11-17", "runs": 1, "counts": { "sent": 240, "inbox": 180, "spam": 30, "inboxRate": 0.75 }, "avgTimeToInboxMs": 39000 }
  ]
}
(counts abbreviated)
```

```json Error - Unauthorized theme={null}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API Key"
  }
}
```

## Related Endpoints

* [List Domain Deliverability](https://api.smartlead.ai/api-reference/smart-delivery-v2/domains.md)


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