×
Developer API
Upload programmatically to this gateway to get permanent links instantly.
curl -X POST -F "file=@your_file.zip" "http://www.uploader.teacherslex.site/?api=1"
import requests
url = "http://www.uploader.teacherslex.site/?api=1"
files = {'file': open('your_file.zip', 'rb')}
response = requests.post(url, files=files)
print(response.json())
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.uploader.teacherslex.site/?api=1");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'file' => new CURLFile('your_file.zip')
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch), true);
print_r($response);
?>
JSON Response Format:
{
"success": true,
"url": "https://files.catbox.moe/example.zip",
"name": "your_file.zip",
"size": 2048576,
"type": "permanent"
}