Marktplatz
OpenAPI
QR-codes Generator API

QR Codes Generator API

Data

von RoarAPI · Basispfad /qr-codes-api

Generate customizable QR Codes in PNG and SVG formats with a simple REST API.

100
Abonnenten
Neu
Bewertung
100.00 %
Verfügbarkeit
1002 ms
Latenz p95
Endpunkte werden geladen…

Dokumentation

QR Codes API

The QR Codes API is a lightweight yet powerful REST API for generating QR codes from any text, URL, phone number, email address, Wi-Fi credentials, cryptocurrency address, or other supported data.

Whether you're building payment systems, event applications, inventory management software, authentication systems, digital business cards, restaurant menus, marketing campaigns, or mobile applications, this API enables instant QR code generation without requiring any QR code libraries.

The API supports both raster (PNG) and vector (SVG) formats, allowing developers to create QR codes suitable for websites, mobile apps, print media, labels, posters, and high-resolution graphics.

Developers can fully customize:

  • QR code size
  • Error correction level
  • Border width
  • Foreground color
  • Background color
  • Output format

The API is stateless, fast, scalable, and suitable for production environments.


Features

  • Generate QR Codes from any text
  • Encode URLs
  • Encode phone numbers
  • Encode email addresses
  • Encode SMS links
  • Encode Wi-Fi credentials
  • Encode payment information
  • Generate PNG images
  • Generate SVG vector graphics
  • Custom foreground color
  • Custom background color
  • Adjustable module size
  • Adjustable border
  • Error correction support
  • REST API
  • API Key authentication
  • Fast response times
  • Production-ready
  • No SDK required

Supported Output Formats

FormatDescription
PNGRaster image suitable for websites, apps, social media and documents
SVGVector image suitable for printing and scalable graphics

Use Cases

Perfect for:

  • Mobile applications
  • Websites
  • Digital menus
  • Restaurant ordering
  • Event tickets
  • Boarding passes
  • Business cards
  • Marketing campaigns
  • Product packaging
  • Inventory management
  • Asset tracking
  • Authentication systems
  • Two-factor authentication
  • Contact sharing
  • Payment QR codes
  • Cryptocurrency wallets
  • IoT devices
  • Education platforms
  • Healthcare applications

Endpoints

Generate PNG QR Code

GET

/qr

Returns a PNG image.

Parameters
NameTypeRequiredDescription
datastringNoText or URL to encode
scaleintegerNoModule size in pixels
borderintegerNoQuiet zone border size
errorstringNoError correction level (L, M, Q, H)
darkstringNoForeground color (6-digit hex)
lightstringNoBackground color (6-digit hex)

Generate SVG QR Code

GET

/qr.svg

Returns a scalable SVG file.

Supports the same parameters as the PNG endpoint.


Parameters

data

The content to encode.

Examples

https://example.com
Hello World
mailto:[email protected]
tel:+15551234567
WIFI:T:WPA;S:OfficeWiFi;P:password123;;

scale

Controls the size of each QR module.

Example

4

Larger values generate larger images.


border

Controls the quiet zone around the QR code.

Example

4

dark

Foreground color.

Example

000000
FF0000
0033CC

light

Background color.

Example

FFFFFF
FFFFAA

Example Request

GET /qr?data=https://routexapi.com&scale=8&border=4&error=H&dark=000000&light=FFFFFF

Example SVG Request

GET /qr.svg?data=Hello%20World

Response

The API returns the generated QR code image directly.

Content Types

PNG endpoint

image/png

SVG endpoint

image/svg+xml

Performance

  • Low latency
  • Lightweight responses
  • Stateless architecture
  • High availability
  • Suitable for serverless deployments
  • CDN-friendly
  • Optimized for high request volumes

Best Practices

  • Use SVG when printing QR codes.
  • Use PNG for websites and mobile applications.
  • Choose error correction level H when placing logos over QR codes.
  • Keep sufficient border (quiet zone) around the QR code.
  • Use high contrast between foreground and background colors.
  • Avoid overly small module sizes for printed materials.

SDK Compatibility

Works with every HTTP client including:

  • JavaScript
  • TypeScript
  • Python
  • Go
  • Java
  • C#
  • PHP
  • Ruby
  • Swift
  • Kotlin
  • Rust
  • Dart
  • cURL

Endpunkte

2

Alle Endpunkte, die QR-codes Generator API bereitstellt – und was jeder davon tut.

  • 1GET/qr-codes-api/qr

    Generate a QR code (PNG)

    Generate a PNG QR code for the given text/URL, with configurable size, quiet-zone border, error-correction level, and colours.

  • 2GET/qr-codes-api/qr.svg

    Generate a QR code (SVG)

    Generate a scalable SVG QR code — ideal for print and high-DPI displays.

Preise

TarifPreiseAlle 4 Pläne vergleichen
Basic
Kostenlos
Pro
15 $/Mon.
Max
25 $/Mon.
Ultra
50 $/Mon.
QR Codes Generator API · RoutexAPI