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.
Python Knowledge Base: Make coding great again.
- Updated:
2024-12-20 by Andrey BRATUS, Senior Data Analyst.
Python code to get Brand alert using API:
Brand alert data output:
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 !
# 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": [
"python",
"pro"
],
"excludeSearchTerms": [
"porn"
]
}
BrandAlertURL = f'https://brand-alert.whoisxmlapi.com/api/v2'
r = requests.post(BrandAlertURL, data=json.dumps(payload))
BrandAlert = r.json()
print(f'Brand Alert info for specified conditions {payload} .\n')
BrandAlert
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': 'python-programming.yokohama',
'date': '2022-09-05',
'action': 'dropped'},
{'domainName': 'pythonprograming.net',
'date': '2022-09-06',
'action': 'updated'},
{'domainName': 'kursy-programmirovaniya-python.ru',
'date': '2022-09-06',
'action': 'added'},
{'domainName': 'pythoner.pro', 'date': '2022-09-06', 'action': 'discovered'},
{'domainName': 'pythondev.pro', 'date': '2022-09-08', 'action': 'added'},
{'domainName': 'pythonic.pro', 'date': '2022-09-09', 'action': 'updated'},
{'domainName': 'python-pro.cf', 'date': '2022-09-09', 'action': 'added'},
{'domainName': 'pythonprogrammerforhire.com',
'date': '2022-09-11',
'action': 'updated'}]}