Gen-Endpoint
Back to API List
QR Code Generator API
Generate QR codes for text, URLs, and structured data with customizable styling.
Utilities
Internal API - Hosted by this App
API Endpoints & Usage
Explore and interact with the available endpoints for the QR Code Generator API. These API routes are live! The paths shown below are relative to your application's base URL. For example, if this application is hosted at https://gen-endpoint.com, an endpoint path for this API, such as /api/qr/generate, would be accessible at https://gen-endpoint.com/api/qr/generate. You can use the "Try it out" section for each endpoint or use tools like curl, Postman, or your browser's address bar (for GET requests) to interact with them.
POST

/api/qr/generate

Generate QR code image with customizable options.

Show Static Examples

Example Request Body:

{
  "data": "https://www.example.com",
  "size": 256,
  "format": "png",
  "errorCorrection": "M",
  "foregroundColor": "#000000",
  "backgroundColor": "#FFFFFF",
  "margin": 4
}

Example Response:

{
  "id": "qr_456",
  "imageUrl": "/api/qr/qr_456/image.png",
  "data": "https://www.example.com",
  "size": 256,
  "format": "png",
  "createdAt": "2024-08-16T12:00:00Z",
  "downloadUrls": {
    "png": "/api/qr/qr_456/download.png",
    "svg": "/api/qr/qr_456/download.svg",
    "pdf": "/api/qr/qr_456/download.pdf"
  }
}
Try it out
GET

/api/qr/{qrId}

Get QR code metadata and download links. Replace {qrId} with an actual ID like `qr_456`.

Show Static Examples

Example Response:

{
  "id": "qr_456",
  "data": "https://www.example.com",
  "imageUrl": "/api/qr/qr_456/image.png",
  "downloadUrls": {
    "png": "/api/qr/qr_456/download.png",
    "svg": "/api/qr/qr_456/download.svg",
    "pdf": "/api/qr/qr_456/download.pdf"
  },
  "scanCount": 45,
  "createdAt": "2024-08-16T12:00:00Z"
}
Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/qr/{qrId}/image.png

Retrieve the QR code as a PNG image. Replace {qrId} with an actual ID like `qr_456`.

Show Static Examples

Example Response:

(Binary PNG image data)
Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/qr/{qrId}/download.png

Download the QR code as a PNG file. Replace {qrId} with an actual ID like `qr_456`.

Show Static Examples

Example Response:

(File download of PNG image)
Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/qr/{qrId}/download.svg

Download the QR code as an SVG file. Replace {qrId} with an actual ID like `qr_456`.

Show Static Examples

Example Response:

(File download of SVG image)
Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

GET

/api/qr/{qrId}/download.pdf

Download the QR code as a PDF file. Replace {qrId} with an actual ID like `qr_456`.

Show Static Examples

Example Response:

(File download of PDF document)
Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above. You can also add/edit query parameters (e.g., ?key=value).

POST

/api/qr/batch

Generate multiple QR codes in batch.

Show Static Examples

Example Request Body:

{
  "codes": [
    {"data": "https://example.com/page1", "filename": "page1"},
    {"data": "https://example.com/page2", "filename": "page2"}
  ],
  "format": "png",
  "size": 256
}

Example Response:

{
  "batchId": "batch_789",
  "status": "processing",
  "totalCodes": 2,
  "estimatedCompletion": "2024-08-16T12:02:00Z"
}
Try it out