Skip to content

The API

Brandon edited this page Feb 26, 2021 · 3 revisions

Import the API with:

from search_that_hash import api

And then use it like:

hashes = ["5d41402abc4b2a76b9719d911017c592"]
x = api.return_as_fast_json(hashes)

You can also use fast mode for the API:

hashes = ["5d41402abc4b2a76b9719d911017c592"]
x = api.return_as_json(hashes)

We recommend fast mode for normal usage.

Fast vs Normal

  • Fast does not return hash types (but when it's used in the CLI it does). This is a feature that we're working on.

  • Normal searches every API and returns hash types.

  • Fast - Returns hash type and plaintext. The second an API returns True for the found hash, it stops all API calls and returns it (so it's physically fast)

  • Not-fast - Returns hash type and plaintext. Goes through every single API and returns the plaintext at the end, does not stop prematurely. This might be so the company can see if their API key is working for a server, or for people to test if their newly added API works :slight_smile:

Clone this wiki locally