Developers · QR Code API

The QR code API for your own website and app.

One script tag or one API call. Branded QR codes, UPI payment codes and a ready-made generator for your visitors. Built in India, priced once.

₹4599one-time payment · no monthly fee · no per-code charge
  • SVG and PNG
  • Your logo on every code
  • Domain lock
  • UPI QR built in
  • 600 requests / minute
<script src="https://generator.orbasesix.com/embed/v1.js"
        data-key="ob_live_YOUR_KEY" async></script>

<div data-orbase-qr
     data-value="https://yourshop.com/menu"
     data-size="220"></div>
Sample QR code made by the APILive output from the API · same call, real result
70ready-made templates
20QR types, incl. UPI and Wi-Fi
SVG + PNGup to 2000 px
600/minper API key
How it works

From purchase to live QR codes in three steps

No SDK to install and no build step. If your site can load a script tag, it can show a QR code.

1

Buy once, get your key

Pay ₹4599 by UPI or card. Your first key is ready the moment the payment is confirmed.

2

Lock it to your website

Add your domain and upload your logo. Only your pages can use the key, and every code carries your brand.

3

Paste the code

Copy the snippet for your platform. QR codes appear on your pages, or give visitors the full generator.

See it in 45 seconds

What your website developer will do

  • 1Create the key and lock it to the website in the dashboard.
  • 2Paste two lines into the page: a script tag and a div.
  • 3The QR code appears on the live page, made by the API in real time.
  • 4Or embed the generator so visitors design and download their own codes.
Live demo

Try the API right now

This panel uses the public demo key, so you see exactly what your site will receive.

Live QR code from the API
See the embeddable generator your visitors would get

Quick start

Send your key in the X-API-Key header (or Authorization: Bearer ..., or the key parameter for image tags). Use GET with query parameters, or POST with JSON. Base URL: https://generator.orbasesix.com.

cURL
curl -H "X-API-Key: ob_live_YOUR_KEY" \
  "https://generator.orbasesix.com/api/v1/qr.svg?data=https://yourshop.com&size=400" -o qr.svg

# check that a key works
curl -H "X-API-Key: ob_live_YOUR_KEY" https://generator.orbasesix.com/api/v1/ping
New here? Create a free account and choose API & Embed. Already bought it? Open your keys.

Integration code

Replace ob_live_YOUR_KEY with your key from the dashboard. Pick your platform:

Works anywhere HTML works: web pages, emails, blogs, invoices.

HTML
<img src="https://generator.orbasesix.com/api/v1/qr.png?key=ob_live_YOUR_KEY&data=https%3A%2F%2Fyourshop.com&size=300&fg=0f1513"
     width="300" height="300" alt="Scan to visit yourshop.com">

Endpoints

GET/api/v1/qr.svgQR code as SVG. All styles, frames and gradients.
GET/api/v1/qr.pngPNG up to 2000 px with colours, margin, logo and the dot shapes square, rounded, circle and bars.
POST/api/v1/qr.jsonJSON with svg, data_uri, the encoded data and any warnings.
GET/api/v1/pingChecks that a key works and lists its allowed domains.
GET/api/v1/typesQR types and their fields. No key needed.
GET/api/v1/templatesThe 70 template ids. No key needed.

You can also use /api/v1/qr?format=svg|png|json. Add download=1 or filename=my-qr to make the browser save the file. GET and POST both work on every QR endpoint.

Parameters

ParameterMeaning
dataText or link to encode (up to 1,500 characters). Or use type with its fields instead.
typeOne of the types below, e.g. upi, wifi, whatsapp. Then send that type's fields as parameters.
sizePixels, 64 to 2000. Default 512.
fg, bgCode and background colour, hex with or without #. bg=transparent for no background.
dotssquare, rounded, extra-rounded, classy, circle, small-circle, diamond, star, plus, vertical, horizontal, pixel, random.
eye, ballCorner square and its centre shape (SVG): square, soft, rounded, circle, leaf, pointed, dots.
grad, fg2Gradient linear or radial from fg to fg2 (SVG).
templateOne of 70 ready-made designs, e.g. t15. Your own parameters override it.
frame, frame_textA "SCAN ME" style frame (SVG): box-bottom, box-top, bubble, pill, corners, ribbon, circle.
margin, ecQuiet zone 0 to 8 modules; error correction L, M, Q, H or auto.
logoYour uploaded logo is used automatically. Send logo=0 to leave it out.

QR types and their fields

Send type and the fields, and we build the right payload for you.

typeFields
url Website / Linkurl
whatsapp WhatsAppphone message
upi UPI Paymentupi_id name amount note
review Google Reviewplace_id
wifi Wi-Fissid password encryption
vcard Business Card (vCard)first last org title phone work_phone email website address
menu Digital Menuurl
location Locationaddress lat lng
phone Phone Callphone
sms SMSphone message
email Emailemail subject body
text Plain Texttext
event Eventtitle start end location details
app App Downloadurl
instagram Instagramhandle
facebook Facebookhandle
youtube YouTubehandle
linkedin LinkedInhandle
telegram Telegramhandle
x X (Twitter)handle

Errors and limits

Errors always come as JSON: {"ok": false, "error": {"code": "...", "message": "..."}}. In a browser the widget prints the reason in the console.

HTTPCodeMeaning
401missing_key invalid_keyNo key sent, or the key is wrong or switched off.
403domain_not_allowed no_accessThe calling website is not on the key's list, or API & Embed is not active.
400invalid_data invalid_type missing_data data_too_longSomething in the request needs fixing. The message says what.
429rate_limitedMore than 600 requests a minute on one key.

The public demo key is limited to 40 requests per 10 minutes and sizes up to 400 px.

Keys and security

Domain lock

Add your website names to a key. Browsers calling from any other site get domain_not_allowed, and the embedded generator can only be framed by your sites.

Safe in a page

A key only creates QR codes. It cannot read anything from your account, so it can sit in your page source.

Server calls

Calls from your server (no Origin header) work with the key. Keep server-side keys out of public repositories.

Replace any time

Switch a key off or generate a new value in one click. Up to 5 keys, for example one per website or client.

Frequently asked questions

How much does the QR code API cost?

A single payment of Rs 4599. There is no monthly fee, no per-code charge and no renewal. You get up to 5 API keys.

How do I add a QR code to my website?

Paste one script tag with your key, then add a div with data-orbase-qr and the link you want to encode. The widget shows the code. You can also use a plain image tag or call the REST API from your server.

Is it safe to put the API key in my web page?

Yes. Lock each key to your own websites in the dashboard. Requests from other sites are refused, keys are rate limited, and you can switch off or replace a key at any time.

Which formats and sizes can I get?

SVG (all styles, any size), PNG up to 2000 px and a JSON response with the SVG and a data URI. Colours can be written with or without the # sign.

Can I put my own logo in the QR codes?

Yes. Upload your logo once per key and it is placed in the centre of every code, with error correction raised so the code still scans.

Can I create UPI payment QR codes with the API?

Yes. Use type=upi with your UPI ID, payee name and an optional amount and note. The code opens GPay, PhonePe, Paytm and any BHIM UPI app.

Will it work on WordPress, Shopify, Wix or React?

Yes. On site builders add a Custom HTML block with the script and div. On React or Next.js use the image component shown in the docs. There is nothing to install.

Do the QR codes expire?

The codes are static, so they never expire and have no scan limit. If you link to our image URL the picture is served by us; to own the file forever, call the API from your server and save the SVG or PNG.

What are the limits?

Up to 600 requests per minute per key, 1,500 characters of data per code, and sizes from 64 to 2000 px. Contact us if you need more.

Put QR codes on your own website today.

One payment. Your key is ready the moment it is confirmed. Need help integrating? Write to [email protected] and we will help.

  • QR code API and website widget
  • Embeddable generator for your visitors
  • Your logo, up to 5 keys, domain lock
  • No monthly fee, no per-code charge
API & Embed₹4599one-time · GST includedGet API & Embed

Pay by UPI or card · access switches on straight away