List CrowdSec alerts, newest first
Returns one page of the LAPI's alert history, newest first, without the community blocklist pulls. Pass the nextCursor of one page as before to get the next, older one. An IP source without a country from the LAPI gets its place from GeoMetrikks' own traffic, then from the GeoIP database. Answers 403 when the server has no CrowdSec machine credentials, CROWDSEC_MACHINE_ID and CROWDSEC_MACHINE_PASSWORD.
session<token>Session cookie authentication.
limit?integerAlerts per page, from 1 to 500. Defaults to 50.
1 <= value <= 50050ip?|Keep only alerts that hold a decision covering this IP. The filter excludes alerts on this IP that have no decision. A value that is not an IP gets a 400.
scenario?array<string>|Keep only these scenarios, such as crowdsecurity/http-probing. Repeat the parameter for more than one, at most 5. With kind=bot it gets a 400.
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.
hasActiveDecision?|true keeps alerts with a decision still in force, and false keeps alerts that hold no decision, active or expired.
before?|The nextCursor of the previous page, to get the alerts older than it. A malformed cursor 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
One page of CrowdSec alerts, newest first.
alerts*array<>nextCursor*|Pass it as before to get the next, older page. Null on the last page.
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/alerts?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z'{ "alerts": [ { "activeDecisionCount": 0, "asName": "string", "countryCode": "string", "countryName": "string", "createdAt": "string", "decisionCount": 0, "decisionTypes": [ "string" ], "eventsCount": 0, "id": 0, "kind": "string", "machineId": "string", "message": "string", "scenario": "string", "scope": "string", "value": "string" } ], "nextCursor": "string"}List the login methods this server offers GET
Says whether password login is on and, when OIDC single sign-on is set up, gives the provider's name. It needs no credentials, so the login page can call it first. With APP_AUTH_DISABLED=true both are off.
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.