Retrieve Asset

This endpoint retrieves a single Asset.

HTTP Parameters:

Table 1.
   
HTTP Method GET
URI /assets/{assetId}
Content-Type application/vnd.nativ.playout.v1+json
Normal Response 200 OK
Mode Synchronous
Authenticated Yes

Request Query Parameters:

Table 2.
Parameter Required Description
callback No Specifies the call back function for JSONP response.
token Yes Shared token used for authentication purposes

Response:

     {
    "asset": {
        "referenceName": "FileAsset reference name",
        "transcodes": [
            {
                "href": "http://testurl.com/playout/api/assets/235"
            },
            {
                "href": "http://testurl.com/playout/api/assets/236"
            }
        ],
        "proxies": [
            {
                "href": "http://testurl.com/playout/api/assets/1235"
            },
            {
                "href": "http://testurl.com/playout/api/assets/1236"
            }
        ],
        "copies": [
            {
                "href": "http://testurl.com/playout/api/assets/35"
            },
            {
                "href": "http://testurl.com/playout/api/assets/36"
            }
        ],
        "parent": "http://testurl.com/playout/api/assets/2",
        "id": 1,
        "lastModified": "19 Aug 2013 15:09:01 +0100",
        "description": "FileAsset description",
        "creationContext": "INGEST",
        "assetMetadata": {
            "attachments": [
                {
                    "size": 101012,
                    "fileName": "FileName - 1",
                    "description": "Description - 1",
                    "modified": "19 Aug 2013 15:09:01 +0100",
                    "url": "http://abc.com/",
                    "mimeType": "MimeType - 1"
                },
                {
                    "size": 101012,
                    "fileName": "FileName - 2",
                    "description": "Description - 2",
                    "modified": "19 Aug 2013 15:09:01 +0100",
                    "url": "http://abc.com/",
                    "mimeType": "MimeType - 2"
                }
            ],
            "assetContext": {
                "formatContext": {
                    "format": "AVI",
                    "streamCount": 2,
                    "audioStreamCount": 1,
                    "videoStreamCount": 1,
                    "fileSize": 21312,
                    "bitRate": 1313,
                    "duration": 12312312
                },
                "videoStreamContexts": [
                    {
                        "pixelAspectRatio": 15.6,
                        "width": 796,
                        "height": 560,
                        "frameRate": 1,
                        "language": "English",
                        "bitRate": 1313,
                        "codec": "AAC"
                    }
                ],
                "audioStreamContexts": [
                    {
                        "channels": 1,
                        "sampleRate": 12,
                        "bitsPerSample": 6,
                        "language": "English",
                        "bitRate": 1313,
                        "codec": "AAC"
                    }
                ]
            },
            "contentMetadata": {
                "notes": "note value",
                "boolean": true,
                "keywords": "no key words",
                "new-variable-1": "val -1",
                "new-variable-3": "true",
                "single-option": "yes",
                "colour": "#9A1D1D",
                "new-variable-2": 12
            },
            "images": [
                {
                    "description": "Description",
                    "master": false,
                    "title": "Image Title",
                    "href": "http://testurl.com/playout/api/images/10/raw",
                    "width": 200,
                    "height": 100,
                    "mimeType": "image/jpg",
                    "timecode": "00.00.00.00@25"
                },
                {
                    "description": "Description",
                    "master": true,
                    "title": "Image Title",
                    "href": "http://testurl.com/playout/api/images/10/raw",
                    "width": 200,
                    "height": 100,
                    "mimeType": "image/jpg",
                    "timecode": "00.00.00.00@25"
                }
            ]
        },
        "title": "FileAsset title one",
        "href": "http://testurl.com/playout/api/assets/1",
        "assetType": "media",
        "players": [
            {
                "id": 2,
                "type": "Type 2",
                "embedCode": "<iframe>2</iframe>",
                "href": "http://testurl.com/playout/api/players/2"
            },
            {
                "id": 1,
                "type": "Type 1",
                "embedCode": "<iframe>1</iframe>",
                "href": "http://testurl.com/playout/api/players/1"
            }
        ],
        "media": "https://www.cdnfoo.com/link/to/asset/on/cdn/name_of_file_on_cdn"
    }
}  
    

Was this article helpful?