Generalo eszkozok API
Vegpontok QR-kodok, faviconok, kepernyokepe es PDF-rogzitesek generalasahoz URL-ekbol. Egyes vegpontok JSON-t fogadnak el a multipart/form-data helyett -- ellenorizze a tartalomtipust minden vegpontnl.
QR-kod generalas
/api/qr-generateGeneruljon QR-kod kepet szovegbol vagy URL-bol. Kuldjom JSON testet (Content-Type: application/json). Szabhassa testre a szineket, a meretet es a hibajavitasi szintet.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Required | A QR-kodba kodolando tartalom (szoveg, URL, WiFi konfigurcio stb.) |
size | number | Optional | QR-kod merete pixelben. Alapertelmezett: 300 |
errorCorrection | string | Optional | Hibajavitasi szint: "L" (7%), "M" (15%), "Q" (25%), "H" (30%). Alapertelmezett: "M" |
fgColor | string | Optional | Eloterszin hexadecimalisban (pl. "#000000"). Alapertelmezett: "#000000" |
bgColor | string | Optional | Hatterszin hexadecimalisban (pl. "#ffffff"). Alapertelmezett: "#ffffff" |
PNG kepcurl -X POST https://freefiletools.io/api/qr-generate \
-H "x-api-key: fft_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "https://freefiletools.io",
"size": 400,
"errorCorrection": "H",
"fgColor": "#f97316",
"bgColor": "#ffffff"
}' \
-o qrcode.pngFavicon generalas
/api/favicon-generateGeneraljon teljes favicon csomagot egy forraslepbol. ZIP-fajlt ad vissza tobb favicon merettel (16x16, 32x32, 48x48 stb.) es egy ICO fajllal.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Forraskep fajl (PNG, JPG vagy SVG ajanlott) |
ZIP-fajl favicon fajlokkalcurl -X POST https://freefiletools.io/api/favicon-generate \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o favicons.zipHTML kepbe
/api/html-to-imageKeszitsen kepernyokepet egy weboldalrol. Kuldjom JSON testet (Content-Type: application/json). Szabhassa testre a viewport meretet es a kimeneti formatumot.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Required | Rogzitendo URL (tartalmaznia kell a https://-t) |
format | string | Optional | Kimeneti formatum: "png" vagy "jpg". Alapertelmezett: "png" |
width | number | Optional | Viewport szelesseg pixelben. Alapertelmezett: 1280 |
height | number | Optional | Viewport magassag pixelben. Alapertelmezett: 800 |
PNG vagy JPG kepcurl -X POST https://freefiletools.io/api/html-to-image \
-H "x-api-key: fft_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"format": "png",
"width": 1440,
"height": 900
}' \
-o screenshot.pngURL PDF-be
/api/url-to-pdfKonvertaljon weboldalt PDF-dokumentumma. Kuldjom JSON testet (Content-Type: application/json). Az oldal teljesen renderelodik a konvertalas elott.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Required | Konvertalando URL (tartalmaznia kell a https://-t) |
PDF-fajlcurl -X POST https://freefiletools.io/api/url-to-pdf \
-H "x-api-key: fft_your_api_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}' \
-o page.pdf