List your lists

Your custom lists with name, privacy and item count.

GET https://cotlet.dev/api/v1/trakt/lists

read

Returns your personal lists with their ID, name, privacy setting ('private', 'link', 'friends' or 'public') and number of items. Use the ID in get_list_items and add_to_list.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/trakt/lists \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("trakt", "list_lists")
Node.js
const result = await cotlet.call('trakt', 'list_lists');
CLI
cotlet call trakt list_lists

Example response

JSON

{
  "lists": [
    {
      "list_id": "cozy-autumn",
      "name": "Cozy autumn",
      "privacy": "private",
      "item_count": 5
    },
    {
      "list_id": "movie-night",
      "name": "Movie night",
      "privacy": "friends",
      "item_count": 12
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.