List active CrowdSec decisions, one row per target
Returns the active decisions grouped by target, in the order the LAPI lists them, paged with currentPage and pageSize. total counts targets, not decisions. The country, city and 24-hour request count come from GeoMetrikks' own access logs of the last 30 days, and the GeoIP database fills in the place for an IP the logs do not locate.
session<token>Session cookie authentication.
currentPage?integerThe page to return, counted from 1. Defaults to 1.
1 <= value1pageSize?integerRows per page, from 1 to 500. Defaults to 10.
1 <= value <= 50010origins?|A comma-separated list of origins to keep, such as crowdsec,cscli,CAPI. Defaults to crowdsec,cscli,geometrikks, which leaves out the blocklists. An IP or CIDR in q ignores it.
q?|Search, up to 200 characters. An IP or CIDR matches decisions on addresses inside it and ranges that hold it, across every origin. Other text matches the start of the target or any part of a scenario name, ignoring case.
length <= 200Request fulfilled, document follows
application/json- response
One page of results. total counts the matches on every page, limit is the page size and offset is how many matches come before this page.
items?array<>limit?integerMaximal number of items to send.
offset?integerOffset from the beginning of the query.
total?integerTotal number of items.
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/decisions'{ "items": [ { "city": "string", "countryCode": "string", "countryName": "string", "decisionCount": 0, "decisions": [ { "duration": "string", "id": 0, "origin": "string", "scenario": "string", "type": "string" } ], "duration": "string", "ip": "string", "origins": [ "string" ], "requestCount24h": 0, "scope": "string", "type": "string" } ], "limit": 0, "offset": 0, "total": 0}List every range under an active decision GET
Returns each CIDR that holds a Range decision from any origin, once, with the strongest decision type on it and when that decision ends. GeoMetrikks bans a single-address DROP network with an `Ip` decision, so that network shows as its /32 or /128 while the decision lasts.
List the active decisions that cover one IP GET
Returns every active decision on the IP, from any origin, including Range decisions that hold it. This endpoint does not look up places, so the country and city fields are null and `requestCount24h` is 0 on `Ip` decisions.