Skip to Content
ReferenceAPI referenceCrowdSec

List the active decisions that cover one IP

GET
/api/v1/crowdsec/decisions/lookup

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.

Authorization

cookiesession<token>

Session cookie authentication.

Query Parameters

ip*string

The IP to look up. A value that is not an IP gets a 400.

Response Body

Request fulfilled, document follows

application/json
  1. response
[index: integer]?

One active CrowdSec decision.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/decisions/lookup?ip=string'
Example Response
[  {    "city": "string",    "countryCode": "string",    "countryName": "string",    "duration": "string",    "id": 0,    "ip": "string",    "origin": "string",    "requestCount24h": 0,    "scenario": "string",    "scope": "string",    "type": "string"  }]