---
title: "Retrieves the usage statistics of a rule."
method: GET
path: "/rules/{id}/statistics"
tags: ["Rule"]
---

# Retrieves the usage statistics of a rule.

`GET /rules/{id}/statistics`

Retrieves the usage statistics of a rule for a given time range. The statistics are grouped by a smart interval (min. 1 hour) that tries to return around 100 data points.
The time range can be defined using the `start` and `end` query string parameters. If no time range is defined, the statistics from the rule creation date will be returned.

## Path parameters

- `id` string, required

## Query parameters

- `projectId` string, required
- `start` string
- `end` string

## Response `200`

RuleStatistic collection

- RuleStatisticReadJson[]
  - `count` integer
  - `date` string, date-time

## Other responses

- `403` — Forbidden

---

[API](https://skmtc.net/redirection/apis/redirection-io.md) · [All operations](https://skmtc.net/redirection/apis/redirection-io/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/redirection/redirection-io/versions/50d19e1f364a/schema)
