BoxDrive API Docs

Official documentation for file and folder uploads

Base Endpoint

Use this base URL for all API requests.

https://api.boxdrive.net

Single File Upload

Upload a single Google Drive file to get direct links.

GET /upload?api=KEY&drive_id=FILE_ID
ParameterDescription
api *Your unique API key.
drive_id *The Google Drive File ID or full link.

Example Request:

https://api.boxdrive.net/upload?api=your_api_key&drive_id=google_drive_file_id

Example Response:

{
  "status": "success",
  "fileStatus": "NewAdd",
  "key": "abc123xyz",
  "name": "example_video.mp4",
  "driveId": "google_drive_file_id",
  "size": "104857600",
  "download": "https://go.gadgetsmania.xyz/file/abc123xyz",
  "watch": "https://go.gadgetsmania.xyz/embed/abc123xyz"
}

Folder Upload (Bulk)

Upload all files from a Google Drive folder at once.

GET /upload?api=KEY&folder_id=FOLDER_ID
ParameterDescription
api *Your unique API key.
folder_id *The Google Drive Folder ID or full link.

Example Request:

https://api.boxdrive.net/upload?api=your_api_key&folder_id=google_drive_folder_id

Example Response:

{
  "status": "success",
  "type": "folder",
  "total_files": 2,
  "files": [
    {
      "status": "success",
      "fileStatus": "NewAdd",
      "key": "file_key_1",
      "name": "video_part1.mp4",
      "driveId": "drive_id_1",
      "size": "52428800",
      "download": "https://go.gadgetsmania.xyz/file/file_key_1",
      "watch": "https://go.gadgetsmania.xyz/embed/file_key_1"
    },
    {
      "status": "success",
      "fileStatus": "AlreadyExist",
      "key": "file_key_2",
      "name": "video_part2.mp4",
      "driveId": "drive_id_2",
      "size": "52428800",
      "download": "https://go.gadgetsmania.xyz/file/file_key_2",
      "watch": "https://go.gadgetsmania.xyz/embed/file_key_2"
    }
  ]
}

Error Responses

{
  "status": "error",
  "message": "Wrong Api"
}