AbuseIPDB API query with Powershell
#Powershell version $myparams = @{ ipAddress="xxx.xxx.xxx.xxx" maxAgeInDays="90" verbose="verbose" } $myheaders = @{ Key = "your API Key of AbuseIPDB" Accept="application/json" } $result = (Invoke-WebRequest -uri https://api.abuseipdb.com/api/v2/check -Method get -ContentType application/x-www-form-urlencode -Body $myparams -Headers $myheaders) $obj=(ConvertForm-Json $result) write-host "---------------------------------------------------------------" write-host "IP: " $obj.data.ipaddress write-host "Domain: "$obj.data.domain write-host "Country: "$obj.data.countryName write-host "ISP: "$obj.data.isp write-host "AbuseConfidenceScore: "$obj.data.abuseConfidenceScore"%" write-host "------------------------------------------------------------" #Curl version: Ex1. from AbuseIPDB document curl -G https://api.abuseipdb.com/api/v2/check \ --data-urlencode ...