FatBabyAPIQR Code API for Developers
Create PNG QR codes from text/URLs, generate WiFi and vCard payloads, and decode QR images. Responses for generators are image/png binaries with sensible Content-Disposition filenames.
Features
What this API actually supports in production today.
- POST /v1/tools/qr-codes — content → PNG
- WiFi QR and vCard QR helpers
- QR read from uploaded image
- About 1 credit per operation
- Browser tools for no-code use
Common use cases
- Ticket and event check-in codes
- WiFi onboarding posters
- Contact sharing via vCard QR
- Decode user-uploaded QR images
API endpoints
Base URL https://thefatbaby.com/api. Authenticate with Authorization: Bearer fb_live_YOUR_KEY.
| Method | Path | Summary | Credits |
|---|---|---|---|
POST | /v1/tools/qr-codes | Generate QR PNG | 1 credit |
POST | /v1/tools/qr-read | Decode QR image | 1 credit |
POST | /v1/tools/qr-wifi | WiFi login QR | 1 credit |
POST | /v1/tools/qr-vcard | vCard QR | 1 credit |
Examples
Primary endpoint /v1/tools/qr-codes · 1 credit per generate/read (default)
cURL
curl -X POST https://thefatbaby.com/api/v1/tools/qr-codes \
-H "Authorization: Bearer fb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"https://thefatbaby.com"}' \
--output qrcode.pngJavaScript
const res = await fetch('https://thefatbaby.com/api/v1/tools/qr-codes', {
method: 'POST',
headers: {
Authorization: 'Bearer fb_live_YOUR_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({ content: 'https://thefatbaby.com' })
});
const blob = await res.blob();Python
import requests
r = requests.post(
'https://thefatbaby.com/api/v1/tools/qr-codes',
headers={'Authorization': 'Bearer fb_live_YOUR_KEY'},
json={'content': 'https://thefatbaby.com'},
)
open('qrcode.png','wb').write(r.content)Request
{ "content": "https://thefatbaby.com" }Binary response: image/png with filename qrcode.png
Pricing & credits
1 credit per QR generate or read by default.
Common errors
- 400 — Missing content/text
- 402 — insufficient_credits
FAQ
Payment / EMV QR standards?
This API generates/decodes generic QR payloads (text, URL, WiFi, vCard). It is not a payments-network QR certification product.
Try without code
Use the matching online tool, then automate the same workflow with this API.