# meta_get_dataset_stats

> Read the event volume a pixel received, aggregated by event, device type, browser, host, URL, match keys, detection method or event source (browser…

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads)

Read the event volume a pixel received, aggregated by event, device type, browser, host, URL, match keys, detection method or event source (browser or server), over a recent window.

|  |  |
| --- | --- |
| Source | [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads) |
| Kind | Read |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `adAccountId` |
| Endpoint | https://mcp.getmcpads.com/meta-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `adAccountId` | string | Required | Owning advertising account ID. Use the exact ID returned by account discovery; do not substitute a campaign or business ID. |
| `pixelId` | string | Required | Pixel (dataset) ID connected to the ad account or owned by its Business. |
| `aggregation` | string | Optional | Default event. One of: `event`, `device_type`, `device_os`, `browser_type`, `host`, `url`, `match_keys`, `had_pii`, `pixel_fire`, `event_detection_method`, `event_source`, `custom_data_field`, `event_total_counts`. |
| `startTime` | string | Optional | Beginning of the reporting period as an ISO 8601 timestamp with an explicit timezone. |
| `endTime` | string | Optional | End of the reporting period as an ISO 8601 timestamp with an explicit timezone, after startTime. |
| `eventSource` | string | Optional | Browser pixel events only, or Conversions API events only. Default both. One of: `WEB_ONLY`, `SERVER_ONLY`. |
| `event` | string | Optional | Event name, required with custom_data_field. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "meta_get_dataset_stats",
    "args": {
      "adAccountId": "<string>",
      "pixelId": "<string>"
    }
  }
}
```

- [Meta Ads metrics](https://www.getmcpads.com/docs/sources/meta-ads/metrics): What you can ask for.
- [Meta Ads dimensions](https://www.getmcpads.com/docs/sources/meta-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/meta-ads/tools/meta_get_dataset_stats
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
