---
title: "rgm_stats"
method: GET
path: "/api/v4/systems/{system_id}/rgm_stats"
tags: ["Site Level Production Monitoring"]
---

# rgm_stats

`GET /api/v4/systems/{system_id}/rgm_stats`

## Request

- Base URL: `https://api-qa2.enphaseenergy.com`
- URL: `https://api-qa2.enphaseenergy.com/api/v4/systems/{system_id}/rgm_stats`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enphase/apis/monitoring-api/docs/api/v4/systems/:system_id/rgm_stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns performance statistics as measured by the revenue-grade meters installed on the specified system. If the total duration requested is more than one week, returns one week of intervals. Intervals are 15 minutes in length and start at the top of the hour.
 Requests for times that do not fall on the 15-minute marks are rounded down. For example, a request for 08:01, 08:08, 08:11, or 08:14 (in epoch format) is treated as a request for 08:00 (in epoch format). Intervals are listed by their end times in epoch format.
 The requested date range in one API hit cannot be more than 7 days and the requested start at must be within 2 years from current time. If you request a start date earlier than when the system first reported data, we use midnight of the first reported date instead. The first reported date is the later of the system’s First Interval End Date or Interconnection Date. Empty list will be returned if the last interval < requested start time < current time.

## Path parameters

- `system_id` integer, required

## Query parameters

- `start_at` integer
- `end_at` integer

## Response `200`

rgm_stats

- object
  - `system_id` integer: System id
  - `total_devices` integer: Number of active production meters for this system.
  - `meta` object: Information about the system such as its status, when it became operational and last reported to Envoy.
    - `status` string: System's status. Corresponding Enlighten values can be found in table added at the end of page.
    - `last_report_at` integer: Timestamp (in epoch format) at which the system's Envoy last submitted a report
    - `last_energy_at` integer: Timestamp (in epoch format) at which the systems's produced energy was last reported. Even if the last produced energy is 0, its timestamp will be returned.
    - `operational_at` integer: Timestamp (in epoch format) at which this system became operational. Corresponds to the system’s interconnect time, if one is specified. Otherwise, it is the system’s first reported interval end time.
  - `intervals` object[]: A list of intervals between the requested start and end times.
    - `end_at` integer: End time of the telemetry interval.
    - `devices_reporting` integer: Number of production meters that reported data for this interval at the time of the request.
    - `wh_del` integer: Energy delivered during this interval, in Wh.
  - `meter_intervals` object[]: A list of intervals of a meter between the requested start and end times.
    - `meter_serial_number` string: Meter serial number
    - `envoy_serial_number` string: Enovy serial number of the system that the meter reports to
    - `intervals` object[]: Individual meter level interval.
      - `channel` integer: The reporting channel id
      - `end_at` integer: End time of the telemetry interval.
      - `wh_del` integer: Energy delivered during this interval, in Wh (Watt-Hour).
      - `curr_w` integer: Power delivered during this interval, in W (Watts).

## Other responses

- `401`: Authentication Error
- `403`: Forbidden
- `404`: Not Found
- `405`: Method Not Allowed
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Under some conditions, data for a given period may be temporarily unavailable. When this condition is detected, the response code is 500 and the response body is:
- `501`: Not Implemented

---

[API](https://skmtc.dev/enphase/apis/monitoring-api.md) - [All operations](https://skmtc.dev/enphase/apis/monitoring-api/llms.txt) - [OpenAPI document](https://skmtc.dev/enphase/apis/monitoring-api/revisions/a783ff728669?raw)
