QR & Barcode Toolkit¶
Create and decode QR codes and barcodes with one API. Generate PNG or SVG output, style QR modules and colors, embed logos, bulk-create up to 20 symbols per request, and decode from either base64 images or remote URLs.
Base URL¶
https://barcode.toolkitapi.io/v1/
Endpoints¶
QR Codes¶
| Method | Endpoint | Description |
|---|---|---|
POST |
/v1/qr/generate |
Generate a styled QR code as base64 PNG or SVG markup |
GET |
/v1/qr/generate |
Generate and stream a raw QR image (PNG or SVG) |
POST |
/v1/qr/decode |
Decode QR codes and barcodes from an image |
POST |
/v1/qr/bulk |
Bulk-generate up to 20 QR codes |
Barcodes¶
| Method | Endpoint | Description |
|---|---|---|
POST |
/v1/barcode/generate |
Generate a barcode as base64 PNG or SVG markup |
GET |
/v1/barcode/generate |
Generate and stream a raw barcode image (PNG or SVG) |
POST |
/v1/barcode/decode |
Decode barcodes and QR codes from an image |
POST |
/v1/barcode/bulk |
Bulk-generate up to 20 barcodes (PNG) |
GET |
/v1/barcode/types |
List supported barcode symbologies and constraints |
Quick SDK Example¶
from toolkitapi import Barcode
bc = Barcode(api_key="tk_...")
qr = bc.qr_generate(
data="https://toolkitapi.io/docs",
format="png",
size=500,
module_shape="rounded",
)
ean = bc.generate(
data="5901234123457",
barcode_type="ean13",
format="png",
)
print(qr["format"], ean["barcode_type"])
Python SDK¶
Install and use the dedicated Barcode client:
pip install toolkitapi
from toolkitapi import Barcode
bc = Barcode(api_key="tk_...")
result = bc.types()
print(result["total"])
See drilldowns for endpoint-specific request/response fields and copy-paste examples.
Tip
Use the GET /v1/qr/generate and GET /v1/barcode/generate variants when you want raw bytes directly for image tags, downloads, or file writes, and use the POST variants when you need JSON-wrapped responses.