> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fingerprint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Python Server SDK

> [Fingerprint Server Python SDK](https://github.com/fingerprintjs/python-sdk/tree/api-v3) is an easy way to interact with our Server API from your Python application. You can retrieve visitor history or individual identification events. View our [Python Server SDK quickstart](/docs/v3/python-server-quickstart) for a step-by-step guide to get started.

export const DeprecatedVersion = ({currentPath}) => <Warning>
    This version is deprecated. See the{" "}
    <a href="/reference/api-deprecation-policy">deprecation policy</a> and use
    the <a href={currentPath}>current version</a> instead.
  </Warning>;

<DeprecatedVersion currentPath="/reference/python-server-sdk" />

### How to install

Add `fingerprint_pro_server_api_sdk` as a dependency to your application via `pip` from GitHub or PyPI.

```bash Bash theme={"theme":"github-dark-dimmed"}
pip install git+https://github.com/fingerprintjs/python-sdk.git@api-v3
```

```bash Bash theme={"theme":"github-dark-dimmed"}
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 Python theme={"theme":"github-dark-dimmed"}
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("VISITOR_ID", 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("REQUEST_ID")
    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](https://github.com/fingerprintjs/python-sdk/tree/api-v3).
