Download blocklist content with cli

From the documentation you can download and subscribe to blocklist with commands eg GET -H “x-api-key: ${KEY}” ``https://admin.api.crowdsec.net/v1/blocklists/1234MYBLOCKLISTID/download but can’t find any information on where you can get the links for these lists? The links from Crowdsec Console (when you hover over a blocklist) is different.

Thanks in advance

The admin.api endpoints is via SAPI (so you need a enterprise account to generate a api key), you use the search or simply a GET /blocklists endpoint to get the ids for the lists

1 Like