Get watch history

What you watched and when, newest first.

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

read

Returns your watch history in pages, newest first, with the date of each play. A title watched twice appears twice. Filter by type or by a start and end date to check a batch you logged.

Parameters

Parameters: get_history
NameTypeDescription
type string string Only this kind of title: 'movies', 'shows', 'seasons' or 'episodes'. Default: all.
start_at datetime datetime Only plays after this time.
end_at datetime datetime Only plays before this time.
page integer integer Page number, starting at 1. Default: 1.
limit integer integer Items per page. Default: 20.

Request

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

Example response

JSON

{
  "items": [
    {
      "type": "episode",
      "show": "Slow Horses",
      "season": 4,
      "episode": 3,
      "title": "Hello Goodbye",
      "watched_at": "2026-10-10T21:40:00Z"
    },
    {
      "type": "movie",
      "title": "Perfect Days",
      "year": 2023,
      "watched_at": "2026-10-06T19:30:00Z"
    }
  ],
  "page": 1,
  "total_pages": 4
}

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.