Skip to content

QR Code API

4 endpointsUtilitiesGlobalsocial:read4 real examples

Creates QR codes as PNG or SVG from text or links, and reads codes from public image URLs.

View as Markdown
GET/qrcode/createA QR code of a text or link as a base64 PNG, with its side in pixels.
GET/qrcode/readThe codes in a public image URL and what they say.
GET/qrcode/svgA QR code of a text or link as an SVG document, which scales without blur.
GET/qrcode/quickchartA QR code of a text or link as a PNG image from QuickChart, a second generator with its own error correction setting.

create

GET/v1/qrcode/create

A QR code of a text or link as a base64 PNG, with its side in pixels.

scope social:read1 unitcached 24 h

Parameters

data
string
required
The text or link the code encodes, up to 1000 bytes.
e.g. https://example.com
imageSize
integer
Side of the square image in pixels, from 50 to 1000.
default 200e.g. 200
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
base64string
mimeTypestring
sizeinteger (int64)
curl "https://api.hoshime.com/v1/qrcode/create?data=https%3A%2F%2Fexample.com&imageSize=200" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "base64": "iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAQMAAACXljzdAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABAElEQVRYhd2XwQ6DMAxDmy/nz+MttmGAxB0vTNOU…",
    "mimeType": "image/png",
    "size": 200
  },
  "meta": {
    "cached": false,
    "endpoint": "create",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "qrcode",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

read

GET/v1/qrcode/read

The codes in a public image URL and what they say.

scope social:read1 unitcached 1 hpaginated

Parameters

url
string
required
Public http or https URL of an image that holds a QR code.
e.g. https://api.qrserver.com/v1/create-qr-code/?data=hello
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
datastring
errorstring
typestring
curl "https://api.hoshime.com/v1/qrcode/read?url=https%3A%2F%2Fapi.qrserver.com%2Fv1%2Fcreate-qr-code%2F%3Fdata%3Dhello" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "data": "hello",
      "error": "",
      "type": "qrcode"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "read",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "qrcode",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

svg

GET/v1/qrcode/svg

A QR code of a text or link as an SVG document, which scales without blur.

scope social:read1 unitcached 24 h

Parameters

data
string
required
The text or link the code encodes, up to 1000 bytes.
e.g. https://example.com
imageSize
integer
Side of the square in pixels, from 50 to 1000.
default 200e.g. 200
ecc
string
Error correction level: L, M, Q or H. Higher levels survive more damage and make bigger codes.
LMQH
default Me.g. M
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
datastring
eccstring
sizeinteger (int64)
svgstring
curl "https://api.hoshime.com/v1/qrcode/svg?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=M" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "data": "https://example.com",
    "ecc": "M",
    "size": 200,
    "svg": "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"200\" height=\"200\" viewBox=\"0 0 25 25\">\n\t<…"
  },
  "meta": {
    "cached": false,
    "endpoint": "svg",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "qrcode",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

quickchart

GET/v1/qrcode/quickchart

A QR code of a text or link as a PNG image from QuickChart, a second generator with its own error correction setting.

scope social:read1 unitcached 24 h

Parameters

data
string
required
The text or link the code encodes, up to 1000 bytes.
e.g. https://example.com
imageSize
integer
Side of the square image in pixels, from 50 to 1000.
default 200e.g. 200
ecc
string
Error correction level: L, M, Q or H. Higher levels survive more damage and make bigger codes.
LMQH
default Me.g. H
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
base64string
mimeTypestring
sizeinteger (int64)
curl "https://api.hoshime.com/v1/qrcode/quickchart?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=H" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "base64": "iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAFW0lEQVR4nO3bQZLbOBBFwb7/pW0dwPphEqxCgZ0vQruZVgFEaoGgf/5I+hogUggQKQSIFAJECgEihQCRQoBIIUCkECBS…",
    "mimeType": "image/png",
    "size": 200
  },
  "meta": {
    "cached": false,
    "endpoint": "quickchart",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "qrcode",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open