# QR Code Reader API

> QR Code Reader is a QR code scanner API that decodes text and web links from uploaded QR code images. Send a JPG, PNG, or GIF file up to 10 MB to retrieve the raw encoded payload, with paid plans adding corner coordinates.

**Endpoint:** `POST https://api.apiverve.com/v1/qrcodereader`  
**Category:** Images  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/qrcodereader

## Overview

A server-side QR code decoder: send the image, get back the encoded payload as JSON. This API uses advanced image processing techniques to detect and decode QR codes from images. It supports various QR code formats and can extract URLs, plain text, contact information, and other encoded data.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/qrcodereader" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.jpg"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | string | No | Upload an image file containing a QR code to decode (supported formats: JPG, PNG, GIF) |

## Response fields

- `text` — string · Decoded text extracted from the QR code image
- `location` — object · Object containing QR code position and corner coordinates, in the uploaded image's pixels · (premium)
  - `location.topLeft` — object · Top left corner coordinates with x and y values · (premium)
    - `location.topLeft.x` — number · X coordinate of top left corner position · (premium)
    - `location.topLeft.y` — number · Y coordinate of top left corner position · (premium)
  - `location.topRight` — object · Top right corner coordinates with x and y values · (premium)
    - `location.topRight.x` — number · X coordinate of top right corner position · (premium)
    - `location.topRight.y` — number · Y coordinate of top right corner position · (premium)
  - `location.bottomLeft` — object · Bottom left corner coordinates with x and y values · (premium)
    - `location.bottomLeft.x` — number · X coordinate of bottom left corner position · (premium)
    - `location.bottomLeft.y` — number · Y coordinate of bottom left corner position · (premium)
  - `location.bottomRight` — object · Bottom right corner coordinates with x and y values · (premium)
    - `location.bottomRight.x` — number · X coordinate of bottom right corner position · (premium)
    - `location.bottomRight.y` — number · Y coordinate of bottom right corner position · (premium)
- `payloadType` — string · Kind of payload: url, wifi, vcard, mecard, email, phone, sms, geo or text · (premium)
- `parsed` — object · The payload split into fields for its payloadType (for wifi: ssid, password, encryption, hidden; for vcard/mecard: name, phones, emails, organization, title, url, address; for email: address, subject, body; for phone: number; for sms: number, message; for geo: latitude, longitude; for url: url). Null for plain text · (premium)
- `codeCount` — number · Number of QR codes found in the image · (premium)
  - `codes.0.text` — string · Decoded text extracted from the QR code image · (premium)
  - `codes.0.location` — object · Object containing QR code position and corner coordinates, in the uploaded image's pixels · (premium)
    - `codes.0.location.topLeft` — object · (premium)
      - `codes.0.location.topLeft.x` — number · (premium)
      - `codes.0.location.topLeft.y` — number · (premium)
    - `codes.0.location.topRight` — object · (premium)
      - `codes.0.location.topRight.x` — number · (premium)
      - `codes.0.location.topRight.y` — number · (premium)
    - `codes.0.location.bottomLeft` — object · (premium)
      - `codes.0.location.bottomLeft.x` — number · (premium)
      - `codes.0.location.bottomLeft.y` — number · (premium)
    - `codes.0.location.bottomRight` — object · (premium)
      - `codes.0.location.bottomRight.x` — number · (premium)
      - `codes.0.location.bottomRight.y` — number · (premium)
  - `codes.0.payloadType` — string · Kind of payload: url, wifi, vcard, mecard, email, phone, sms, geo or text · (premium)
  - `codes.0.parsed` — object · The payload split into fields for its payloadType (for wifi: ssid, password, encryption, hidden; for vcard/mecard: name, phones, emails, organization, title, url, address; for email: address, subject, body; for phone: number; for sms: number, message; for geo: latitude, longitude; for url: url). Null for plain text · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "text": "MEBKM:URL:http\\://en.wikipedia.org/wiki/Main_Page;;",
    "location": {
      "topLeft": {
        "x": 177.3193597934474,
        "y": 136.7505501895766
      },
      "topRight": {
        "x": 448.1679366259464,
        "y": 141.51963536741036
      },
      "bottomLeft": {
        "x": 154.23652635814304,
        "y": 397.91435038456353
      },
      "bottomRight": {
        "x": 467.51014796868805,
        "y": 398.5768252349065
      }
    },
    "payloadType": "text",
    "parsed": null,
    "codeCount": 1,
    "codes": [
      {
        "text": "MEBKM:URL:http\\://en.wikipedia.org/wiki/Main_Page;;",
        "location": {
          "topLeft": {
            "x": 177.3193597934474,
            "y": 136.7505501895766
          },
          "topRight": {
            "x": 448.1679366259464,
            "y": 141.51963536741036
          },
          "bottomLeft": {
            "x": 154.23652635814304,
            "y": 397.91435038456353
          },
          "bottomRight": {
            "x": 467.51014796868805,
            "y": 398.5768252349065
          }
        },
        "payloadType": "text",
        "parsed": null
      }
    ]
  }
}
```

## Use cases

- **Inventory Management** — Scan QR codes on products for tracking and management
- **Event Check-In** — Quickly read QR codes for attendee registration and access control
- **Marketing Campaigns** — Decode QR codes from promotional materials to track engagement
- **Data Extraction** — Extract encoded information from QR codes for various applications

## SDKs

- **npm** — `npm install @apiverve/qrcodereader` (https://www.npmjs.com/package/@apiverve/qrcodereader)
- **NuGet** — `dotnet add package APIVerve.API.QRCodeReader` (https://www.nuget.org/packages/APIVerve.API.QRCodeReader)
- **Source** — https://github.com/apiverve/qrcodereader-api

## More

- Full reference: https://docs.apiverve.com/ref/qrcodereader
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
