QR Code Generator API Documentation

This API provides endpoints to generate QR codes for various use cases such as contact sharing, Wi-Fi credentials, calendar events, payments, social media, and map navigation. You can customize QR code styles and download them in SVG or PNG format.

API Endpoints

URL QR

Endpoint /qrcode
Description Generates a QR code for a URL.
Parameters url
Example /qrcode?url=https://example.com&format=png

Wi-Fi

Endpoint /wifi
Description Share Wi-Fi credentials using QR code.
Parameters ssid (required), password, encryption, hidden
Example POST /wifi with JSON: { "ssid": "Home", "password": "12345678" }

vCard Contact

Endpoint /vcard
Description Share contact details as vCard.
Parameters name, phone (required), email, company, title, website, address
Example POST /vcard with JSON: { "name": "John Doe", "phone": "+421900000000" }

WhatsApp

Endpoint /whatsapp
Description Send predefined WhatsApp message.
Parameters phone, message
Example /whatsapp?phone=0900123456&message=Hi!

Email

Endpoint /email
Description Compose an email using a QR code.
Parameters recipient, subject, body
Example POST /email with JSON: { "recipient": "user@example.com", "subject": "Hi" }

Call

Endpoint /call
Description Dial a number from QR code.
Parameters phone
Example /call?phone=123456789

SMS

Endpoint /sms
Description Send SMS with predefined message.
Parameters phone, message
Example /sms?phone=123456789&message=Hello

PayBySquare

Endpoint /paybysquare
Description Slovak bank QR payments.
Parameters amount, currency, iban, note, symbols
Example POST /paybysquare with JSON: { "amount": "12.50", "currency": "EUR", "iban": "SK12..." }

QR Platba (CZ)

Endpoint /qrplatba
Description Czech payment format (SPD).
Parameters iban, amount, currency, message, variable_symbol
Example /qrplatba?iban=CZ12...&amount=120

SEPA Payment

Endpoint /sepa
Description EU SEPA credit transfer.
Parameters creditor_name, iban, bic, amount, reference, remittance_information
Example POST /sepa with JSON: { "iban": "SK12...", "amount": "25.00" }

Revolut & PayPal

Endpoint /revolut, /paypal
Description QR codes for Revolut or PayPal payments.
Parameters username, amount
Example /paypal?username=abc&amount=12

Event (Calendar)

Endpoint /event
Description iCalendar format for one-time event.
Parameters title, start, end, location, description
Example POST /event with JSON: { "title": "Meeting", "start": "2025-06-01T10:00", "end": "2025-06-01T11:00" }

Meeting Links

Endpoint /google_meet, /microsoft_meeting, /zoom_meeting
Description Generate QR code for online meeting links.
Parameters meeting_url

Google/Apple Maps Location

Endpoint /google_maps, /apple_maps
Description Show a place on map.
Parameters latitude, longitude, address

Google/Apple Maps Route

Endpoint /google_maps_route, /apple_maps_route
Description Show route on map from start to destination.
Parameters start, destination, stops

Error Codes

Code Meaning
400 Invalid or missing parameters
500 Internal server error

Styling

Parameter Type Description Default
format string Image format: svg or png svg
fill string Foreground color black
background string Background color white
box_size int Size of QR boxes 10
border int Border thickness 4

Example Curl

curl "https://your-domain/qrcode?url=https://openai.com&format=svg"
    

Example JSON POST

POST /wifi
    {
      "ssid": "MyWiFi",
      "password": "mypassword",
      "format": "png"
    }
    

For any questions or suggestions

get in touch with us