Skip to content

Python

FalconPy is the CrowdStrike Falcon SDK for Python. It abstracts all Falcon OAuth2 API interactions, handles token management automatically, and provides two approaches for working with the API: Service Classes (one per API collection) and the Uber Class (a single interface to every operation).

FalconPy supports Python 3.8 through 3.13 on macOS, Windows, and Linux.

View on GitHub
Terminal window
pip install crowdstrike-falconpy
from falconpy import Hosts
# Automatically retrieve FALCON_CLIENT_ID and FALCON_CLIENT_SECRET
# using Environment Authentication
hosts = Hosts()
result = hosts.query_devices_by_filter(filter="hostname:*'search-term*'")
print(result)