Generate Videos/Images
Get Asset List
Get the assets list
Start with the API
GET https://devapi.vidnoz.com/v2/asset/list
Request Attributes
Parameter | Required | Type | Description |
---|---|---|---|
filetype | false | bool | File type: 0 = all types (default); 1=image; 2=video; 3=audio |
limit | false | int | Number of items per page. |
end_cursor | false | string | End cursor used for pagination, representing the unique identifier of the last item on the current page. Use this value as the starting point for the next request to fetch the following page. |
Example
Request Attributes
curl --request GET \
--url https://devapi.vidnoz.com/v2/asset/list?filetype=0 \
--header "accept: application/json" \
--header "Authorization: Bearer $API_KEY" \
Response Attributes
Parameter | Type | Description |
---|---|---|
assets | array | Asset List |
assets.id | string | Asset ID |
assets.name | string | Asset Name |
assets.filtype | int | File Type: 1=image; 2=video; 3=audio |
assets.filesize | int | File Size (byte) |
assets.format | string | File Format: png;jpg;gif;bmp;svg;webp;mp4;m4v;mov;webm;wav;mp3...... |
assets.dimension | obj | Content size, only for images and videos |
assets.dimension.width | int | Content width (unit: pixel) |
assets.dimension.height | int | Content height (unit: pixel) |
assets.duration | int | Content duration (unit: second), only for video and audio types. |
assets.download_url | string | Download Link |
Example
Response Attributes
{
"code": 200,
"message": "ok",
"data": {
"total": 22,
"end_cursor": "R2NGYTJ1RVFWUzhzOUMvVFNWeUlsUT09",
"assets": [
{
"id": 154,
"name": "xxx",
"filetype": "3",
"filesize": 450564,
"format": "mp3",
"dimension": '',
"dimension.width": 0,
"dimension.height": 0,
"duration": 9.39,
"download_url": "https://r2-aivid-000-prod.214dcedd27630abef236dcb67de0ce92.r2.cloudflarestorage.com/10/asset/202503/67ca53930a553.jpg?response-content-disposition=attachment%3B%20filename%3Ddowsssn55.jpg&response-content-type=image%2Fjpeg&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=91ac9d3ee865be05c575d38c9bdd1275%2F20250313%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20250313T031916Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Signature=aebd39f82b2970644fe2394f39d6a71ec7ea7a0a71c438d82d52ceede84f34d0"
},
{
"id": "R2NGYTJ1RVFWUzhzOUMvVFNWeUlsUT09",
"name": "20201209165356",
"filetype": 1,
"filesize": 19690,
"format": "png",
"dimension": "28x28",
"dimension.width": "28",
"dimension.height": "28",
"duration": 0,
"download_url": "https://r2-aivid-000-prod.214dcedd27630abef236dcb67de0ce92.r2.cloudflarestorage.com/10/asset/202503/67c97378cbe1a.png?response-content-disposition=attachment%3B%20filename%3DQQ%25E5%259B%25BE%25E7%2589%258720201209165356.png&response-content-type=image%2Fpng&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=91ac9d3ee865be05c575d38c9bdd1275%2F20250313%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20250313T031916Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Signature=1a237d80c9354fabc93e2e93af7dd410e31ac6d592462cc959163cf54df6261d"
}
]
}
}