Count the scenarios among recent CrowdSec alerts
Returns the scenarios among the newest 500 alerts that match since, or the fromTimestamp window, and kind, with how many of those alerts each one has, the most first. Scenarios with the same count sort by name. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.
session<token>Session cookie authentication.
since?|Keep only alerts that started within this long before now, as a Go duration of hours, minutes and seconds such as 24h or 1h30m.
kind?|Keep only alerts of one kind, crowdsec, waf, bot-detection, capi, papi or cscli. bot keeps everything the AppSec bot challenge produces. Needs CrowdSec 1.7 or newer, and an older LAPI gets a 400.
fromTimestamp?|Keep only alerts whose first event is at or after this instant, ISO 8601 (a value without a timezone counts as UTC). The LAPI keeps first events to the second, so a fraction of a second rounds down. Can't be combined with since.
toTimestamp?|Keep only alerts whose first event is before this instant; a fraction of a second rounds up. Needs fromTimestamp, and must be later than it.
Request fulfilled, document follows
application/json- response
[index: integer]?The number of decisions or alerts from one scenario.
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/alerts/scenarios?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z'[ { "count": 0, "scenario": "string" }]Count CrowdSec alerts per day GET
Returns how many alerts started on each of the last `days` days, today included, without the community blocklist pulls. An alert counts on the day of its first event, or of when the LAPI stored it when it has no first event. One LAPI request reads at most 2000 alerts. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.
Get one CrowdSec alert GET
Returns the alert with its context, the events the LAPI kept and its decisions, expired ones included. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.