Using the API, it's possible to generate direct download links (valid for 1 hour) and get file contents without interacting with our website.
Generate a file download link
$ curl "https://ufile.io/v1/download/FILE_SLUG" \
-H "X-API-KEY: YOUR_API_KEY"
Response Example
"https://cdn-ps-la-2.ufile.io/get/l4i9b3ap?token=MGM4MDM5MDJiNDY1ZDdmZDJiY......"
Once you have the direct file URL, you can download the contents using your preferred method (E.G - wget, cURL etc.)
Generated file links will be valid for 1 hour, and only available to your IP address