the command i was given to get output with IPs and other data:

curl -G https://www.abuseipdb.com/api/v****/blacklist \
-d countMinimum=15 \
-d maxAgeInDays=60 \
-d confidenceMinimum=90 \
-d key=MyKeyHere \
-H "Accept: application/json" > abuseipdb
It would create abuseipdb file with something like:
...nceScore":100},{"ipAddress":"","to talReports":17,"abuseConfidenceScore":100},{"ipAdd ress":"","totalReports":17,"abuseCon fidenceScore":100},{"ipAddre...

So it contains How to extract only IPs, prefferably without saving whole output to a file first, but saving only IP list into file?

SOLUTION: replace:
> abuseipdb

| grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" > abuseipdb