# Visibility

Returns a time series of an entity's appearance count across AI search engines. Use this to track visibility trends over days, weeks, months, or quarters.

## Request

```
GET /v1/visibility/appearance-over-time
```

### Query Parameters

All [common filters](/getting-started/filtering.md) are supported, plus:

| Parameter     | Type              | Required | Default     | Description                                                |
| ------------- | ----------------- | -------- | ----------- | ---------------------------------------------------------- |
| `entity`      | string            | **Yes**  | —           | Entity name to track (your brand or a competitor)          |
| `granularity` | string            | No       | Auto        | Time bucket size: `days`, `weeks`, `months`, or `quarters` |
| `dataPoints`  | integer           | No       | 5           | Number of time buckets to return                           |
| `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                                            |
| `countries`   | string\[]         | No       | All         | Filter by country code                                     |

## Response

### Success (200 OK)

```json
[
  {
    "bucketIndex": 0,
    "startDate": "2026-01-01T00:00:00Z",
    "endDate": "2026-01-31T23:59:59Z",
    "appearanceCount": 389,
    "totalCount": 598,
    "appearancePercentage": 65.1
  },
  {
    "bucketIndex": 1,
    "startDate": "2026-02-01T00:00:00Z",
    "endDate": "2026-02-28T23:59:59Z",
    "appearanceCount": 412,
    "totalCount": 610,
    "appearancePercentage": 67.5
  },
  {
    "bucketIndex": 2,
    "startDate": "2026-03-01T00:00:00Z",
    "endDate": "2026-03-31T23:59:59Z",
    "appearanceCount": 446,
    "totalCount": 617,
    "appearancePercentage": 72.3
  }
]
```

### Fields

| Field                  | Type              | Description                              |
| ---------------------- | ----------------- | ---------------------------------------- |
| `bucketIndex`          | integer           | Zero-based index of the time bucket      |
| `startDate`            | string (ISO 8601) | Start of this time bucket                |
| `endDate`              | string (ISO 8601) | End of this time bucket                  |
| `appearanceCount`      | integer           | Times the entity appeared in this period |
| `totalCount`           | integer           | Total prompts analyzed in this period    |
| `appearancePercentage` | number            | Appearance rate for this period          |

## Examples

### curl

```bash
curl "https://app.limy.ai/api/v1/visibility/appearance-over-time?\
entity=Acme&granularity=months&dataPoints=6" \
  -H "X-API-Key: YOUR_API_KEY"
```

### Python

```python
response = requests.get(
    f"https://app.limy.ai/api/v1/visibility/appearance-over-time",
    headers={"X-API-Key": API_KEY},
    params={
        "entity": "Acme",
        "granularity": "months",
        "dataPoints": 6
    }
)

for bucket in response.json():
    print(f"{bucket['startDate'][:7]}: {bucket['appearancePercentage']}%")
```

### JavaScript

```javascript
const params = new URLSearchParams({
  entity: 'Acme',
  granularity: 'months',
  dataPoints: '6',
});

const response = await fetch(
  `https://app.limy.ai/api/v1/visibility/appearance-over-time?${params}`,
  { headers: { 'X-API-Key': API_KEY } }
);

const timeSeries = await response.json();
timeSeries.forEach(b =>
  console.log(`${b.startDate.slice(0, 7)}: ${b.appearancePercentage}%`)
);
```


---

# 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/appearance-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.
