curl --request GET \
--url https://api.videodb.io/image/ \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"images": [
{
"id": "img-12345",
"name": "image.jpg",
"collection_id": "default",
"width": 1920,
"height": 1080,
"size": 262144,
"url": "https://assets.videodb.io/img/12345.jpg",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
}Retrieve a paginated list of all images in your collection
curl --request GET \
--url https://api.videodb.io/image/ \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"images": [
{
"id": "img-12345",
"name": "image.jpg",
"collection_id": "default",
"width": 1920,
"height": 1080,
"size": 262144,
"url": "https://assets.videodb.io/img/12345.jpg",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
}import videodb
conn = videodb.connect(api_key="your_api_key")
coll = conn.get_collection()
images = coll.get_images()
for image in images:
print(f"Image: {image.name} (ID: {image.id})")
collection_id parameteri- prefix (e.g., i-a1b2c3d4)