This article is a deep dive into everything you need to know about the 1fichier API key: what it is, how to obtain it, security best practices, a complete breakdown of API methods, and real-world code examples.
curl -X POST https://api.1fichier.com/v1/delete.cgi \ -d "apikey=YOUR_API_KEY&file_url=FILE_URL_TO_DELETE"
Then reference it in scripts as $ONEFICHIER_API .
| Method | Endpoint | Purpose | |--------|----------|---------| | POST | /upload/get_upload_server.cgi | Get a server URL to upload a file | | POST | /upload/upload.cgi | Perform the actual file upload | | POST | /upload/add_url.cgi | Remote upload from a URL (no download to your server first) | | POST | /folder/add.cgi | Create a new folder | | POST | /file/delete.cgi | Delete a file or folder | | POST | /file/rename.cgi | Rename a file/folder | | POST | /file/move.cgi | Move items between folders | | POST | /file/ls.cgi | List contents of a folder (returns JSON) | | POST | /file/info.cgi | Get metadata (size, upload date, hash) | | POST | /link/get_link.cgi | Generate a downloadable link (including premium direct links) |
Enter your username/email and use your API key in the password field (or the designated API slot depending on the version). 3. Custom Python or cURL Scripts