---
title: "Get Activities Statistic"
method: GET
path: "/v1/accounts/{account_id}/environments/{environment_id}/activities_statistics"
tags: ["Activities"]
---

# Get Activities Statistic

`GET /v1/accounts/{account_id}/environments/{environment_id}/activities_statistics`

**Authorization scope:** `activity:list` 
 
 **Get environment's activity statistics.**
****
**The statistics include how many units(RPU) were consumed, and how**
**many runs ended with each status.**

## Path parameters

- `account_id` string, required
- `environment_id` string, required

## Query parameters

- `start_time` string, date-time, required — The start UTC date time. Time format YYYY-MM-DDTHH:MM:SS or YYYY-MM-DDTHH:MM:SS.mmmmmm
- `end_time` string, date-time, required — The end UTC date time. Time format YYYY-MM-DDTHH:MM:SS or YYYY-MM-DDTHH:MM:SS.mmmmmm
- `status` ActivityStatusEnum[], nullable — A list of statuses to filter
- `group_id` string[], nullable — The ID of the group to filter
- `is_scheduled` 'true' | 'false' — Schedule can be either True or False (enabled or disabled)
- `search` string — Get statistics for rivers that has the search query in their name
- `river_type` union[], nullable — The river type
  - union
    - 'src_to_trgt' | 'src_to_fz' | 'actions' | 'logic' — All of the INTERNAL river types Customers only familiar with river_type src_to_trgt, actions and logic. Internally we have another river type called src_to_fz.
    - 'source_to_target' | 'actions' | 'logic' | 'connector_executor' — All of the EXTERNAL river types

## Response `200`

Successful Response

- ActivityStatisticResponse — Activity statistics response
  - `account_id` string, required
  - `environment_id` string, required
  - `total_units` number, required — Total RPU (units)
  - `total_rpu` number, required — Total RPU
  - `running` integer, required
  - `canceled` integer, required
  - `pending` integer, required
  - `failed` integer, required
  - `succeeded` integer, required
  - `skipped` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/rivery/apis/boomi-data-integration-api.md) · [All operations](https://skmtc.net/rivery/apis/boomi-data-integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rivery/boomi-data-integration-api/revisions/cd4c91e0e6c2/schema)
