curl --request GET \
--url https://api.videodb.io/collection \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"collections": [
{
"id": "default",
"name": "My Collection",
"description": "Collection description",
"is_public": false,
"owner": "u-12345",
"created_at": "2023-11-07T05:31:56Z"
}
],
"default_collection": "default"
}
}Retrieve all collections in your account
curl --request GET \
--url https://api.videodb.io/collection \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"collections": [
{
"id": "default",
"name": "My Collection",
"description": "Collection description",
"is_public": false,
"owner": "u-12345",
"created_at": "2023-11-07T05:31:56Z"
}
],
"default_collection": "default"
}
}import videodb
conn = videodb.connect(api_key="your_api_key")
collections = conn.get_collections()
for coll in collections:
print(f"{coll.id}: {coll.name}")