The client library for Subdomains Lookup API in Python language.
The minimum Python version is 3.6.
pip install subdomains-lookup
Full API documentation available here
from subdomainslookup import *
client = Client('Your API key')
# Get categories for a domain name.
response = client.get('google.com')
for record in response.result.records:
print("Domain: " + record.domain)
Extra request parameters
# Get records count
print(response.result.count)
# Get raw API response in XML
xml_response = client.get_raw('google.com', output_format=Client.XML_FORMAT)
Response model overview
Response:
- search: str
- result: Result
- count: int
- records: [Record]
- domain: str
- first_seen: datetime.datetime
- last_seen: datetime.datetime