Skip to main content
GET
/
collection
Get user collections
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, including the default collection.
import videodb

conn = videodb.connect(api_key="your_api_key")
collections = conn.get_collections()

for coll in collections:
    print(f"{coll.id}: {coll.name}")
Returns all collections you have access to, including public collections you’ve accessed.

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Response

200 - application/json

List of collections

success
boolean
Example:

true

data
object