{
  "openapi": "3.0.1",
  "info": {
    "title": "Letterboxd Scraper",
    "description": "Scrape Letterboxd, the cinephile community's film database. Pull film metadata (directors, cast, genres, runtime, ratings, tagline), search by title, browse popular films, or fetch a member's profile. Pure HTTP, no login required.",
    "version": "1.0",
    "x-build-id": "6Xtgunasf5aVFWcwG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~letterboxd-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~letterboxd-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~letterboxd-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "film",
              "search",
              "userProfile",
              "lists",
              "popular",
              "filmReviews",
              "byCrew",
              "userWatchlist"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "film"
          },
          "filmSlugs": {
            "title": "Film slugs / URLs (mode=film)",
            "type": "array",
            "description": "Film slugs (e.g. `parasite-2019`) or full Letterboxd URLs (`https://letterboxd.com/film/parasite-2019/`).",
            "default": [
              "parasite-2019"
            ],
            "items": {
              "type": "string"
            }
          },
          "filmSlug": {
            "title": "Film slug (mode=filmReviews)",
            "type": "string",
            "description": "Single film slug or URL whose reviews to scrape (e.g. `parasite-2019`)."
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Film title query (e.g. `Dune`, `The Godfather`). Note: the underlying autocomplete API returns at most ~100 results per query; for deeper results use `mode=film` with explicit `filmSlugs`."
          },
          "enrichSearchResults": {
            "title": "Enrich search results with full film page",
            "type": "boolean",
            "description": "When `mode=search`, also visit each film's page to pull full metadata (rating, genres, cast). Adds ~0.5s per result but enables year/rating/genre filters.",
            "default": false
          },
          "username": {
            "title": "Username (mode=userProfile / userWatchlist)",
            "type": "string",
            "description": "Letterboxd username (without @)."
          },
          "listUrl": {
            "title": "List URL (mode=lists)",
            "type": "string",
            "description": "Full Letterboxd list URL (e.g. `https://letterboxd.com/dave/list/official-top-250-narrative-feature-films/`). Leave empty to fetch the popular-lists index for the chosen `popularPeriod`."
          },
          "popularPeriod": {
            "title": "Popular period (mode=popular / lists)",
            "enum": [
              "week",
              "month",
              "year",
              "all-time"
            ],
            "type": "string",
            "description": "Time window for popularity ranking.",
            "default": "week"
          },
          "crewType": {
            "title": "Crew type (mode=byCrew)",
            "enum": [
              "director",
              "actor",
              "studio",
              "country"
            ],
            "type": "string",
            "description": "Which crew axis to browse films by.",
            "default": "director"
          },
          "crewSlug": {
            "title": "Crew slug (mode=byCrew)",
            "type": "string",
            "description": "Letterboxd slug for the chosen `crewType`. E.g. `christopher-nolan` (director), `timothee-chalamet` (actor), `a24` (studio), `japan` or `south-korea` (country)."
          },
          "minYear": {
            "title": "Min release year",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop films released before this year."
          },
          "maxYear": {
            "title": "Max release year",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop films released after this year."
          },
          "minRating": {
            "title": "Min average rating",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Drop films with average rating (0-5 scale ×100, so 350 = 3.5/5) below this. Optional."
          },
          "genre": {
            "title": "Genre filter",
            "enum": [
              "Action",
              "Adventure",
              "Animation",
              "Comedy",
              "Crime",
              "Documentary",
              "Drama",
              "Family",
              "Fantasy",
              "History",
              "Horror",
              "Music",
              "Mystery",
              "Romance",
              "Science Fiction",
              "TV Movie",
              "Thriller",
              "War",
              "Western"
            ],
            "type": "string",
            "description": "Drop films missing this genre. Also used to scope `mode=popular` URL."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 25
          },
          "proxy": {
            "title": "Apify Proxy (optional)",
            "type": "object",
            "description": "Optional Apify Proxy. Letterboxd's autocomplete endpoint (used by `mode=search`) blocks many datacenter IPs, so residential is recommended for search. `mode=film` and `mode=userProfile` work without proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}