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

# Get Pixel Stats

> Snap Pixel diagnostics: which domains fired the pixel in the past 7 days, or the event breakdown for one domain

Snap Pixel diagnostics: which domains fired the pixel in the past 7 days, or the event breakdown for one domain. Use it to verify a pixel is firing.

|                      |                                |
| -------------------- | ------------------------------ |
| **App**              | Snapchat Ads                   |
| **Operation ID**     | `snapchat_ads_get_pixel_stats` |
| **Type**             | Action                         |
| **Connection**       | `snapchat_ads` (required)      |
| **Credits per run**  | 1                              |
| **Agent / MCP tool** | Yes                            |

## Inputs

| Field         | Type                       | Required | Default                            | Description                                                                                                                                                                                                                                                               |
| ------------- | -------------------------- | -------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`     | DynamicAccount             | Yes      | -                                  | Select the Snapchat Ads account that owns the pixel.                                                                                                                                                                                                                      |
| `pixel_id`    | string or SelectItem       | Yes      | -                                  | Snap Pixel ID to get stats for.                                                                                                                                                                                                                                           |
| `domain`      | string                     | No       | -                                  | Optional domain name. When omitted, returns the domains that fired the pixel in the past 7 days with their event totals. When provided, returns the event timeseries for that domain (event type, OS, and browser breakdowns). Snapchat only keeps 7 days of pixel stats. |
| `granularity` | string or SelectableOption | No       | `{'value': 'DAY', 'label': 'Day'}` | Domain stats only: DAY (default) or HOUR.                                                                                                                                                                                                                                 |
| `start_time`  | integer or string          | No       | -                                  | Domain stats only: start as a Unix timestamp or ISO datetime string. Defaults to 7 days ago (the maximum lookback).                                                                                                                                                       |
| `end_time`    | integer or string          | No       | -                                  | Domain stats only: end as a Unix timestamp or ISO datetime string. Defaults to now.                                                                                                                                                                                       |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `Dict`

Returns pixel domain totals or the per-domain event timeseries.

**Fields**: dynamic (depend on the inputs)
