Skip to main content

Python wrapper around the Security Trails API

Project description


Python3 wrapper for the Security Trails API


You can install it directly from the pypi package : pip install pysecuritytrails

You can also install the last version of the source code:

git clone
cd pysecuritytrails
pip install .


from pysecuritytrails import SecurityTrails, SecurityTrailsError
st = SecurityTrails('APIKEYHERE')

# Check that it is working
except SecurityTrailsError:
    print('Ping failed')

infos = st.domain_info('')
subdomains = st.domain_subdomains('')
tags = st.domain_tags('')
whois = st.domain_whois('')
history_dns = st.domain_history_dns('')
history_whois = st.domain_history_whois('')

For more information on the API, check

List of Functions Implemented


This code is licensed under GPLv3

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysecuritytrails-0.1.3.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

pysecuritytrails-0.1.3-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page