{
  "openapi": "3.0.1",
  "info": {
    "title": "Letterboxd Film Rating Tracker",
    "description": "Average rating, rating count, review count, watched, list and like counts, fans, Top 500 rank and the per-star rating histogram of any Letterboxd film. Look films up by link, title, IMDb or TMDB ID. Monitoring mode returns a film only when its figures move.",
    "version": "0.1",
    "x-build-id": "gn4cX2OXpG7z8YcWP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~letterboxd-film-rating-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-letterboxd-film-rating-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/neverempty~letterboxd-film-rating-tracker/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-letterboxd-film-rating-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/neverempty~letterboxd-film-rating-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-letterboxd-film-rating-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "films": {
            "title": "Films",
            "type": "array",
            "description": "One film per line, in any of these forms: a Letterboxd film link (https://letterboxd.com/film/parasite-2019/), a title with or without the year (Parasite (2019) or Parasite 2019), an IMDb ID or link (tt6751668 or https://www.imdb.com/title/tt6751668/), or a TMDB ID written as tmdb:496243 or a themoviedb.org movie link. A title is looked up with Letterboxd's own film search; add the year to pick the right film when several share a title, and check the searchMatch column. A line made only of digits is read as a title (1917, 2001). boxd.it short links are not followed: open them once and paste the letterboxd.com/film/ link. A film Letterboxd does not have comes back as a \"no-such-film\" row that is not charged.",
            "items": {
              "type": "string"
            }
          },
          "maxFilms": {
            "title": "Maximum films to return",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "With monitoring off, the run stops after this many film rows and lists the lines it did not read in a row that is not charged. Monitoring mode ignores this and checks every film you listed.",
            "default": 100
          },
          "monitoringMode": {
            "title": "Monitoring mode: return a film only when its figures have moved",
            "type": "boolean",
            "description": "Off = return every film you listed, charged per film row (film-returned). On = the average rating, rating count, review count, watched count, list count, like count, fans and Top 500 rank are remembered, and later runs return a film only when one of them differs, with the previous average rating, the previous rating count, the difference for each figure and the list of fields that moved. The first monitoring run of a film returns its full row with change set to first-check and remembers it as the starting point; it is charged as one film row. After that, a film that changed is charged as one film row, and a film that was compared and had not changed is charged as one check (film-checked). Figures are remembered per film, not per list, so adding a film does not reset the others. Do not put the same film in two schedules that run at the same moment.",
            "default": false
          },
          "monitorMode": {
            "title": "What counts as a change",
            "enum": [
              "any-change",
              "rating-change"
            ],
            "type": "string",
            "description": "Any figure = the film is returned when its average rating, rating, review, watched, list or like count, fans or Top 500 rank differs from what was remembered. Average rating only = the film is returned only when the average rating (two decimals, as Letterboxd gives it) moves. Popular films gain ratings every hour, so Any figure returns them on almost every run. A fan count that Letterboxd shows rounded (199K) counts as changed only when the shown figure moves.",
            "default": "any-change"
          },
          "resetMonitoringState": {
            "title": "Forget the remembered figures and start over",
            "type": "boolean",
            "description": "Clears every remembered film for this Actor on your account, so the next monitoring run returns each film again as a first-check row (charged as a film row). This affects all your monitoring runs, because figures are remembered per film rather than per list.",
            "default": false
          },
          "useProxy": {
            "title": "Move to fresh Apify datacenter proxy addresses when Letterboxd refuses",
            "type": "boolean",
            "description": "Requests go directly to Letterboxd with a pause between them. When Letterboxd refuses a request (HTTP 403 or 429), the run asks again from fresh Apify datacenter proxy addresses. Turn this off to never use a proxy: refusals are then retried a few times from the same address and, if they continue, the run stops and lists what it did not read.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}