Viewing Asset Information: GET

To view an asset's information, use GET /v2/assets/asset_id. To view information about all assets, do not specify an asset_id.

Note: For more information about Backlot REST API commands, see the Backlot API Reference.

To view asset information:

  1. For a single asset, use the GET method with the /v2/assets/asset_id route.
    [GET]/v2/assets/Y1dTdvMjq9QtOM

    Backlot returns a response similar to the following.

    {  
       "asset_type":"video",
       "duration":30,
       "name":"My Awesome Video",
       "preview_image_url":null,
       "created_at":"2011-07-22T18:54:19+00:00",
       "embed_code":"Y1dTdvMjq9QtOM",
       "time_restrictions":null,
       "updated_at":"2011-07-22T20:51:07+00:00",
       "external_id":null,
       "hosted_at":"http://www.mydomain.com",
       "original_file_name":"my_video.avi",
       "description":"The next Internet meme.",
       "status":"live"
    }
    Note:

    Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

  2. To view information about all assets, do not specify an asset_id.
    [GET]/v2/assets

    Backlot returns information about all assets.

Was this article helpful?