Complete reference for integrating with AnonMP4 programmatically
The AnonMP4 API provides programmatic access to upload, manage, and stream video content. All API endpoints return JSON responses and support modern HTTP methods.
multipart/form-data (for uploads), application/json (for data)application/jsonCurrently, the API does not require authentication for basic operations. All uploads are anonymous by default.
No registration or API keys required. Simply make HTTP requests to the endpoints listed below.
Upload a video file directly to the platform with optional metadata and privacy settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
file | Required | Video file (max 20GB, video/* mime types) |
title |
string | Optional | Video title (defaults to filename) |
privacy |
string | Optional | Privacy level: public, unlisted, or password (default: public) |
password |
string | Optional | Password for protected videos (required if privacy=password) |
curl -X POST "https://anonmp4api.xyz/upload" \ -F "file=@/path/to/video.mp4" \ -F "title=My Awesome Video" \ -F "privacy=public"
{
"success": true,
"video_id": "NLEusIzEvLs3s3B",
"title": "BigBuckBunny",
"thumbnail": "https://red-truth-1e89.ceres54.workers.dev/z9HR0x7HM6Lb59k4w6r15e8z92Np9y8r15b5w6S92z9WRo8y81Bb5ZXZk4ZXx7_z9WQ9ODt3b5Mq0Ea4MTMb5OTx74OCZ0v5XBo8PTM3Jn7o8p9v5D0c6NSZ0z9249Vq0NTNU5z9Yo8VUTq0NYNn75ESVo8p9z9Ug00Q0RLTU00Jn7Zf9PWV4w6GVb5y8n7Fh1Xa4t3/NLEusIzEvLs3s3B_hd.webp",
"watch_url": "https://anonmp4.to/v/NLEusIzEvLs3s3B",
"embed_url": "https://anonmp4.to/embed/NLEusIzEvLs3s3B",
"delete_url": "https://anonmp4.to/delete?id=NLEusIzEvLs3s3B&hash=uniqehash",
"upload_date": "2026-01-08T10:30:00Z",
"message": "File received and queued for processing"
}
Retrieve detailed information about a specific video including metadata, streaming URLs, and download options.
| Parameter | Type | Description |
|---|---|---|
video_id |
string | Unique video identifier |
curl -X GET "https://anonmp4api.xyz/info/NLEusIzEvLs3s3B"
{
"success": true,
"title": "BigBuckBunny",
"duration": "09:56",
"watch_url": "https://anonmp4.to/v/8N5dnc8bmwGxTQT",
"embed_url": "https://anonmp4.to/embed/8N5dnc8bmwGxTQT",
"thumbnail": "https://red-truth-1e89.ceres54.workers.dev/z9HR0x7HM6Lb59k4w6r15e8z92Np9y8r15b5w6S92z9WRo8y81Bb5ZXZk4ZXx7_z9WQ9ODt3b5Mq0Ea4MTMb5OTx74OCZ0v5XBo8PTM3Jn7o8p9v5D0c6NSZ0z9249Vq0NTNU5z9Yo8VUTq0NYNn75ESVo8p9z9Ug00Q0RLTU00Jn7Zf9PWV4w6GVb5y8n7Fh1Xa4t3/NLEusIzEvLs3s3B_hd.webp",
"upload_date": "2025-12-28 18:01:38",
"privacy_type": "public",
"status": "active"
}
The API uses conventional HTTP response codes and returns detailed error information in JSON format.
| Status Code | Meaning |
|---|---|
200 | Success |
400 | Bad Request - Invalid parameters |
404 | Not Found - Video does not exist |
413 | Payload Too Large - File exceeds size limit |
415 | Unsupported Media Type - Invalid file format |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
| Error Code | Description |
|---|---|
E_NO_FILE | No file provided in upload request |
E_INVALID_SIZE | File size exceeds 20GB limit |
E_INVALID_TYPE | File is not a supported video format |
E_INVALID_PRIVACY | Invalid privacy value provided |
E_PASSWORD_REQUIRED | Password required for password-protected videos |
E_UPLOAD_FAILED | Upload processing failed |
E_HANDLER_FAILED | Upload handler failed |
E_VIDEO_NOT_FOUND | Requested video does not exist |
{
"success": false,
"error": {
"code": "E_INVALID_SIZE",
"message": "File size exceeds the 20GB limit",
"details": {
"max_size": 53687091200,
"received_size": 107374182400
}
}
}