QRGen API

Integrate QR code generator into your application

Get Started

Powerful API Platform

Fast Generation

Generate thousands of QR codes in seconds

99.9% Uptime

Reliable infrastructure with guaranteed availability

Flexible

Support for all QR code types and formats

Secure

HTTPS encryption and API keys for authentication

Simple Pricing

Choose a plan that fits your needs

Starter

€15.20 /month
(VAT free)
  • 1,000 API calls per month
  • All QR code types
  • PNG and SVG format
  • Email support
Choose Plan
Most Popular

Professional

€39.20 /month
(VAT free)
  • 10,000 API calls per month
  • Priority support
  • Bulk generation
  • Webhook integration
Choose Plan

Enterprise

Custom
  • Unlimited API calls
  • Dedicated support
  • SLA guarantee
  • Custom integrations
Choose Plan

API Documentation

API Endpoint

POST https://qrgen.gtnet.hr/api/qr/generate

Authentication

Add your API key to the request header:

Authorization: Bearer YOUR_API_KEY

Parameters

Parameter Type Required Description
type string Yes url, wifi, vcard, sms, email, phone, location, whatsapp, text, bitcoin
url string For URL type The URL to encode (e.g., https://www.gtnet.hr)
size integer No 256, 512, 1024, 2048 (default: 512)
format string No png, svg (default: png)
dotStyle string No square, dots, rounded, extra-rounded (default: square)
errorCorrection string No L, M, Q, H (default: M)
darkColor string No Hex color for QR code (default: #000000)
lightColor string No Hex color for background (default: #FFFFFF)

Response

{
  "success": true,
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANS...",
  "format": "png",
  "type": "url"
}

Code Examples

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "url",
    "url": "https://www.gtnet.hr",
    "size": 512,
    "format": "png",
    "dotStyle": "rounded",
    "errorCorrection": "H",
    "darkColor": "#00d1b2",
    "lightColor": "#FFFFFF"
  }'

WiFi QR Code Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "wifi",
    "ssid": "GTNet-Office",
    "password": "SecurePass123",
    "encryption": "WPA",
    "hidden": false,
    "size": 1024,
    "format": "png",
    "errorCorrection": "Q"
  }'

vCard Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "vcard",
    "firstName": "Ivo",
    "lastName": "Horvat",
    "organization": "GTNet",
    "jobTitle": "Developer",
    "phone": "+385912345678",
    "email": "ivo@gtnet.hr",
    "website": "https://www.gtnet.hr",
    "address": "Ilica 1, 10000 Zagreb",
    "size": 512,
    "format": "png"
  }'

SMS Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "sms",
    "phoneNumber": "+385912345678",
    "message": "Pozdrav! Ovo je test poruka iz QRGen API-ja.",
    "size": 512,
    "format": "png"
  }'

Email Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "email",
    "email": "info@gtnet.hr",
    "subject": "Upit za API integraciju",
    "body": "Poštovani,\n\nZanima me integracija vašeg QR API servisa.\n\nLijep pozdrav",
    "size": 512,
    "format": "png"
  }'

Phone Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "phone",
    "phone": "+38514899900",
    "size": 256,
    "format": "png",
    "errorCorrection": "L"
  }'

Location Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "location",
    "latitude": "45.8150",
    "longitude": "15.9819",
    "size": 512,
    "format": "png",
    "dotStyle": "dots"
  }'

WhatsApp Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "whatsapp",
    "phoneNumber": "385912345678",
    "message": "Bok! Kontaktiram vas putem WhatsApp QR koda.",
    "size": 512,
    "format": "png"
  }'

Plain Text Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text",
    "text": "GTNet - Najbolji optički internet u Hrvatskoj!\n\nBrzine do 10 Gbps\nGarantovane brzine\n24/7 podrška",
    "size": 1024,
    "format": "png",
    "errorCorrection": "H"
  }'

Bitcoin Example

curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "bitcoin",
    "bitcoinAddress": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "amount": "0.00042",
    "size": 512,
    "format": "png",
    "darkColor": "#F7931A",
    "lightColor": "#FFFFFF"
  }'

Batch Request Example

Za generiranje više QR kodova odjednom, možete slati više pojedinačnih zahtjeva paralelno:

# Bash skripta za batch generiranje
#!/bin/bash

# Array sa podacima za QR kodove
declare -a urls=(
  "https://www.gtnet.hr"
  "https://shop.digitalnaproizvodnja.hr"
  "https://www.feedback.hr"
)

# Generiraj QR kodove paralelno
for url in "${urls[@]}"; do
  curl -X POST https://qrgen.gtnet.hr/api/qr/generate \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d "{
      \"type\": \"url\",
      \"url\": \"$url\",
      \"size\": 512,
      \"format\": \"png\"
    }" > "qr_$(echo $url | sed 's/[^a-zA-Z0-9]/_/g').json" &
done

# Čekaj da završe svi zahtjevi
wait
echo "Svi QR kodovi su generirani!"

Ready to get started?

Sign up today and get 100 free API calls

Create Free Account