How do you create, change and track dynamic QR codes from code? These are small, working examples for the Linkbreakers QR code API, its SDKs (TypeScript, Python, Go, Java, Rust) and MCP server: bulk QR codes from a CSV, changing a printed code's destination, scan tracking by product and country, scans to Slack through a signed webhook, device routing and A/B tests. Each directory is one task, self-contained, with its own README, dependencies, .env.example and AGENTS.md. Every example is run against the live API before it is published.
| Task | Language | Directory |
|---|---|---|
| A/B test a QR code: a traffic split sends half the scans to page A and half to page B, keeps a returning visitor on the same page, then reads visitors per page and ends the test | Rust | ab-test-qr-code-traffic-split-rust |
| One QR code for an app download: App Store on iPhone, Google Play on Android, a web page on everything else | Python | app-download-qr-code-iphone-android-python |
| Change where a printed QR code goes: update the redirect step behind a dynamic QR code, then check the short link serves the new page | Go | change-qr-code-destination-after-printing-go |
| Bulk-create dynamic QR codes and short links from a CSV, then export scan counts to a CSV | Python | bulk-dynamic-qr-codes-from-csv-python |
| Bulk-create dynamic QR codes and short links from a CSV, then export scan counts to a CSV | TypeScript | bulk-dynamic-qr-codes-from-csv-typescript |
| Bulk-create dynamic QR codes and short links from a CSV, then export scan counts to a CSV | Go | bulk-dynamic-qr-codes-from-csv-go |
| QR code scans by product line and by country: tag each code with its product line, then read scans filtered by tag and country | Python | qr-code-scans-by-product-and-country-python |
| QR code scans to Slack in real time: a webhook receiver that verifies Linkbreakers' signature and posts each scan to a Slack channel | Java | qr-code-scans-to-slack-webhook-java |
| Retargeting pixels on every QR code and short link: set a Meta Pixel, Google tag, TikTok Pixel, LinkedIn Insight Tag or GTM container once, check which fire on a code | Python | retargeting-pixels-on-every-qr-code-python |
git clone https://github.com/linkbreakers-com/examples.git
cd examples/<directory>Then follow that directory's README. You need a workspace API token: create one, and read what tokens and scopes are.
TypeScript · Python · Go · Java · Rust · CLI · MCP server
MIT, see LICENSE.