Skip to main content

Scanner

Scanner endpoints allow you to scan QR codes from images.

Scan QR Code

Scan a QR code from an uploaded image, URL, or data URL.

GET https://v1.freeqr.io/api/scan
POST https://v1.freeqr.io/api/scan

Requires Authentication: No

Query Parameters (GET)

ParameterTypeRequiredDescription
urlstring (URL)NoURL of the image to scan (max 4096 characters)

Request Body (POST)

Content-Type: application/json or multipart/form-data

ParameterTypeRequiredDescription
urlstring (URL)NoURL of the image to scan (max 4096 characters)
data_urlstringNoBase64 data URL of the image (max 5MB)
imagestringNoFile key/reference (max 255 characters, must be valid image)

Note: At least one of url, data_url, or image must be provided.

Response

{
"data": {
"text": "https://example.com/page"
}
}

Response Fields

FieldTypeDescription
data.textstringDecoded QR code text content

Error Response

If no QR code is found or the image is invalid:

{
"message": "Invalid request."
}

Note: If SCANNER_ENDPOINT is configured, the request may be forwarded to an external scanner service.