---
title: "Meeting activity over a window"
method: GET
path: "/v1/governments/{id}/stats"
tags: ["Governments"]
---

# Meeting activity over a window

`GET /v1/governments/{id}/stats`

## Request

- Base URL: `https://api.openpublica.com`
- URL: `https://api.openpublica.com/v1/governments/{id}/stats`
- Auth: none declared

Use `all` as the id for corpus-wide stats.

## Path parameters

- `id` string, required

## Query parameters

- `days` integer

## Response `200`

Activity stats

- object
  - `data` GovernmentStats, required
    - `total_meetings` integer
    - `activity_by_day` object: Keyed by ISO date, on the meeting-date clock.
    - `categories` object[]
      - `name` string
      - `count` integer
  - `meta` object, required

## Other responses

- `400`: Malformed or invalid parameters.
- `404`: No such record.
- `429`: Per-IP rate limit exceeded.
- `500`: Internal server error.

---

[API](https://skmtc.dev/openpublica/apis/openpublica-api.md) · [All operations](https://skmtc.dev/openpublica/apis/openpublica-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpublica/apis/openpublica-api/revisions/91a0635e7686?raw)
