---
title: "Static QR code (SVG, or JSON with format=json)"
method: GET
path: "/api/qr"
---

# Static QR code (SVG, or JSON with format=json)

`GET /api/qr`

## Request

- Base URL: `https://www.ferntool.com`
- URL: `https://www.ferntool.com/api/qr`
- Auth: none declared

## Query parameters

- `text` string, required
- `ecc` 'L' | 'M' | 'Q' | 'H'
- `fg` string
- `bg` string
- `margin` integer
- `format` 'svg' | 'json'

## Response `200`

QR code

- object

## Other responses

- `400`: Empty or too long

---

[API](https://skmtc.dev/ferntool/apis/ferntool-network-api.md) · [All operations](https://skmtc.dev/ferntool/apis/ferntool-network-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ferntool/apis/ferntool-network-api/revisions/0097946dd980?raw)
