QR Code & Barcode Generator API
Generate QR codes (URL, Wi-Fi, vCard, email, SMS, event…) and 30 barcode types (Code128, EAN-13, UPC, DataMatrix, PDF417…) as PNG or SVG.
Get a free API key on RapidAPI Try it in the playgroundQR Code & Barcode Generator API
Fast QR code and barcode images, PNG or SVG, ready to drop into an <img> tag.
🔳 QR Codes
Text and URLs, plus smart payloads: Wi-Fi login, vCard contact, email, SMS, phone, geo location and calendar event. Error correction L/M/Q/H and custom colors, size and margin.
📊 Barcodes
30 symbologies: Code 128, Code 39/93, EAN-13/8, UPC-A/E, ISBN, ITF-14, GS1-128, Codabar, MSI, POSTNET, USPS IMb, DataBar, DataMatrix, PDF417, Aztec, MaxiCode and Micro QR, with human-readable text.
Why developers pick it
- ⚡ Generated in milliseconds on a global edge network
- 🎨 Colors, sizes, rotation, margins
- ✅ Input validation with clear errors (check digits, lengths)
Use cases: product labels · inventory · shipping · tickets · payments · Wi-Fi sharing · marketing
Keywords: qr code api, qr code generator api, barcode api, barcode generator, ean13 api, code128, datamatrix, pdf417, wifi qr code, vcard qr code
Endpoints (3)
| Endpoint | What it returns |
|---|---|
GET/qr | Generate QR code QR codes for text/URLs and smart payloads: Wi-Fi login, vCard contact, email, SMS, phone, geo location, calendar event. Error correction L/M/Q/H, custom colors, size, margin; PNG or SVG. |
GET/barcode | Generate barcode 30 symbologies: Code 128, Code 39/93, EAN-13/8, UPC-A/E, ISBN, ISSN, ITF-14, GS1-128, Codabar, MSI, Pharmacode, POSTNET, Royal Mail, USPS IMb, DataBar, DataMatrix, GS1 DataMatrix, PDF417, Aztec, MaxiCode, Micro QR. Human |
GET/types | Supported types QR payload types and barcode symbologies. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /qr:
curl --request GET \
--url 'https://qr-code-barcode-generator-api.p.rapidapi.com/qr?type=text&data=https%3A%2F%2Frapidapi.com&ecc=M&encryption=WPA&format=png&size=400&color=000000&background=ffffff&margin=4' \
--header 'x-rapidapi-host: qr-code-barcode-generator-api.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://qr-code-barcode-generator-api.p.rapidapi.com/qr?type=text&data=https%3A%2F%2Frapidapi.com&ecc=M&encryption=WPA&format=png&size=400&color=000000&background=ffffff&margin=4"
headers = {
"x-rapidapi-host": "qr-code-barcode-generator-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://qr-code-barcode-generator-api.p.rapidapi.com/qr?type=text&data=https%3A%2F%2Frapidapi.com&ecc=M&encryption=WPA&format=png&size=400&color=000000&background=ffffff&margin=4", {
method: "GET",
headers: {
"x-rapidapi-host": "qr-code-barcode-generator-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Domain & IP Lookup API
WHOIS/RDAP, domain availability, DNS records, SSL certificates, subdomain finder, IP geolocation with ASN & abuse contacts, ASN lookup.
ToolsFake Data Generator API - Mock & Test Data
Generate realistic fake data for testing: persons, addresses, companies, products, cards & IBANs, internet data, lorem ipsum, custom schemas, CSV.
ToolsPackage Registry API - npm, PyPI, crates, gems
One API for npm, PyPI, crates.io & RubyGems: package details, versions, dependencies, download stats, search, comparison and security advisories.
ToolsPassword Security API - Breach & Strength
Check if a password was leaked in data breaches (900M+ pwned passwords), score its strength, generate secure passwords & passphrases, hash text.
ToolsURL Shortener & Link Analytics API
Short links with custom aliases, expiry & click limits, full click analytics (countries, referrers, devices), bulk shortening, link expander and malware screeni
ToolsWorld Time & Timezone API
Current time in any timezone or city, timezone conversion, DST transitions, time difference, meeting planner and business-day calculator.