Skip to content

Latest commit

 

History

History
66 lines (58 loc) · 2.24 KB

README.md

File metadata and controls

66 lines (58 loc) · 2.24 KB

getqr Deploy

Web-based QR code generator. It is Google Chart Tool's replacement.

Syntax

Root URL: http://getqr.herokuapp.com/qr

Parameter Required or Optional Description
chs=<width>x<height> Required Image size.
chl=<data> Required The data to encode. Data can be digits (0-9), alphanumeric characters, binary bytes of data, or Kanji. You cannot mix data types within a QR code. The data must be UTF-8 URL-encoded. Note that URLs have a 2K maximum length, so if you want to encode more than 2K bytes (minus the other URL characters), you will have to send your data using POST.
chld=<error_correction_level>|<margin> Optional
  • error_correction_level - QR codes support four levels of error correction to enable recovery of missing, misread, or obscured data. Greater redundancy is achieved at the cost of being able to store less data. Here are the supported values:
    • L - [Default] Allows recovery of up to 7% data loss
    • M - Allows recovery of up to 15% data loss
    • Q - Allows recovery of up to 25% data loss
    • H - Allows recovery of up to 30% data loss
  • margin - The width of the white border around the data portion of the code. This is in rows, not in pixels. The default value is 4.

Example

GET /qr?chl=Hello+World&chs=200x200

Example