CodePrints
Free REST API

Free QR Code API

Generate QR codes and barcodes programmatically with a single GET request. JSON response with base64 PNG. No signup for basic use.

Generate a QR Code in One Request

# Basic QR code (no auth required)
GET https://codeprints.site/api/free/qr
  ?data=https://yourdomain.com
  &size=300
  &format=png

# JSON Response
{
  "success": true,
  "image": "data:image/png;base64,...",
  "format": "png",
  "size": 300
}

Available Endpoints

GET/api/free/qr

Generate a QR code from any text, URL, or data string. Returns base64 PNG or SVG. No auth required.

GET/api/free/barcode

Generate standard barcodes (EAN-13, Code 128, UPC-A, Code 39, EAN-8). Returns base64 PNG. No auth required.

GET/api/v1/qr

Authenticated endpoint — higher rate limits, priority processing, and additional parameters. Requires an API key.

Pricing

Registered
$0 /month
With API Key
  • Higher rate limits
  • All free tier features
  • Request history
  • Dashboard analytics
  • Priority support
  • Authenticated endpoints
Get Free API Key

Query Parameters

Parameter Type Required Description
data string Required The content to encode (URL, text, phone number, etc.)
size integer Optional Output size in pixels (100–1000, default: 300)
format string Optional Output format: png or svg (default: png)
color string Optional Foreground color as hex without # (default: 000000)
bg string Optional Background color as hex without # (default: ffffff)

Ready to integrate the QR API?

Full documentation, examples in cURL, PHP, Python, and JavaScript.