{
  "openapi": "3.0.1",
  "info": {
    "title": "Letterboxd Scraper — Films, Reviews, Ratings & Lists",
    "description": "Scrape Letterboxd films and reviews: average rating, rating histogram, genres, cast and crew, plus reviews with star rating, full text, dates and likes. From film URLs, slugs, lists or browse pages.",
    "version": "0.1",
    "x-build-id": "2u1opjbsvIatGrqj8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~letterboxd-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-letterboxd-scraper",
        "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/tortuga~letterboxd-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-letterboxd-scraper",
        "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/tortuga~letterboxd-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-letterboxd-scraper",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "reviews",
              "films",
              "list",
              "browse"
            ],
            "type": "string",
            "description": "What to scrape. `reviews`: `review` items for each film (star rating, full text, dates, likes, comments). `films`: one `film` item per film (ratings, rating histogram, cast, crew, genres, themes, release dates, stats). `list`: `list_entry` rows from Letterboxd lists. `browse`: `list_entry` rows from browse pages such as popular this week, a genre or a decade. In `films`/`reviews` mode, list and browse URLs are expanded into their first films (see `maxFilmsPerListing`).",
            "default": "reviews"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Letterboxd URLs, one per line: films (`/film/parasite-2019/`), film reviews with any order or rating filter (`/film/parasite-2019/reviews/by/added/`, `/film/parasite-2019/reviews/rated/5/by/activity/`), lists (`/official/list/letterboxds-top-500-films/`, `/<member>/list/<name>/`) or browse pages (`/films/popular/this/week/`, `/films/genre/horror/`, `/films/decade/1990s/`).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "filmSlugs": {
            "title": "Film slugs",
            "type": "array",
            "description": "Letterboxd film slugs (the part after `/film/` in the URL), one per line, e.g. `parasite-2019`, `the-godfather`, `everything-everywhere-all-at-once`.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Film titles, one per line (add the year for remakes, e.g. `dune 2021`). In `films`/`reviews` mode each term resolves to its best match from Letterboxd's film search; in `list`/`browse` mode the search results themselves are returned as rows.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Overall cap on dataset items for the run (all item types combined). Keeps cost predictable.",
            "default": 100
          },
          "maxReviewsPerFilm": {
            "title": "Max reviews per film",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on reviews collected for each film in `reviews` mode. Letterboxd shows at most 3,072 reviews per sort order; above that the actor continues through each star-rating bucket, so popular films can yield up to about 30,000 reviews.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "activity",
              "added",
              "added-earliest",
              "entry-rating",
              "entry-rating-lowest"
            ],
            "type": "string",
            "description": "Order of reviews, same as the website: `activity` = popular (most liked and discussed), `added` = newest, `added-earliest` = oldest, `entry-rating` = highest rated, `entry-rating-lowest` = lowest rated. A reviews URL in Start URLs keeps its own order.",
            "default": "activity"
          },
          "reviewRating": {
            "title": "Only reviews with this rating",
            "enum": [
              "0.5",
              "1",
              "1.5",
              "2",
              "2.5",
              "3",
              "3.5",
              "4",
              "4.5",
              "5",
              "none"
            ],
            "type": "string",
            "description": "Keep only reviews with this star rating (`0.5` to `5` in half stars) or `none` for reviews without a rating. Leave empty for all."
          },
          "fetchFullReviewText": {
            "title": "Full text of long reviews",
            "type": "boolean",
            "description": "Long reviews are shortened on Letterboxd's review pages. When on, the full text is loaded for those reviews only (one small extra request each; most reviews are short and need none).",
            "default": true
          },
          "fetchReviewPublishDates": {
            "title": "Publish date for diary reviews",
            "type": "boolean",
            "description": "Reviews logged with a diary date show the watched date on listing pages; their publish date is only on the review's own page. When on, that page is loaded for each such review (one extra request per review, slower). Reviews without a diary date always get `publishedAt` for free.",
            "default": false
          },
          "maxFilmsPerListing": {
            "title": "Max films per list / browse page / search",
            "minimum": 1,
            "type": "integer",
            "description": "In `films` and `reviews` mode, how many films to take from each list, browse or search URL before scraping their details or reviews.",
            "default": 20
          },
          "reviewsNewerThan": {
            "title": "Only reviews newer than",
            "type": "string",
            "description": "Only reviews posted on or after: a date (YYYY-MM-DD) or a period such as '7 days' or '24 hours'. Reviews are then read newest first (`reviewSort` becomes `added`) and paging stops at the first page that ends with an older review. Letterboxd lists diary reviews with the watched date only; the actor places them by their position in the newest-first list and fetches the publish date (one small extra request) only for the few reviews near the cutoff that their neighbours cannot place. Leave empty for no date limit. `reviews` mode only."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this input returned and output only new items: new reviews in `reviews` mode (read newest first; paging stops where the previous run's reviews begin, and full texts are loaded for new reviews only), films whose average rating or Top 500 rank changed in `films` mode, list or browse rows that are new or whose average rating changed in `list` and `browse` mode (there **Max items** caps how many rows are checked, so every run watches the same top of the list). Use with a Schedule; unchanged items are not charged.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input. Only used with **Only new or changed items**."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is recommended. Cloudflare challenges Apify datacenter IPs on review pages 2+ and full review texts at times; the actor then retries through Apify residential proxy automatically (about 30 KB per page, billed per GB by Apify, roughly $0.00003 per review). Choose RESIDENTIAL to use it from the start.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}