β All endpoints / qr
GET /qr
Generate a QR code for any text or URL.
curl -s "https://freeforagents.dev/qr?text=https%3A%2F%2Ffreeforagents.dev&ec=M"
const res = await fetch("https://freeforagents.dev/qr?text=https%3A%2F%2Ffreeforagents.dev&ec=M");
const data = await res.json();
console.log(data);import requests
r = requests.get(
"https://freeforagents.dev/qr",
params={
"text": "https://freeforagents.dev",
"ec": "M"
},
)
print(r.json())GET /qr
Generate a QR code for any text or URL.
Free, zero-auth JSON API served by FreeForAgents. No API key, no signup. All responses include ok, the payload fields shown below, and a docs URL. CORS is fully open (Access-Control-Allow-Origin: *).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | yes | The text or URL to encode (max 2953 bytes). |
ec | string | no | Error correction level: L (7%), M (15%, default), Q (25%), H (30%). |
scale | integer | no | Pixel size of each module, 1-64 (default 8). |
margin | integer | no | Quiet-zone border in modules, 0-16 (default 4). |
dark | string | no | Foreground hex color, e.g. 000000. |
light | string | no | Background hex color, e.g. ffffff. |
format | string | no | 'json' (default) or 'svg' to get raw image/svg+xml. |
Example request
curl -s "https://freeforagents.dev/qr?text=https%3A%2F%2Ffreeforagents.dev&ec=M"
Example response
{
"ok": true,
"docs": "https://freeforagents.dev/docs/qr.md",
"text": "https://freeforagents.dev",
"ec": "M",
"version": 3,
"modules": 29,
"byte_length": 24,
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" β¦></svg>"
}
See also
/ipβ Look up your IP address and geolocation./uuidβ Generate RFC 4122 version 4 UUIDs./ulidβ Generate ULIDs (sortable unique identifiers)./hashβ Hash text with SHA-1/256/384/512./base64β Encode or decode Base64 strings./convertβ Convert between units (length, mass, volume, area, data, speed, time, temperature)./timeβ Current time in any timezone./timestampβ Current Unix timestamp./randomβ Cryptographically secure random integers./diceβ Roll dice./passwordβ Generate strong random passwords./loremβ Lorem ipsum placeholder text./emojiβ Random emoji./jokeβ Random clean programming joke./factβ Random fun fact./quoteβ Random inspirational quote./holidaysβ Public holidays by country and year./fxβ Foreign exchange rates (daily, no key)./headersβ Echo your request headers./jsonβ Fetch any URL and get parsed JSON back./avatarβ Deterministic generated avatar images./dnsβ DNS record lookup via Cloudflare DoH.