# Citations

Returns the top domains that cite your brand in AI search responses, with appearance counts and category classification.

## Request

```
GET /v1/citations/domain-distribution
```

### Query Parameters

All [common filters](/getting-started/filtering.md) plus [citation-specific filters](/getting-started/filtering.md#citation-specific-filters):

| Parameter      | Type              | Required | Default     | Description                              |
| -------------- | ----------------- | -------- | ----------- | ---------------------------------------- |
| `startDate`    | string (ISO 8601) | No       | 30 days ago | Start of date range                      |
| `endDate`      | string (ISO 8601) | No       | Today       | End of date range                        |
| `providers`    | string\[]         | No       | All         | Filter by AI provider                    |
| `topicIds`     | string\[]         | No       | All         | Filter by topic                          |
| `categories`   | string\[]         | No       | All         | Source category filter                   |
| `entityScope`  | string            | No       | `MY_BRAND`  | `MY_BRAND`, `INDUSTRY`, or `COMPETITORS` |
| `competitorId` | string (UUID)     | No       | —           | Filter to specific competitor            |
| `domains`      | string\[]         | No       | All         | Filter to specific domains               |

## Response

### Success (200 OK)

```json
{
  "success": true,
  "data": [
    {
      "domain": "reuters.com",
      "category": "NEWS_AND_MEDIA",
      "domain_count": 89,
      "percentage": 14.2,
      "providers": ["OPENAI", "GEMINI", "PERPLEXITY"]
    },
    {
      "domain": "acme.com",
      "category": "BUSINESS_AND_SERVICES",
      "domain_count": 76,
      "percentage": 12.1,
      "providers": ["OPENAI", "GEMINI"]
    },
    {
      "domain": "wikipedia.org",
      "category": "EDUCATION",
      "domain_count": 45,
      "percentage": 7.2,
      "providers": ["OPENAI", "PERPLEXITY"]
    }
  ]
}
```

### Fields

| Field          | Type      | Description                           |
| -------------- | --------- | ------------------------------------- |
| `domain`       | string    | Domain name                           |
| `category`     | string    | Source category classification        |
| `domain_count` | integer   | Number of times this domain was cited |
| `percentage`   | number    | Share of total citations              |
| `providers`    | string\[] | Which AI providers cited this domain  |

### Source Categories

| Value                          | Description                            |
| ------------------------------ | -------------------------------------- |
| `NEWS_AND_MEDIA`               | News outlets and media publications    |
| `BUSINESS_AND_SERVICES`        | Company websites and business services |
| `EDUCATION`                    | Educational institutions and resources |
| `GOVERNMENT_AND_INSTITUTIONAL` | Government and institutional sites     |
| `SOCIAL_MEDIA`                 | Social media platforms                 |
| `FORUMS_BLOGS_AND_COMMUNITY`   | Forums, blogs, and community sites     |
| `ECOMMERCE_AND_MARKETPLACES`   | E-commerce and marketplace sites       |
| `OTHER`                        | Other sources                          |

## Examples

### curl

```bash
curl "https://app.limy.ai/api/v1/citations/domain-distribution?\
categories=NEWS_AND_MEDIA&categories=BUSINESS_AND_SERVICES" \
  -H "X-API-Key: YOUR_API_KEY"
```

### Python

```python
response = requests.get(
    f"https://app.limy.ai/api/v1/citations/domain-distribution",
    headers={"X-API-Key": API_KEY},
    params={
        "entityScope": "MY_BRAND",
        "startDate": "2026-01-01",
        "endDate": "2026-03-31"
    }
)

for source in response.json()['data']:
    print(f"{source['domain']}: {source['domain_count']} citations ({source['percentage']}%)")
```

### JavaScript

```javascript
const response = await fetch(
  `https://app.limy.ai/api/v1/citations/domain-distribution?entityScope=MY_BRAND`,
  { headers: { 'X-API-Key': API_KEY } }
);

const { data } = await response.json();
data.forEach(s =>
  console.log(`${s.domain}: ${s.domain_count} citations (${s.percentage}%)`)
);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-reference.limy.ai/analytics/domain-distribution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
