List Assets

To list all assets in your account call GET /api/asset:

curl --location --request GET 'https://livepeer.com/api/asset' \
--header 'Authorization: Bearer $API_TOKEN'
parametertypedescription
limitnumberNumber of items to include in the response
namestringFor custom sorting of the objects in the response list.

Retrieve an Asset

Retrieves the details of an Asset that has previously been imported or uploaded. Supply the unique Asset ID that was returned from your previous request, and Livepeer will return the corresponding Asset information.

curl --location --request GET 'https://livepeer.com/api/asset/$ASSET_ID' \
--header 'Authorization: Bearer $API_TOKEN'
{
    "id": "$ASSET_ID",
    "hash": [
        {
            "hash": "61b42e9371c1d29a9b99a7f62621e584",
            "algorithm": "md5"
        },
        {
            "hash": "b3b5891d6f0767012706fc8548f397b38876d309ca90689314c94615fb4c6e62",
            "algorithm": "sha256"
        }
    ],
    "name": "Example name",
    "size": 52615193,
    "status": "ready",
    "userId": "$USER_ID",
    "createdAt": 1644546528636,
    "updatedAt": 1644546541218,
    "videoSpec": {
        "format": "mp4",
        "tracks": [
            {
                "fps": 30,
                "type": "video",
                "codec": "h264",
                "width": 1280,
                "height": 720,
                "bitrate": 1225660,
                "duration": 309.966667,
                "pixelFormat": "yuv420p"
            },
            {
                "type": "audio",
                "codec": "aac",
                "bitrate": 127999,
                "channels": 2,
                "duration": 309.986395,
                "sampleRate": 44100
            }
        ],
        "duration": 309.986393
    },
    "playbackId": "$PLAYBACK_ID",
    "downloadUrl": "https://livepeercdn.com/asset/$PLAYBACK_ID/video"
}