Home Browse FAQ About Contact

🚀 API Documentation

Complete reference for integrating with AnonMP4 programmatically

📋 API Overview

The AnonMP4 API provides programmatic access to upload, manage, and stream video content. All API endpoints return JSON responses and support modern HTTP methods.

Base URL

https://anonmp4api.xyz/

Content Types

  • Request: multipart/form-data (for uploads), application/json (for data)
  • Response: application/json

Key API Features

  • Upload videos up to 20GB in size
  • Support for all major video formats (MP4, AVI, MKV, MOV, etc.)
  • Multiple privacy levels (public, unlisted, password-protected)
  • Multi-audio streaming supported - multiple audio tracks for different languages
  • No account registration required - completely anonymous uploads

🔐 Authentication

Currently, the API does not require authentication for basic operations. All uploads are anonymous by default.

Anonymous Usage

No registration or API keys required. Simply make HTTP requests to the endpoints listed below.

📤 Upload Video

Upload a video file directly to the platform with optional metadata and privacy settings.

POST
https://anonmp4api.xyz/upload

Request Parameters

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)

Example Request

cURL
JavaScript
Python
PHP
Node.js
Go
curl -X POST "https://anonmp4api.xyz/upload" \
  -F "file=@/path/to/video.mp4" \
  -F "title=My Awesome Video" \
  -F "privacy=public"

Success Response

{
  "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"
}

📹 Get Video Information

Retrieve detailed information about a specific video including metadata, streaming URLs, and download options.

GET
/info/{video_id}

URL Parameters

Parameter Type Description
video_id string Unique video identifier

Example Request

cURL
JavaScript
PHP
Node.js
curl -X GET "https://anonmp4api.xyz/info/NLEusIzEvLs3s3B"

Success Response

{
    "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"
}

âš ī¸ Error Codes

The API uses conventional HTTP response codes and returns detailed error information in JSON format.

HTTP Status Codes

Status Code Meaning
200Success
400Bad Request - Invalid parameters
404Not Found - Video does not exist
413Payload Too Large - File exceeds size limit
415Unsupported Media Type - Invalid file format
429Too Many Requests - Rate limit exceeded
500Internal Server Error

API Error Codes

Error Code Description
E_NO_FILENo file provided in upload request
E_INVALID_SIZEFile size exceeds 20GB limit
E_INVALID_TYPEFile is not a supported video format
E_INVALID_PRIVACYInvalid privacy value provided
E_PASSWORD_REQUIREDPassword required for password-protected videos
E_UPLOAD_FAILEDUpload processing failed
E_HANDLER_FAILEDUpload handler failed
E_VIDEO_NOT_FOUNDRequested video does not exist

Error Response Format

{
  "success": false,
  "error": {
    "code": "E_INVALID_SIZE",
    "message": "File size exceeds the 20GB limit",
    "details": {
      "max_size": 53687091200,
      "received_size": 107374182400
    }
  }
}