Skip to Content
ReferenceAPI referenceCrowdSec

List the traffic from DROP networks, with their bans

GET
/api/v1/crowdsec/drop-networks

Returns each Spamhaus DROP network that sent requests in the window, busiest first, with the Range decision on it. The totals cover every network with traffic, not only the page. A client inside nested networks counts under the narrowest one. When the LAPI does not answer, you still get the traffic, with every decision null and decisionsAvailable false.

Authorization

cookiesession<token>

Session cookie authentication.

Query Parameters

days?integer

The window in days, ending now. 7, 30 or 90. Defaults to 30.

Default30
Value in73090
page?integer

The page to return, counted from 1. Defaults to 1.

Range1 <= value
Default1
pageSize?integer

Networks per page, from 1 to 100. Defaults to 25.

Range1 <= value <= 100
Default25

Response Body

Request fulfilled, document follows

application/json
  1. response

One page of DROP networks with traffic, with totals over every network.

bannedNetworks*integer

Networks with traffic that hold an active decision. 0 when the LAPI did not answer.

days*integer

The window in days, as requested.

decisionsAvailable*boolean

False when the LAPI did not answer. Every decision is null then.

items*array<>

The most requests first.

loaded*boolean

False until GeoMetrikks downloads a DROP network list, and always with DROP_ENABLED=false. Every count is 0 and items is empty then.

totalHits*integer

Requests from those networks.

totalIps*integer

Distinct client IPs in those networks.

totalNetworks*integer

DROP networks with traffic in the window.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/crowdsec/drop-networks'
Example Response
{  "bannedNetworks": 0,  "days": 0,  "decisionsAvailable": true,  "items": [    {      "asOrg": "string",      "asn": 0,      "cidr": "string",      "decision": {        "expiresAt": "2019-08-24T14:15:22Z",        "type": "string",        "value": "string"      },      "hits": 0,      "ips": 0,      "lastSeen": "2019-08-24T14:15:22Z",      "sblId": "string"    }  ],  "loaded": true,  "totalHits": 0,  "totalIps": 0,  "totalNetworks": 0}