---
title: "QR code for any text"
method: GET
path: "/v1/qr"
tags: ["QR codes and barcodes"]
---

# QR code for any text

`GET /v1/qr`

## Request

- Base URL: `https://api.dharun.dev`
- URL: `https://api.dharun.dev/v1/qr`
- Auth: none declared

Returns the image itself. Text up to about 2,900 bytes at error correction L.

## Query parameters

- `text` string
- `ecc` 'L' | 'M' | 'Q' | 'H'
- `format` 'svg' | 'png'
- `size` integer
- `margin` integer
- `fg` string
- `bg` string

## Response `200`

Success

## Other responses

- `400`: Error
- `404`: Error
- `429`: Error

---

[API](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data.md) · [All operations](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/llms.txt) · [OpenAPI document](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/revisions/ecd8b0ec7863?raw)
