Skip to main content

Server SDKs for v4 API coming soon

We are working on new major versions of all our SDKs. If you need to use this integration, please use the v3 API instead or generate your own from the Server API OpenAPI schema.

How to install

Add fingerprint_pro_server_api_sdk as a dependency to your application via pip from GitHub or PyPI.
Bash
pip install git+https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk.git
Bash
pip install fingerprint_pro_server_api_sdk
Initialize the client instance and use it to make API requests. You need to specify your secret API key and region (if it is not US/Global).
Python
import fingerprint_pro_server_api_sdk
from fingerprint_pro_server_api_sdk.rest import ApiException

configuration = fingerprint_pro_server_api_sdk.Configuration(
  api_key="<SECRET_API_KEY>",
  # region="eu"
)
api_instance = fingerprint_pro_server_api_sdk.FingerprintApi(configuration)

# Get visit history of a specific visitor
try:
    visits = api_instance.get_visits("<visitorId>", limit=10)
    print(visits)
except ApiException as e:
    print("Exception when getting visits: %s\n" % e)

# Get a specific identification event
try:
    event = api_instance.get_event("<requestId>")
    print(event)
except ApiException as e:
    print("Exception when getting an event: %s\n" % e)

Documentation

You can find the full documentation in the official GitHub repository.