SnapQR API

Create and manage QR codes and short links programmatically. No API key, no signup — the token returned at creation is the credential for that link. Base URL: https://snapqr.link/api

Create a link / dynamic QR

POST /api/links
Content-Type: application/json

{
  "kind": "url",                  // url | appstore | vcard | page
  "target": "https://example.com/menu",
  "alias": "summer-menu",         // optional custom code
  "title": "Summer menu",         // optional
  "campaign": "summer",           // optional grouping tag
  "utm": {                        // optional, auto-appended on redirect
    "utm_source": "poster", "utm_medium": "qr", "utm_campaign": "summer2026"
  }
}

Response 201:

{
  "code": "summer-menu",
  "short_url": "https://snapqr.link/summer-menu",
  "qr_png": "https://snapqr.link/summer-menu/qr.png",
  "qr_svg": "https://snapqr.link/summer-menu/qr.svg",
  "manage_url": "https://snapqr.link/m/<token>",
  "token": "<token>"            // keep secret — grants edit + analytics access
}

For kind: "appstore" send ios, android, fallback URLs. For kind: "vcard" send firstName, lastName, org, jobTitle, phone, email, website. For kind: "page" send headline, description and a links array of {label, url}.

Manage & analytics

GET    /api/manage/{token}            # link details + totals
PUT    /api/manage/{token}            # update target/payload/utm/active/title
DELETE /api/manage/{token}            # delete link + analytics
GET    /api/manage/{token}/stats?days=30
GET    /api/manage/{token}/scans.csv  # raw scan export

/stats returns totals, unique visitors, a per-day series and top-10 breakdowns for device, OS, browser, country, city, referrer and QR-vs-link source.

Bulk creation

POST /api/bulk            # JSON array of link objects, or {"csv": "alias,target,title,campaign\n..."}
POST /api/bulk?format=csv  # same, responds with a CSV of created codes

Max 500 rows per request.

QR images

GET /api/qr?data=hello&size=1024&fg=%23000000&bg=%23ffffff&format=png|svg&ecl=M
GET /{code}/qr.png   GET /{code}/qr.svg    # QR for an existing short code

Custom domains

POST /api/domains  {"domain": "qr.yourbrand.com"}

Then point a CNAME for that hostname at snapqr.link. TLS certificates are issued automatically on first visit, and your short codes resolve on your own domain.

Limits

Fair-use rate limits apply per IP (60 links/hour, 10 bulk requests/hour, 300 QR images/hour). Destinations must be public http(s) URLs. Codes serving malware or phishing are removed.

Example: curl

curl -X POST https://snapqr.link/api/links \
  -H "Content-Type: application/json" \
  -d '{"kind":"url","target":"https://example.com","alias":"demo-123"}'

Mō SnapQR

Whakaaunoahia te hanga waehere QR me ngā hononga poto me tētahi REST API koreutu: waehere hihiko, hanga nui, kaweake tātaritanga, tapanga UTM me ngā rohe ritenga. Kāore he kī API e hiahiatia ana — tīmata ki te whakauru i roto i ngā meneti.

Ngā pātai auau

He koreutu pono a SnapQR? He aha te raru huna?

Āe — ko te hanga waehere QR, waehere hihiko, hononga poto me te tātaritanga he koreutu 100% me te kore e hiahia pūkete. Kāore he tohu wai, ā, kāore e pau te wā o ngā waehere.

He aha te rerekētanga i waenga i te waehere QR pūmau me te waehere QR hihiko?

Ka whakawaehere te waehere QR pūmau i tō ihirangi tōtika i roto i te tauira, ā, kāore rawa e taea te huri. Ka whakawaehere te waehere QR hihiko i tētahi URL whakahoutanga poto ka whakahaeretia e koe, nō reira ka taea e koe te huri i te wāhi e tohu ana i muri i te tā me te aroturuki i ia matawai.

Ka pau te wā o aku waehere QR?

Kāo. Nā te hoahoa, e kore e mutu te mahi a ngā waehere pūmau, ā, ka noho hohe koreutu ngā waehere hihiko.

Me pēhea taku whakatika i tētahi waehere QR i muri i te tā?

Ka hangaia e koe tētahi waehere hihiko ka riro i a koe tētahi URL whakahaere motuhake. Whakatuwherahia, whakaurua te wāhi haere hou ka tiaki — ka tohu tonu ia tānga ki te whārangi hou.

Ka taea e au te tāpiri i taku moko ki tētahi waehere QR?

Āe. Tukuatu tētahi āhua ki te paepae Hoahoa — ka whakauruhia ki waenganui me te tikanga whakatika hapa teitei kia matawai tika tonu ai te waehere. Ka tukatukahia te moko katoa i roto i tō pūtirotiro.

He aha ngā tātaritanga ka riro i a au?

Ia waehere: ngā matawai katoa, ngā manuhiri motuhake, ngā matawai i te roanga o te wā, te momo pūrere, te pūnaha whakahaere, te pūtirotiro, te whenua, te tāone me te kaitohu — me te kaweake CSV. Kāore rawa e rongoātia ngā wāhitau IP.

He aha ngā hōputu kōnae ka taea e au te tiki?

PNG tae atu ki te 4096 px (tata ki te 13 īnihi i te 300 DPI) me te ahopae SVG ka taea te tāroaroa mutunga kore — e rua e pai ana mō te tā ngaio.

Ka taea e au te whakamahi i taku ake rohe mō ngā hononga poto?

Āe — tohua tētahi CNAME ki snapqr.link me te rēhita i te rohe mā tā mātou API. Ka tukuna aunoatia ngā tiwhikete HTTPS.