Blog.

We're Here for You: Discover Our Useful Content!
2024-02-26
IP Score
How to Get Reputation Scoring of IPs Using Python?

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.

Let's see how it functions


1- Visit https://www.ponarize.com first.

2- Finish the SIGN UP procedure by clicking the "GET API KEY" button.

3- Get an API key with your free 100 credits.

4- The integration can now begin. Scroll down to the "API Keys" section in the Dashboard.

5- Click the Generate button and get your API key.

6- After selecting the endpoint, you can review the Sample Code Snippets to integrate the API with PHP, Python, JavaScript, jQuery, AJAX, etc. In this article we will focus on Python.

API response in Python:


    
    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)
    
    


Let's look at an example will receive from the API:


 {
  "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"}
      }
    }
  ]
 }
 

For any questions, you can contact support through the chat feature at https://www.ponarize, or send an email to [email protected] with your inquiry!

Ready to use Ponarize?
Get Free 100 Credits Monthly
Try first, decide later! Get started with a free plan. You can cancel at any time.
Start Free Trial
Logo
Ponarize offers an online tool that allows you to check whether a URL & IP address categorization and reputation scoring solution is classified in our Databases. Our goal is to offer you this service at the most affordable prices. We are happy to help you and enjoy working tog.
©2024 Ponarize | All rights reserved.