Integrate QR code tracking, link management, and analytics into your Python applications. Ideal for data pipelines, backend services, and automation scripts.
Integrate Linkbreakers into your Python stack with type-safe, production-ready methods.
Every Linkbreakers dashboard feature is available through the SDK — links, workflows, QR codes, analytics, domains, and visitor tracking.
Generated from the OpenAPI specification with full type definitions, IDE autocomplete, and inline documentation.
Built-in error handling, retry logic support, and authentication management. Open source on GitHub with active maintenance.
Install the SDK, authenticate, and make your first API call.
pip install linkbreakers
from linkbreakers import Configuration, LinksApi
import os
config = Configuration(
access_token=os.environ['LINKBREAKERS_SECRET_KEY'],
host='https://api.linkbreakers.com'
)
api = LinksApi(config)
response = api.links_service_create(
create_link_request={
'destination': 'https://example.com',
'name': 'Campaign Link',
'tags': ['marketing'],
}
)
print(f"Short URL: {response.link.shortlink}")import csv
with open('products.csv') as f:
for row in csv.DictReader(f):
response = api.links_service_create(
create_link_request={
'destination': row['url'],
'name': row['product_name'],
'tags': ['product-catalog', row['category']],
}
)
print(f"{row['product_name']}: {response.link.shortlink}")from linkbreakers import MetricsApi, EventsApi
metrics_api = MetricsApi(config)
events_api = EventsApi(config)
metrics = metrics_api.metrics_service_get_workspace_metrics()
print(f"Total scans: {metrics.total_scans}")
print(f"Unique visitors: {metrics.unique_visitors}")What teams build with the Linkbreakers Python SDK.
FastAPI and Django backend integrations
Data pipelines with Pandas and Jupyter notebooks
Automation scripts for bulk link creation
The Python SDK is one of five official SDKs. Linkbreakers also offers an MCP server for AI assistants and a CLI for terminal workflows.
Sign up for Linkbreakers, create an API token, and start integrating in minutes.