Skip to main content

LeakCheck API SDK

Project description

LeakCheck API SDK

Dependencies:

  • Python >= 3.5
  • requests >= 2.23.0
  • pysocks >= 1.7.1
  • json >= 2.0.9
  • setuptools >= 46.1.3
  • wheel >= 0.34.2

Installation:

pip3 install leakcheck

Or download tarball / git clone and execute

python3 setup.py install

Using:

To start working with this package you need to obtain personal API key from here and link IP address of your server or personal computer. It can be IPv6 as well as IPv4.

Using mirror or proxy:

# Using proxy if it's required due to various reasons
api.set_proxy("socks5://127.0.0.1:8123")

# Using leakcheck.io mirror instead of leakcheck.net if it's banned in your country or you're expecting difficulties with connection
api.use_mirror()

Getting your IP:

from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

ip = api.getIP() # string

Getting your limits:

from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

limits = api.getLimits() # dict

Making requests:

from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

# API key setting
api.set_key("YOUR_KEY")

# Type setting
# Can be used with these values: auto, email, mass, login, phone, mc, pass_email, domain_email, pass_login, pass_phone, pass_mc, hash
api.set_type("email")

# Search setting
api.set_query("leakcheck@aol.com")

# Query prepared. Now we're ready to make our first request
result = api.lookup() # list

Response errors:

Error Description
Missing params (key, check, type) Some params haven't passed in the request
Invalid type Type you provide is invalid
API Key is wrong Key you provide is invalid
API Key is blocked Your key is blocked due to some reasons, contact support
No license on this key Key you provide does not have a license
Your query contains invalid characters There are some forbidden characters in your query
Enter at least 3 characters to search Query passed without minimal number of characters
Invalid email E-mail type is specified, but your query is not a mail
IP linking is required IPs are not linked or invalid
Not found There are no results
Too many entries, try to concretize your query You made a search that contains too many entries, try to search "alex@" instead of "alex" (for example)

Server Errors:

Error Description Resolution
429 Too Many Requests Your server is sending too many automated requests. API is limited by 3 requests/second per one IP. Try to reduce amount of sendings.

Source code, issues, TODOs

Available on GitHub

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

leakcheck-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

leakcheck-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file leakcheck-0.1.2.tar.gz.

File metadata

  • Download URL: leakcheck-0.1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.3

File hashes

Hashes for leakcheck-0.1.2.tar.gz
Algorithm Hash digest
SHA256 784ab95f9f03e7543669a779a14ed144016ee164992b3c08a8d90d83e3153d8e
MD5 a69a838e551caa96ba16ec14d61e0bd1
BLAKE2b-256 43e9099afb38aa8d1e96d3a27f0ed7301a7d1759b0ed57c4adb7638309a7e685

See more details on using hashes here.

File details

Details for the file leakcheck-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: leakcheck-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.3

File hashes

Hashes for leakcheck-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1ac3ee7c120d200a3ad9c6915a159deff98356d5e5f8d6b1b00661b4a0a6217
MD5 ae7d34ab92159bddec4fc52ad2bcd335
BLAKE2b-256 da9b65251cf0e15ec1f4c0a4640eea002b8107d11ed57d5143f2a5fb8cafc5e2

See more details on using hashes here.

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