Skip to Content
ReferenceAPI referenceCrowdSec

Count the active CrowdSec decisions by origin and scenario

GET
/api/v1/crowdsec/stats

Returns how many decisions are active across every origin, blocklists included, with the count per origin and the ten scenarios with the most decisions.

Authorization

cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response

Counts of the active CrowdSec decisions across every origin.

byOrigin*array<>

Every origin, the most decisions first.

topScenarios*array<>

The ten scenarios with the most decisions, the most first.

total*integer
Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/stats'
Example Response200
{  "byOrigin": [    {      "count": 0,      "origin": "string"    }  ],  "topScenarios": [    {      "count": 0,      "scenario": "string"    }  ],  "total": 0}