Blog.

We're Here for You: Discover Our Useful Content!
2024-02-27
Web Categorization
How to Get Categorization of Domains Using Python?

Ponarize API offers a convenient solution for web categorization, making it easy for developers to classify and organize web content based on predefined categories. With Ponarize API, developers can integrate web categorization functionality into their applications, websites, or services with minimal effort.

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/domain"

    payload = "{\"domain\":\"plesk.com\"}\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": [
    {
      "domain": "plesk.com",
      "category": "Business",
      "category2": "Online Shopping",
      "category3": "Software/Hardware",
      "category4": "Internet Services",
      "category5": "-",
      "risk": "Minimal Risk",
      "domain_age": "1999-06-13T00",
      "domain_nameserver": ["gene.ns.cloudflare.com","jeff.ns.cloudflare.com"],
      "socialLinks": {
	  "linkedin": "https://www.linkedin.com/company/plesk",
	  "facebook": "https://www.facebook.com/Plesk",
	  "twitter": "https://twitter.com/Plesk",
	  "instagram": "null",
	  "youtube": "https://www.youtube.com/channel/UCeU-_6YHGQFcVSHLbEXLNlA"
      }
    }
  ]
 }
 

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.