---
title: "Resolve active generators/consumers for a date range (#285)"
method: GET
path: "/api/energy-sharing-community/communities/:id/active-members"
tags: ["Energy Sharing Community"]
---

# Resolve active generators/consumers for a date range (#285)

`GET /api/energy-sharing-community/communities/:id/active-members`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/energy-sharing-community/communities/:id/active-members`
- Auth: none declared

A member is active for [dateFrom, dateTo] if their [validFrom, validTo] Teilnahmezeitraum overlaps it. Members whose validTo is before dateFrom are excluded — no manual filtering needed by the caller. No prorating of sharePercent for partial-period membership.

## Path parameters

- `id` string, required

## Query parameters

- `dateFrom` string, required
- `dateTo` string, required
- `token` string

## Response `200`

Active generators/consumers for the period

## Other responses

- `404`: Community not found

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
