API Reference
POST /ru/tools/api/public-upload/
- Body: multipart/form-data with field
file
- Max size: 200 MB. Returns JSON with id, url, expires_at.
- No authentication required. Files expire automatically after 48 hours.
# Upload a file
curl -X POST -F "file=@myfile.bin" /ru/tools/api/public-upload/
# Response
{
"id": "aB3xY7",
"name": "myfile.bin",
"size": 1048576,
"content_type": "application/octet-stream",
"expires_at": "2026-07-21T18:42:13+00:00",
"url": "https://ipaddress.world/tools/api/public-dl/aB3xY7/"
}
GET /ru/tools/api/public-dl/<id>/
Returns the raw file as an attachment. Direct download, no HTML wrapper.