Letterboxd Scraper: Films, Ratings & Reviews

Live-tested letterboxd scraper guide: film JSON-LD and its CDATA catch, rating histograms, the review wall, list pages. Every command ran in October 2026.

MMotherlode Lab11 min read
Magpie title card: Letterboxd Scraper: Films, Ratings & Reviews

Letterboxd does not defend all of its pages equally. I pointed a letterboxd scraper at the site on 2026-10-29 from a home connection and found a path-selective wall: film pages answer plain HTTPS requests with no fight, while the review listings behind them return Cloudflare 403s to the same client. A scraper that treats letterboxd.com as one uniform target loses twice, once by over-engineering the film pages and once by giving up on data that is one header away.

The map below covers every door that matters: film metadata, the rating histogram, reviews, lists, and Letterboxd’s own undocumented film endpoint.

All commands use Magpie, a local CLI scraper (free, AGPL/commercial dual license). Static fetch handled the film pages; the review pages needed Magpie’s --header-profile chrome flag, which sends Chrome’s header set over a Chrome-matched TLS handshake. That is not CAPTCHA bypass. Cloudflare never showed a puzzle here; it just doubted the client’s fingerprint, and the flag settles the doubt.

The rules Letterboxd prints for you

The User-agent: * block of letterboxd.com/robots.txt was generated by Dark Visitors and reads like a privacy policy for crawlers. Twenty-three AI agents are banned outright by name, GPTBot, CCBot, ClaudeBot, Bytespider and Google-Extended among them, plus an Algolia search indexer in its own block. Everyone else gets a short Disallow list:

Pattern What it blocks Why a scraper cares
/*/by/* Every sorted view Kills /reviews/by/activity/ and /films/by/rating/ for crawlers
/*/popular/this/* Popularity drill-downs The default /films/popular/ stays allowed (in theory)
/*/on/* Availability filters Streaming-availability views, JS-rendered
/*/tag/* Member tag lists Tags belong to members; skip them
/*/genre/*, /*/country/*, /*/language/*, /*/decade/* Browse facets JS-rendered anyway, see below
/films/year/*, /films/*/year/* Year browse Same
/films/*/size/large/* Large-poster grid views Letterboxd’s own comment: “and therefore stats”
/*/friends/* Friend activity Member data; off-limits on principle

New to the file itself? Robots.txt for web scraping is the two-minute version.

Two absences matter as much as the rules. No Crawl-delay line exists, so pacing is your judgment; I kept 2.5 to 3 seconds between requests. And no Sitemap: lines exist. When I probed https://letterboxd.com/sitemap.xml directly, Cloudflare answered with a managed challenge, and magpie map fails the same way. There is no sitemap route into this site.

Magpie’s crawl command enforces the robots file before it fetches. Feed it a disallowed seed and it refuses:

$ magpie crawl "https://letterboxd.com/film/inception/reviews/by/activity/" --corpus --max-pages 2
Error: crawl: seed letterboxd.com: robots.txt disallows crawl

The /by/ sort paths are the ones a naive scraper reaches for first, since every review page links to them. Use the unsorted forms instead (more on that below). The legal frame for all of this, Letterboxd’s terms and the copyright status of member writing, is covered in is web scraping legal; reviews are someone’s prose, so bulk-republishing them is a different claim than analyzing them.

What a film page hands over without a fight

One plain request to https://letterboxd.com/film/inception/ returned a 313 KB HTML document, no challenge, no escalation. The page hides most of its payload in two places, and a clean-markdown scraper sees neither by default.

The first hiding place is a schema.org Movie block in JSON-LD, and it is the best film record on the site:

JSON-LD field Inception value (2026-10-29)
name Inception
director Christopher Nolan (+ sameAs link to his Letterboxd page)
actor Full cast, each with a sameAs Letterboxd link
genre Action, Science Fiction, Crime
duration PT2H28M
inLanguage en, fr, ja, sw
countryOfOrigin UK, USA
productionCompany Warner Bros., Legendary, Syncopy
dateCreated 2010-07-08 (added to Letterboxd)
image Poster URL on a.ltrbxd.com
aggregateRating 4.24, 4,562,968 ratings, 450,251 reviews, scale 0.5 to 5

The catch is printed right in the source. Letterboxd wraps the block in a JavaScript comment: /* <![CDATA[ */ ... /* ]]> */. Strict JSON-LD parsers refuse it, and Magpie’s structured_data sidecar reports zero blocks on every Letterboxd page I tried. The data is fine; the wrapper just needs stripping first. This is the same recipe from extracting JSON-LD, with one more line:

$ magpie scrape "https://letterboxd.com/film/inception/" --page-format raw --out inception.html
$ python3 - <<'EOF'
import re, json
html = open('inception.html').read()
block = re.search(r'application/ld\+json">(.*?)</script>', html, re.S).group(1)
block = re.sub(r'/\*.*?\*/', '', block, flags=re.S)
movie = json.loads(block)
print(movie['name'], movie['aggregateRating']['ratingValue'])
EOF
Inception 4.24

The second hiding place is meta markup that survives any parser: og:description carries the synopsis, og:image the 1200-by-675 backdrop, and twitter:data2 the average rating as the literal string “4.24 out of 5”. The clean markdown keeps the synopsis and the runtime, drops the cast sidebar, and varies in size from film to film (1,354 cleaned characters for one title, 7,181 for another), because the extractor’s main-content pick differs page to page. For stable output, parse the raw HTML, not the cleaned markdown.

Two details worth knowing before you build URL lists. Letterboxd slugs are exact: film/godfather is Godfather (1991), a Lal and Siddique film with 3,888 ratings, while The Godfather lives at film/the-godfather. And the page’s “More at” links expose per-film IMDb and TMDB IDs (tt1375666, TMDB 27205), which is the bridge to richer data later.

Ratings: the average is static, the histogram is one request away

The aggregateRating block gives you the weighted average and two counts. If that is all you need, plain static fetch is enough, and it survived nine out of nine film-page requests during my tests at 2.5-second spacing.

The star distribution is a separate story. The page marks the slot for it but ships it as a fragment: <div class="csi js-csi" data-src="/csi/film/inception/rating-histogram/">. Cloudflare challenges that fragment URL for a bare curl client, and it opens for the same Chrome header profile the review pages want:

$ magpie scrape "https://letterboxd.com/csi/film/inception/rating-histogram/" \
    --header-profile chrome --page-format raw --out histogram.html
$ grep -o 'title="[^"]*ratings[^"]*"' histogram.html
title="5,657 half-★ ratings (0%)"
title="16,485 ★ ratings (0%)"
# five middle bars omitted
title="1,360,741 ★★★★ ratings (30%)"
title="1,505,994 ★★★★★ ratings (33%)"
title="Weighted average of 4.24 based on 4,562,990 ratings"

Ten bars, each with an exact count and percentage. Compare the totals and you learn something about the site: the histogram said 4,562,990 ratings, the JSON-LD block 4,562,968, fetched minutes apart. These numbers move as people rate. If your dataset records a snapshot, date it.

Reviews live behind the TLS wall

This is the door most scraper tutorials get wrong, because the failure is confusing: the film page loads, then /film/inception/reviews/ returns 403 from the same process. I reproduced the block three times with plain static fetch and once with bare curl. Cloudflare is scoring the client, not the path.

Magpie’s --header-profile chrome flips it:

$ magpie scrape "https://letterboxd.com/film/inception/reviews/" \
    --header-profile chrome --out reviews.json

That returned the real page: title “Reviews of Inception (2010)”, about twelve full reviews in the markdown, each with the reviewer’s display name in the avatar alt text. Pagination is server-side and real. I fetched pages 1 and 2 of the same listing and the paragraph sets overlapped by zero lines. Page two is ?page-free: the URL is /film/inception/reviews/page/2/.

Three constraints keep this section honest:

  1. The sort paths are robots-disallowed. /reviews/by/activity/ matches /*/by/*, so a crawler must not take it (Magpie’s crawl refuses; a single scrape is a user-directed fetch and leaves the judgment to you). The unsorted /reviews/ URL serves the same reviews in the same activity order.
  2. Review permalinks are diary pages. Each review in the listing links to /{username}/film/{film-slug}/, and that page resisted both my attempts: the chrome profile fetched an empty shell that the quality gate rejected, and browser rendering timed out waiting for load. The listing pages carry the full text, so this costs you pagination work, not data.
  3. Member profile pages are hard-walled. /{username}/ returned an empty page through the plain client and again through the chrome profile. I stopped there and so should you; profiles are people, not datasets.

One more thing the review listing gives you for free: each review is marked “★★★★ Liked Watched by {name} {date}”, so rating value, like status, and watch date arrive with the text.

Lists: 100 films per page in data attributes

Lists are Letterboxd’s signature dataset and they load statically. The catch is the shape. On a list page such as /{user}/list/{slug}/, the clean markdown delivers the list description and owner but not the films, because every entry is a React LazyPoster component whose data sits in attributes:

<li class="posteritem numbered-list-item" data-owner-rating="10" ...>
  <div class="react-component" data-component-class="LazyPoster"
       data-item-name="Harakiri (1962)"
       data-item-slug="harakiri"
       data-item-link="/film/harakiri/" ...>

So the recipe is --page-format raw plus a grep:

$ magpie scrape "https://letterboxd.com/sancheeto98/list/official-top-250-narrative-feature-films/" \
    --page-format raw --out list.html
$ grep -o 'data-item-name="[^"]*"' list.html | head -3
data-item-name="Harakiri (1962)"
data-item-name="Come and See (1985)"
data-item-name="12 Angry Men (1957)"

That list page yielded 100 entries with names, slugs, links, and the owner’s own rating per film (data-owner-rating, 0 when unrated; 10 means five stars). Pagination is server-side: I fetched page 2 and got ranks 101 to 200, with only five overlapping slugs between pages, the prev-next previews.

The browse grids are the opposite of lists. /films/popular/ returned 94 KB of HTML whose film grid is entirely JS-rendered: my static fetch cleaned to filter menus and sort links, with zero film data in the output. Most browse paths are robots-disallowed anyway (/*/genre/*, /films/year/*), which is Letterboxd telling you where discovery is supposed to happen: in lists, which members build and rank themselves.

The quiet /json/ endpoint

Every poster card on the site carries a data-details-endpoint attribute pointing at Letterboxd’s own JSON API for hover cards: /film/{slug}/json/. Cloudflare challenges it for bare curl, and it answers the chrome header profile with a compact record:

{
  "result": true, "id": 43015, "name": "Harakiri",
  "releaseYear": 1962, "runTime": 135, "slug": "harakiri",
  "originalName": "切腹",
  "directors": [{"name": "Masaki Kobayashi"}],
  "image125": "/film/harakiri/image-125/"
}

Identity data only: no ratings, no synopsis, no cast beyond directors. Its real use is cheap existence checks and original-title lookups while walking a list. For anything deeper, the film page’s JSON-LD wins.

What this setup will not do

Magpie has 27 zero-LLM verticals (typed extractors for jobs, events, products, local businesses). None of them is a film vertical, so Letterboxd records come from the JSON-LD recipe above, not from --vertical. Magpie also will not solve Cloudflare challenges for you; when a page stays walled after the header-profile escalation, like the member profiles here, the tool reports it and stops. That is by design, and scraping without getting blocked covers the polite-timing habits that keep you out of the challenge queue in the first place.

If you want an API instead

The official Letterboxd API exists, at api-docs.letterboxd.com, but access is by application only: the site asks you to email [email protected] with your intended use, and has said so for years. Assume no.

The practical alternatives are upstream of Letterboxd. Letterboxd licenses its film metadata from TMDB, and TMDB’s API is free with a registered key, so for cast, crew, backdrops and alternate titles, go to the source and use the TMDB ID each film page exposes. OMDb covers IMDb-sourced fields on a freemium key. Wikidata has structured film identifiers with no key at all. If you would rather not run commands at all, the Apify store carries several paid Letterboxd actors, and Python developers maintain open-source libraries such as letterboxdpy on GitHub. But neither publishes the wall map above, which is the part that saves you the debugging time. And for the dataset people actually ask about, your own data, members can export everything they have logged from letterboxd.com/data/export (Settings, then Import & Export), which arrives as a zip of CSV files, no scraping involved.

If your project is text analysis on review prose, the Goodreads guide covers a sister site with the same split between open book pages and walled reviews.

How fast can a letterboxd scraper go

Today’s session ran about forty requests against letterboxd.com from a home IP: nine film pages, two review listings, two list pages, the histogram fragment, the JSON endpoint, and the probes in between, at 2.5 to 3 second spacing. Film-page fetches: nine for nine, zero challenges. Every failure I hit was path-selective, not rate-based, which matches Letterboxd’s own framing: it bans specific bots by name and specific paths by pattern, and everything else it just fingerprint-checks.

That said, nothing here was tested from a datacenter IP, and Cloudflare scores IP reputation too. Keep the volume human-shaped: seconds between requests, one pass over the pages you need, and date every snapshot, because the rating counts move by the hour.

FAQ

Is scraping Letterboxd legal? Public film and list pages sit behind no login and their robots.txt allows them. Reviews are member-authored prose with copyright attached; analysis and storage are one thing, republishing is another. The legality guide is not legal advice, and neither am I.

Does Letterboxd have an API? Yes, but access is by application: email [email protected] with your use case and wait. There is no self-serve key and no public tier. The undocumented /film/{slug}/json/ endpoint is not a substitute; it carries identity fields only.

Why do I get 403 on review pages but not film pages? Cloudflare scores each request’s client fingerprint. Film pages pass a plain client; review listings demand a browser-consistent TLS handshake. Magpie’s --header-profile chrome supplies it, and the same flag opens the rating-histogram fragment.

How do I get the star distribution for a film? Fetch /csi/film/{slug}/rating-histogram/ with the chrome header profile and read the ten bar titles; each carries an exact count and percentage. The weighted average in that fragment comes with a fresh total rating count, which will differ slightly from the film page’s JSON-LD if ratings were cast in between.

How many reviews can I get per film? Twelve per listing page through the wall, and the server-side pagination continues at /reviews/page/2/ and beyond. Individual review permalinks resisted fetching in my tests, so plan on walking listing pages rather than following permalinks.

Stop renting credits.

One flat price, your machine, your keys.

Download free for Windows, macOS and Linux

Windows · macOS · Linux $49/mo flat, cancel anytime