Python Code: Your Brand's Secret Weapon for Alerts.

Brand alert API use case.

Very often for Webmasters or SEO professionals it is needed to check Brand uniqueness/health information for given keywords or even automate the process 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 get Brand alert by keywords - don't forget to get your API KEY. With one API call you will obtain ready to use parsed JSON file with a searches results across all recently registered & deleted domain names and returns result sets consisting of domain names that contain terms that are conditioned by you. In other words you will get Brand uniqueness/health information for your brand or domain name.

Brand alert.
Brand alert meme.

Coding: The Silent Symphony. - Updated: 2024-06-14 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 web a browser.
The process of getting Brand alert for specified keywords can be easily automated now !

Python code to get Brand alert using API:

# Brand Alert API USE

import requests
import json

payload = {
    "apiKey": "at_ZUVkrukr4Uhhhsfq2j6dyv2VhFGWYV",
    "sinceDate": "2022-09-01",
    "mode": "purchase",
    "withTypos": False,
    "responseFormat": "json",
    "punycode": True,
    "includeSearchTerms": [
    "excludeSearchTerms": [

BrandAlertURL = f''

r =, data=json.dumps(payload))

BrandAlert = r.json()

print(f'Brand Alert info for specified conditions {payload} .\n')

Brand alert data output:

Brand Alert info for specified conditions {'apiKey': 'at_ZUVkrukr4Uhhhsfq2j6dyv2VhFGWYV', 'sinceDate': '2022-09-01', 'mode': 'purchase', 'withTypos': False, 'responseFormat': 'json', 'punycode': True, 'includeSearchTerms': ['python', 'pro'], 'excludeSearchTerms': ['porn']} .

{'domainsCount': 8,
 'domainsList': [{'domainName': '',
   'date': '2022-09-05',
   'action': 'dropped'},
  {'domainName': '',
   'date': '2022-09-06',
   'action': 'updated'},
  {'domainName': '',
   'date': '2022-09-06',
   'action': 'added'},
  {'domainName': '', 'date': '2022-09-06', 'action': 'discovered'},
  {'domainName': '', 'date': '2022-09-08', 'action': 'added'},
  {'domainName': '', 'date': '2022-09-09', 'action': 'updated'},
  {'domainName': '', 'date': '2022-09-09', 'action': 'added'},
  {'domainName': '',
   'date': '2022-09-11',
   'action': 'updated'}]}

See also related topics: