With the Ponarize API, adding IP query capabilities to existing applications or services is effortless. It facilitates the retrieval of comprehensive data on the IP addresses being queried. This includes, but is not limited to, categorization information, ports attacked, and reputation scores.
import requests
url = "https://www.ponarize.com/api/check/ip"
payload = "{\"ip\":\"35.236.146.166\"}\n"
headers = {
'Accept': "application/json",
'Content-Type': "application/json",
'Authorization': "YOUR-API-KEY"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
{ "status": "success", "message": [ { "ip": "35.236.146.166", "range": "35.208.0.0\/12", "country": "United States", "countryCode": "US", "city": "Mountain View", "timezone": "America\/Los_Angeles", "reverse": "-", "lat": "37.42240", "lon": "-122.08421", "isp": "Google LLC", "org": "Google LLC", "asn": "396982", "asnName": "Google LLC", "netName": "-", "descr": "GOOGLE-CLOUD", "openPorts": ["-"], "risk": "100", "attacks": { "ports": {"21":"376"}, "hours": {"00:00":"25","01:00":"14"} } } ] }