Fetch Upload via URL

Upload a remotely-hosted media file that is less than 25GB


If a media file is already remotely hosted elsewhere (for example in Dropbox, Google, or Amazon) JW Player can ingest this file directly from the source. Using the link to a remotely-hosted file, a fetch upload ingests the media file into your JW Player account.

πŸ“˜

NOTE

sdfsdfsdfsdf



Upload media

Fetch uploads are performed with a single request:

Make an authenticated POST /v2/sites/{site_id}/media call to create a new media object. Within the upload object of the JSON body, set method to fetch and set download_url to the URL of the media. Within the metadata object of the JSON body, define the metadata of the media item. Refer to the POST /v2/sites/site_id/media/ reference for more information about acceptable metadata body parameters.

The API call will return a response with "status": "processing". This status indicates that the media object was successfully created and that media transcoding has begun.

In the following sample, only the media item's metadata.title is defined.

curl -X POST https://api.jwplayer.com/v2/sites/{site_id}/media \
  -H 'Authorization: Bearer {v2_api_secret}' \
  -H 'Content-Type: application/json' \
  -d '{ "upload": { "method": "fetch", "download_url": "http://LinkToMyVideo.com/video.mp4" }, "metadata": {"title": "My Fetch Video"} }'