File2Go API
Every file tool on File2Go can be called from your own scripts. API access is included in the Ultra plan: create your key on your account page.
Run a tool
Send the files as multipart/form-data to POST /api/run/<tool>, where <tool> is the last part of the tool's address (for example /tool/png-to-jpg → png-to-jpg).
curl -H "Authorization: Bearer f2gapi_YOUR_KEY" \
-F "files=@photo.png" \
https://file2go.eu/api/run/png-to-jpg
The answer is JSON with download links:
{"job": "…", "files": [{"name": "photo.jpg", "size": 48213, "url": "/dl/…/photo.jpg"}], "zip": null, "expires_in": 259200}
Download the result from the returned url. Several files go in several files fields; tool options (for example quality) are extra form fields with the same names as on the tool page.
Limits
Ultra limits apply (files up to 10 GB, up to 250 files per run, results kept 72 hours), up to 2000 API runs per day and a short-term rate limit per address. Errors come back as JSON {"error": "…"} with status 4xx.
The list of tools is available as JSON at /api/catalog. Only server-side tools (files you upload) can be called this way; browser-only tools such as the JSON formatter run on your own device.