QR Code API
The QR Code API lets you generate QR codes from any URL with a single request. It is a simple public endpoint that returns a QR code image for the URL you provide.
Response Format
This endpoint returns an image, not a JSON payload. The generated QR code image represents the value passed in the url query parameter.
Request Parameter:
url(string), required, the full URL to encode into the QR code.
If the request is invalid, the API may return an error response depending on server-side validation.
Authentication Methods
This endpoint is publicly accessible and does not require authentication.
Characteristics:
- No authentication required
- Designed for simple public use
- Suitable for direct browser access
- Useful for embedding QR code images in pages or tools
Usage:
Endpoint
GET /v1/qrcode
Example Request
Direct URL Example
https://api.tylermwise.uk/v1/qrcode?url=https://example.com
HTML Embed Example
<img src="https://api.tylermwise.uk/v1/qrcode?url=https://example.com" alt="QR code for https://example.com">
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The destination URL to convert into a QR code image. |
Notes
- No PHP integration is required for basic usage.
- You can call the endpoint directly from the browser by changing the
urlparameter value. - The original source states that QR codes generated with this service will not be wiped or deleted.
HTTP Status Codes
Common HTTP status codes may include:
200- QR code generated successfully.400- Bad Request, such as a missing or invalidurlparameter.429- Too Many Requests, if rate limiting is applied.500- Internal Server Error.
Versioning
This page documents version 1 of the QR Code API, available under the /v1/ path.