QR code API
Make QR codes you can change after printing, change where they send people, get the image and read scan counts, from your own code.
Price
- 100 calls a month free on every account. No card needed.
- Past the free 100, 0.2 cents a call ($2 per 1,000 calls) on the pay-per-call plan, billed monthly through Stripe. No monthly fee.
- Without the pay-per-call plan, calls past the free 100 answer 402 until the next month starts (UTC).
- Calls that fail (4xx or 5xx) are not counted. Scans of your codes are never counted.
- A code made through the API keeps opening its address if you stop paying.
Keys
Sign in at qr.ceots.io and choose New API key on your dashboard. The key is shown once. Send it on every call:
Authorization: Bearer qrk_…
You can hold 5 keys at once. Revoking a key on the dashboard stops it at once. Every code a key makes belongs to your account and shows on your dashboard.
Calls
| Call | Does |
|---|---|
POST /api/v1/codes | Makes a code. Body: {"url": "https://…", "handle": "optional"}. Answers 201 with the handle, the short link, image links and a delete token. |
GET /api/v1/codes | Lists your codes (newest 200) with all-time and 7-day scans. |
GET /api/v1/codes/{handle} | One code: its address and scans per day. Optional ?from=YYYY-MM-DD&to=YYYY-MM-DD, up to a year; the last 30 days by default. |
PATCH /api/v1/codes/{handle} | Changes where the code sends people. Body: {"url": "https://…"}. The printed code opens the new address at once. |
GET /api/v1/codes/{handle}/image.png | The code as a print-size PNG (at least 1024 px). image.svg gives an SVG. |
GET /api/v1/usage | This month's calls, the free allowance and billable calls. Not counted as a call. |
Example
curl -X POST https://qr.ceots.io/api/v1/codes \
-H "Authorization: Bearer $QR_KEY" \
-H "content-type: application/json" \
-d '{"url": "https://example.com/menu"}'Errors
- 401 invalid_key
- The key is missing, mistyped or revoked.
- 402 allowance_used
- The free 100 calls for this month are used. The answer carries an upgrade link that starts the pay-per-call plan.
- 404 not_found
- No code with that handle belongs to your account.
- 409 Handle already taken
- Pick another handle, or leave it out and one is made for you.
- 503 plan_unavailable
- Billing could not be reached to check your plan. Nothing was counted; try again in a minute.