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

# Get Citations by Domain

> Retrieve citation data grouped by domain with pagination.

Returns citation data grouped by domain. Each domain entry includes citation count, unique URLs, average rank, and category. Results are paginated and include period-over-period deltas.

## Parameters

**Authorization** `string` *required*

Bearer token. Format: `Bearer slat_<your-token>`.

**dateRange** `integer`

Number of days for the analysis window. Range: 1–365. Default: `30`.

**from** `string`

Start of date range. RFC 3339 timestamp (e.g., `2026-02-01T00:00:00Z`). Send together with `to`.

**to** `string`

End of date range. RFC 3339 timestamp. Send together with `from`. Data through the end of this date (UTC) is included. The range can't exceed 366 days.

**brandId** `number`

Brand ID. If omitted, uses the brand of the workspace's most recently updated prompt.

**topicId** `number`

Filter by topic ID.

**platforms** `string[]`

Filter by one or more platforms.

**category** `string`

Filter by citation category. Values include `OWNED`, `MENTIONED`, `COMPETITOR`, `SOCIAL`, `NOT_MENTIONED`, and `OTHER`.

**search** `string`

Search by URL, domain, or page title. Case-insensitive partial match.

**region** `string`

Filter by ISO country code.

**limit** `integer`

Number of results per page. Default: `20`. Maximum: `100`.

**offset** `integer`

Number of results to skip. Default: `0`.

**promptId** `number`

Filter by a single prompt ID.

**promptIds** `number[]`

Filter by multiple prompt IDs. Maximum 500 values.

## Response

Returns `200 OK` with a paginated list of domain citation data, most-cited domains first.

**content** `object[]` *required*

Array of domain citation objects.

**citation domain object**

**domain** `string` *required*

Domain name.

**citations** `integer` *required*

Total citation count.

**citationsDelta** `integer` *required*

Change from previous period.

**uniqueUrls** `integer` *required*

Number of unique URLs from the domain.

**avgRank** `number`

Average citation rank, rounded to a whole number. `null` if no rank was recorded.

**platforms** `string[]` *required*

Platforms that cited the domain.

**category** `string` *required*

Category of the domain's most recent citation.

**page** `integer` *required*

Current page number (0-indexed), calculated as `offset` divided by `limit`.

**size** `integer` *required*

Page size. Equals `limit`.

**totalElements** `integer` *required*

Total number of domains matching the filters.

**totalPages** `integer` *required*

Total number of pages.

**first** `boolean` *required*

Whether this is the first page.

**last** `boolean` *required*

Whether this is the last page.

**empty** `boolean` *required*

Whether `content` is empty.

## Example

```bash cURL theme={null}
curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/analytics/citations/domains?dateRange=30&topicId=42&limit=10" \
  -H "Authorization: Bearer slat_YOUR_TOKEN"
```

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

response = requests.get(
    "https://api.slatehq.ai/ai-analytics-service/api/public/v1/analytics/citations/domains",
    headers={
        "Authorization": "Bearer slat_YOUR_TOKEN",
    },
    params={
        "dateRange": 30,
        "topicId": 42,
        "limit": 10,
    },
)
result = response.json()
for d in result["content"]:
    print(f"{d['domain']}: {d['citations']} citations, {d['category']}")
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  dateRange: "30",
  topicId: "42",
  limit: "10",
});

const response = await fetch(
  `https://api.slatehq.ai/ai-analytics-service/api/public/v1/analytics/citations/domains?${params}`,
  {
    headers: {
      "Authorization": "Bearer slat_YOUR_TOKEN",
    },
  }
);
const result = await response.json();
console.log(result.content.length, "domains,", result.totalElements, "total");
```

### Response

```json theme={null}
{
  "content": [
    {
      "domain": "example.com",
      "citations": 45,
      "citationsDelta": 5,
      "uniqueUrls": 12,
      "avgRank": 2,
      "platforms": ["CHATGPT", "PERPLEXITY"],
      "category": "OWNED"
    },
    {
      "domain": "techreview.com",
      "citations": 30,
      "citationsDelta": -2,
      "uniqueUrls": 8,
      "avgRank": 3,
      "platforms": ["CHATGPT", "GEMINI"],
      "category": "MENTIONED"
    }
  ],
  "page": 0,
  "size": 10,
  "totalElements": 45,
  "totalPages": 5,
  "first": true,
  "last": false,
  "empty": false
}
```

## Status codes

| Status | Description |
| - | - |
| `200` | Domain citations returned. |
| `400` | A filter is invalid, such as more than 500 `promptIds`, an unsupported platform, `dateRange` outside 1–365, or an invalid `from`/`to` range. |
| `401` | Missing or invalid Bearer token. See [Authentication](https://slatehq.com/docs/api-reference/authentication.md). |
| `500` | Internal server error. |
| `503` | The analytics store is temporarily unavailable (`analytics store unavailable`). |

## What's next

* [Get Citations for Domain](https://slatehq.com/docs/api-reference/aeo-tracker/analytics/get-citations-domain-urls.md) — Drill into URLs for a specific domain.
* [Get Citations by URL](https://slatehq.com/docs/api-reference/aeo-tracker/analytics/get-citations-urls.md) — View all cited URLs.


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