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

# Get automation stats detail

> Return statistics for a specific automation with each subscriber and their individual events.

<ParamField path="pipeline_id" type="integer" required>
  Automation ID.
</ParamField>

<ParamField query="event" type="string">
  Filter by event type. One of: `open`, `send`, `unsub`, `soft_bounce`, `click`, `hard_bounce`, `out_of_band`, `spam`.
</ParamField>

<ParamField query="email" type="string">
  Filter by subscriber email address.
</ParamField>

<ParamField query="from_date" type="string">
  Filter from date onwards in `YYYY-MM-DD` format (UTC).
</ParamField>

<ParamField query="per_page" type="integer">
  Number of results per page. Default is `100`, maximum is `5000`.
</ParamField>

<ParamField query="page" type="integer">
  Page number.
</ParamField>

The `total` field returns the total number of subscribers that entered the automation. The `open`, `click`, and `send` fields return unique counts.

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1" \
    -H "key: YOUR_API_KEY" \
    -H "Content-Type: application/json"
  ```

  ```php PHP theme={null}
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/pipelines/12345/stats-detail?per_page=100&page=1');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      'key: YOUR_API_KEY',
      'Content-Type: application/json',
  ]);
  $response = curl_exec($ch);
  curl_close($ch);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "next_page_url": "https://api2.ecomailapp.cz/pipelines/12345/stats-detail?page=2",
    "total": 2546,
    "per_page": 100,
    "subscribers": {
      "foo@bar.com": {
        "open": 2,
        "send": 3,
        "unsub": 0,
        "soft_bounce": 0,
        "click": 0,
        "hard_bounce": 0,
        "out_of_band": 0,
        "spam": 0
      }
    }
  }
  ```
</ResponseExample>
