Dynamic QR codes from code
A QR library makes static codes. A dynamic code needs a short link that something keeps answering.
Library or API
A QR library in your own code turns an address into squares. The address is inside the code, so it cannot be changed after printing and nobody counts its scans. That is a static code.
A dynamic code holds a short link instead. Something has to answer that link on every scan and forward it to your address. The QR code API does that part: you make the code with a call, and qr.ceots.io answers its short link.
From JavaScript
var answer = await fetch('https://qr.ceots.io/api/v1/codes', {
method: 'POST',
headers: {'authorization': `Bearer ${key}`, 'content-type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/menu'}),
});
var code = await answer.json();The answer carries the handle, the short link and links to the image.
What else you can call
GET /api/v1/codes/{handle}/image.pnggives the code as a print-size PNG;image.svggives an SVG.PATCH /api/v1/codes/{handle}changes where the code sends people.GET /api/v1/codes/{handle}gives its address and scans per day.GET /api/v1/codeslists your codes with their scans.
Every code a key makes belongs to your account and shows on your dashboard, where you can change it by hand as well.
Price
100 calls a month free on every account, then 0.2 cents a call on the pay-per-call plan, with no monthly fee. Scans are never counted as calls, and a code keeps opening its address if you stop paying.