Find WEB Contacts Faster: Python's Magic Touch.

Websites' contacts API use case.


Very often we as web developers we need to check Websites' contacts data for certain domain and there is a very useful online service for web developers and SEO professionals on "WhoisXML API" that provides Domain & IP Data Intelligence for Greater Enterprise Security and RESTful APIs that we will use.

Using it's APIs you can perform many handy data requests, for example you can Websites' contacts data for a certain website - don't forget to get your API KEY. You will obtain ready to use parsed contact information from 235+ million active domains without additional troubles of web scraping or doing manual research.

Website contacts via API.
Website contacts via API meme.

Python Knowledge Base: Make coding great again.
- Updated: 2024-11-20 by Andrey BRATUS, Senior Data Analyst.




    This Python script below will use information from "WhoisXML API" and provide you a result in a JSON format without the need to use a web browser.
    Getting websites' contact data can be easily automated now !



  1. Python code to get Website contacts data via API:


  2. 
    # Website Contacts API USE
    
    import requests
    
    
    website = 'python-code.pro'
    
    APIKEY ='at_ZUVkrukr4Uhhhsfq2j6dyv2VhFGWYV'
       
    contactsInfoURL = f'https://website-contacts.whoisxmlapi.com/api/v1?apiKey={APIKEY}&domainName={website}'
    
    r = requests.get(contactsInfoURL)
    
    contactsInfo = r.json()
    
    print(f'Contacts Info for {website} domain.\n')
    contactsInfo
    

  3. Website contacts data output:


  4. 
    Contacts Info for python-code.pro domain.
    
    {'companyNames': ['Handy KNOWLEDGEBASE - python-code.pro ✌️'],
     'countryCode': 'RU',
     'domainName': 'python-code.pro',
     'emails': [],
     'meta': {'description': 'Useful articles collection on Computer Science, Programming, Data Analysis, Data Science, Machine Learning and linguistics / language learning and fun.',
      'title': 'Handy KNOWLEDGEBASE - python-code.pro ✌️'},
     'phones': [],
     'postalAddresses': [],
     'socialLinks': {'facebook': 'https://www.facebook.com/groups/2386960441613723',
      'instagram': '',
      'linkedIn': '',
      'twitter': ''},
     'websiteResponded': True}
    




See also related topics: