# Citation Share Over Time

Returns a time series of citation share for a specific domain or URL, showing how often it appears as a source in AI responses over time.

## Request

```
GET /v1/citations/share-over-time
```

### 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                              |
| ------------- | ------------------- | -------- | ----------- | ---------------------------------------- |
| `domain`      | string              | No       | —           | Filter to a specific domain              |
| `urls`        | string or string\[] | No       | —           | Filter to specific URLs                  |
| `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                          |
| `entityScope` | string              | No       | `MY_BRAND`  | `MY_BRAND`, `INDUSTRY`, or `COMPETITORS` |

## Response

### Success (200 OK)

```json
{
  "success": true,
  "data": [
    {
      "startDate": "2026-01-01",
      "endDate": "2026-01-31",
      "appearanceCount": 34,
      "totalAppearances": 245,
      "percentage": 13.88,
      "promptCount": 89,
      "url": "https://acme.com/products/automation",
      "providers": ["OPENAI", "GEMINI"],
      "promptIds": ["550e8400-...", "661f9511-..."]
    },
    {
      "startDate": "2026-02-01",
      "endDate": "2026-02-28",
      "appearanceCount": 41,
      "totalAppearances": 267,
      "percentage": 15.36,
      "promptCount": 102,
      "url": "https://acme.com/products/automation",
      "providers": ["OPENAI", "GEMINI", "PERPLEXITY"],
      "promptIds": ["550e8400-...", "772a0622-..."]
    }
  ]
}
```

### Fields

| Field              | Type      | Description                                         |
| ------------------ | --------- | --------------------------------------------------- |
| `startDate`        | string    | Start of time bucket                                |
| `endDate`          | string    | End of time bucket                                  |
| `appearanceCount`  | integer   | Times this URL/domain was cited in this period      |
| `totalAppearances` | integer   | Total citations across all sources in this period   |
| `percentage`       | number    | Citation share percentage                           |
| `promptCount`      | integer   | Number of unique prompts where this source appeared |
| `url`              | string    | The specific URL (when filtering by URL)            |
| `providers`        | string\[] | Which providers cited this source                   |
| `promptIds`        | string\[] | IDs of prompts where this source appeared           |

## Examples

### curl

```bash
curl "https://app.limy.ai/api/v1/citations/share-over-time?\
domain=acme.com&startDate=2026-01-01&endDate=2026-06-30" \
  -H "X-API-Key: YOUR_API_KEY"
```

### Python

```python
response = requests.get(
    f"https://app.limy.ai/api/v1/citations/share-over-time",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "acme.com",
        "startDate": "2026-01-01",
        "endDate": "2026-06-30"
    }
)

for period in response.json()['data']:
    print(f"{period['startDate']}: {period['percentage']}% share ({period['appearanceCount']} citations)")
```

### JavaScript

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

const { data } = await response.json();
data.forEach(p =>
  console.log(`${p.startDate}: ${p.percentage}% share`)
);
```


---

# 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/share-over-time.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.
