

QR Codes Generator API
por RoarAPI · caminho base /qr-codes-api
Generate customizable QR Codes in PNG and SVG formats with a simple REST API.
Carregando endpoints…Documentação
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
| Format | Description |
|---|---|
| PNG | Raster image suitable for websites, apps, social media and documents |
| SVG | Vector 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
| Name | Type | Required | Description |
|---|---|---|---|
| data | string | No | Text or URL to encode |
| scale | integer | No | Module size in pixels |
| border | integer | No | Quiet zone border size |
| error | string | No | Error correction level (L, M, Q, H) |
| dark | string | No | Foreground color (6-digit hex) |
| light | string | No | Background 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
Endpoints
2Todos os endpoints que QR-codes Generator API oferece e o que cada um faz.
- 1GET
/qr-codes-api/qrGenerate 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.svgGenerate a QR code (SVG)
Generate a scalable SVG QR code — ideal for print and high-DPI displays.
Preços
| Plano | Preços | Limites de taxa | Cotas | Comparar todos os 4 planos |
|---|---|---|---|---|
| Basic | Grátis | 5 solicitações / segundo | 50 solicitações / mês | |
| Pro | US$ 15/mês | 25 solicitações / segundo | 10000 solicitações / mês | |
| Max | US$ 25/mês | 50 solicitações / segundo | 10000 solicitações / mês | |
| Ultra | US$ 50/mês | 100 solicitações / segundo | 100000 solicitações / mês |