Wix Media Platform is an end-to-end solution for all modern web media management, handling images, video and audio in the most efficient way on the market. From upload, storage, metadata management and all the way to delivery, Wix Media Platform takes care of all possible media workflows.
npm install media-platform-js-sdk --save
git clone firstname.lastname@example.org:wix/media-platform-js-sdk.gitcd media-platform-js-sdknpm installnpm start
and open http://localhost:3333/ in the browser
var MediaPlatform = MediaPlatform;var mediaPlatform =domain: '<As appears in the application page>'appId: '<As appears in the application page>'sharedSecret: '<As appears in the application page>';
Authentication URL Node.js (with express) example:
/*** Your own authentication mechanism comes here*/app;
var UploadFileRequest = fileUploadFileRequest;/*** Only required for streams and buffers*/var uploadRequest = ;mediaPlatform;
var ImportFileRequest = fileImportFileRequest;var importFileRequest =;mediaPlatformfileManager;
File access can be restricted by setting the acl to 'private'. In order to access these files, a secure URL must be generated
var DownloadUrlRequest = fileDownloadUrlRequest;var downloadUrlRequest = ;var downloadUrl = mediaPlatform;
The Jobs API forms the basis for all long running asynchronous operations in the platform.
A job is created by a service that performs a long running operation, such as video transcode or file import.
The SDK provides a programmatic facility to generate image URLs
var Image = Image;/*** The Image constructor accepts a FileDescriptor, FileMetadata or URL*/var image = fileDescriptor;var url = imageurl;
Wix Media Platform provides a comprehensive set of APIs tailored for management of previously uploaded files.
var fileManager = mediaPlatformfileManager;
var ListFilesRequest = fileListFilesRequest;var listFilesRequest =;fileManager;
It is possible to create an archive from several files
var CreateArchiveRequest = archiveCreateArchiveRequest;var createArchiveRequest =;mediaPlatformarchiveManager;
Instead of uploading numerous files one by one, it is possible to upload a single zip file and order the Media Platform to extract its content to a destination directory.
var ExtractArchiveRequest = archiveExtractArchiveRequest;var destination = ;var source = ;var extractArchiveRequest =;mediaPlatformarchiveManager;
To initiate a transcode request
var transcodeSpecification =;var transcodeRequest =;transcodeManager;
Please use the issue tracker to report issues related to this library, or to the Wix Media Platform API in general.
We use a custom license, see LICENSE.md.
Wix.com is a leading cloud-based web development platform with more than 100 million registered users worldwide. Our powerful technology makes it simple for everyone to create a beautiful website and grow their business online.
Google Cloud Platform enables developers to build, test and deploy applications on Google’s reliable infrastructure. It offers computing, storage and application services for web, mobile and backend solutions.