具
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/create | A QR code of a text or link as a base64 PNG, with its side in pixels. |
| GET | /qrcode/read | The codes in a public image URL and what they say. |
| GET | /qrcode/svg | A QR code of a text or link as an SVG document, which scales without blur. |
| GET | /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. |
create
GET
/v1/qrcode/createA QR code of a text or link as a base64 PNG, with its side in pixels.
scope social:read1 unitcached 24 h
Parameters
datastring required | The text or link the code encodes, up to 1000 bytes. e.g. https://example.com |
imageSizeinteger | Side of the square image in pixels, from 50 to 1000. default 200e.g. 200 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
base64 | string |
mimeType | string |
size | integer (int64) |
curl "https://api.hoshime.com/v1/qrcode/create?data=https%3A%2F%2Fexample.com&imageSize=200" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/qrcode/create?data=https%3A%2F%2Fexample.com&imageSize=200", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/qrcode/create?data=https%3A%2F%2Fexample.com&imageSize=200", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/readThe codes in a public image URL and what they say.
scope social:read1 unitcached 1 hpaginated
Parameters
urlstring 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 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
data | string |
error | string |
type | string |
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"
const res = await fetch("https://api.hoshime.com/v1/qrcode/read?url=https%3A%2F%2Fapi.qrserver.com%2Fv1%2Fcreate-qr-code%2F%3Fdata%3Dhello", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/qrcode/read?url=https%3A%2F%2Fapi.qrserver.com%2Fv1%2Fcreate-qr-code%2F%3Fdata%3Dhello", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/svgA QR code of a text or link as an SVG document, which scales without blur.
scope social:read1 unitcached 24 h
Parameters
datastring required | The text or link the code encodes, up to 1000 bytes. e.g. https://example.com |
imageSizeinteger | Side of the square in pixels, from 50 to 1000. default 200e.g. 200 |
eccstring | Error correction level: L, M, Q or H. Higher levels survive more damage and make bigger codes.LMQHdefault Me.g. M |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
data | string |
ecc | string |
size | integer (int64) |
svg | string |
curl "https://api.hoshime.com/v1/qrcode/svg?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=M" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/qrcode/svg?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=M", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/qrcode/svg?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=M", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/quickchartA 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
datastring required | The text or link the code encodes, up to 1000 bytes. e.g. https://example.com |
imageSizeinteger | Side of the square image in pixels, from 50 to 1000. default 200e.g. 200 |
eccstring | Error correction level: L, M, Q or H. Higher levels survive more damage and make bigger codes.LMQHdefault Me.g. H |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
base64 | string |
mimeType | string |
size | integer (int64) |
curl "https://api.hoshime.com/v1/qrcode/quickchart?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=H" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/qrcode/quickchart?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=H", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/qrcode/quickchart?data=https%3A%2F%2Fexample.com&imageSize=200&ecc=H", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }