To access files via our API you'll need an api_key, which is available on our Business plan, and can be found here

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=MGM4MDM5MDJiNDY1ZDdmZDJiYjA0ZjM0MWU1YjFlYjMzMTQ0NzI0Yzg0NDQzYTY5ODkxMWUwMmRmZWNlOThmOWNjNDFmN2Y1MmE0ZjI2YTJjZmJkNjE3Njg3YjFhNTYzNTc4ZmQ1MTRiYWNmNmMwZDU4ODlkYjU2ZDliNzBjMDhGd2MvQVYwc0JpOWNhQmg3MytZc0xZaFBza3dlTUg2R09UNVFybGtNL0lqWEFXVUg0UG4rdkh4cllGVHA5K3gyc1UyS0h2T05IdWg0Tkhic2hPWFg3Smt2OHJ2d0R2azI2bGFQeEsyOWFhMjhabkZ6YmR3Snk0blZEVGxQV1lHUHRzWUYvZFdLaVc3WUc1TXY5SU1Nb3RKY2VIaDhzNEU5dTZDa3ZLUlRrcVd2cmlydXp0Y0lqa04vL1BzcitHMjVyOHorU2RhU0htaXNLQWtzRDd2ekNxdFdRVkxzQWJkNTZnMWI2R1NZSUUwPQ=="

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
Was this article helpful?
Cancel
Thank you!