---
title: "Letterboxd API: Films and Ratings as JSON | Perceptlayer"
description: "Get Letterboxd film data as JSON: average_rating, rating_count, review_count, directors and year from one call by film slug, at 1 credit each."
url: https://perceptlayer.com/blog/letterboxd-api-json
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Letterboxd API: Films and Ratings as JSON

24 Nov 2026 Perceptlayer 7 min read

To get Letterboxd film data as JSON, call `GET /v1/letterboxd/film` with a film `slug`: the recorded call for `the-dark-knight` returned the title, year, directors, `average_rating`, `rating_count`, `review_count`, a poster URL and a `film_id`, for 1 credit. Two more endpoints return a film's reviews and a member's diary, also at 1 credit a call. This guide shows the requests, the parameters, the recorded responses, a short Python tracker and the cost per film.

## Key takeaways

-   The Letterboxd API on Perceptlayer has three endpoints, `film`, `reviews` and `diary`, all `GET`, all standard tier, and each costs 1 credit per successful call.
-   `GET /v1/letterboxd/film` takes one required parameter, `slug` (up to 255 characters), and the recorded response for `the-dark-knight` had `average_rating` 4.5 and `rating_count` 5013753.
-   `GET /v1/letterboxd/reviews` takes `slug` plus an optional `page`, and returns `reviews` with a `text` field and a `has_more` flag.
-   Diary `entries` carry a `film` value in slug form, such as `grave-of-the-fireflies`, and the film endpoint's parameter is `slug`; the names match.
-   Tracking 300 films once a day is 300 × 30 days × 1 credit = 9,000 credits a month, inside the Starter pack's 10,000.

## What does the Letterboxd API on Perceptlayer return?

The Letterboxd API on Perceptlayer has three endpoints. `film` returns one film's details and rating figures, `reviews` returns review text for a film, and `diary` returns the films in a member's diary. All three are `GET` requests that return JSON in a `data` object, and each costs 1 credit per successful call. None of them is restricted, so a new key can call them straight away.

| Method | Path | Returns | Credits | Required | Optional |
| --- | --- | --- | --- | --- | --- |
| `GET` | `/v1/letterboxd/film` | One film | 1 | `slug` | none |
| `GET` | `/v1/letterboxd/reviews` | A film's reviews | 1 | `slug` | `page` |
| `GET` | `/v1/letterboxd/diary` | A member's diary | 1 | `user` | `page` |

The data is collected from publicly available sources and returned as found at the time of the call. These are Perceptlayer endpoints, not anything run by Letterboxd, and this guide makes no claims about what Letterboxd itself offers developers; compare that yourself if it matters to your project. The [Letterboxd API page](https://perceptlayer.com/apis/letterboxd) lists the three endpoints and has a playground to run them with your key.

## How do you get one film's details and ratings?

Send a `GET` request to `https://api.perceptlayer.com/v1/letterboxd/film` with the film's `slug` and your key in the `X-API-Key` header. The slug is the film's identifier; in the recordings it looks like `the-dark-knight`, lower case with words joined by hyphens. This is the request behind the recorded response below:

```bash
curl "https://api.perceptlayer.com/v1/letterboxd/film?slug=the-dark-knight" \
  -H "X-API-Key: $API_KEY"
```

Keys start with `sk_live_`. Where you can't set a header, put the key in the `api_key` query parameter instead; the [authentication docs](https://docs.perceptlayer.com/authentication) cover both. Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`, so a job can log what each call cost.

### What does the film response contain?

The film response is small and flat: eight fields under `data`, plus a `meta` block naming the endpoint family. This is the recorded response, trimmed only at the poster URL:

```json
{
  "success": true,
  "data": {
    "title": "The Dark Knight",
    "year": 2008,
    "directors": [
      "Christopher Nolan"
    ],
    "average_rating": 4.5,
    "rating_count": 5013753,
    "review_count": 522967,
    "poster": "https://a.ltrbxd.com/resized/sm/upload/…",
    "film_id": "film:51896"
  },
  "meta": {
    "endpoint_family": "film_detail"
  }
}
```

| Field | Type in the recording | What a job does with it |
| --- | --- | --- |
| `title` | string | Display label |
| `year` | number | Disambiguates remakes and films with the same title |
| `directors` | array of strings | Grouping by director; an array, so keep it a list |
| `average_rating` | number | The rating you track over time |
| `rating_count` | number | How many ratings stand behind the average |
| `review_count` | number | How many reviews the film has |
| `poster` | string (URL) | Image link for a dashboard |
| `film_id` | string | A stable-looking key, `film:51896`; store it next to the slug |

Read `average_rating` together with `rating_count`. An average from a few hundred ratings moves more from week to week than one from five million, so a tracker that alerts on rating changes should weight or threshold by count. The recording doesn't document the rating scale, so store the number as returned rather than converting it.

## Which parameters do the endpoints take?

The three endpoints take three parameters between them: `slug` for a film, `user` for a member, and an optional `page` on the two list endpoints. The table lists each with the constraints the API documents. Nothing else is documented, including defaults and page sizes, so test behaviour in the playground before a job depends on it.

| Endpoint | Parameter | Type | Required | Documented constraint |
| --- | --- | --- | --- | --- |
| `film` | `slug` | string | yes | Up to 255 characters |
| `reviews` | `slug` | string | yes | Up to 255 characters |
| `reviews` | `page` | integer | no | None documented |
| `diary` | `user` | string | yes | Up to 64 characters |
| `diary` | `page` | integer | no | None documented |

Both list endpoints return a `has_more` flag, and both take `page`; the names suggest how they pair, but the recordings only show `page=1` with `has_more: false`. Request the next `page` while `has_more` is `true`, and stop when it's `false` or the list comes back empty. Each page is a separate call and a separate credit.

## How do you get a film's reviews?

Call `GET /v1/letterboxd/reviews` with the same `slug` you use for the film endpoint, plus `page` if you're walking through more than one page. The response echoes the slug in `data.film`, holds the reviews in a `reviews` array and reports `has_more`. Each review in the recording has two fields: `text` and the reviewer's name, which this guide leaves out.

```bash
curl "https://api.perceptlayer.com/v1/letterboxd/reviews?slug=the-dark-knight&page=1" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "success": true,
  "data": {
    "film": "the-dark-knight",
    "reviews": [
      {
        "text": "If you do not like this movie, I do not like you.",
        …
      },
      …
    ],
    "has_more": false
  },
  "meta": {
    "endpoint_family": "film_reviews"
  }
}
```

The recorded reviews carry no rating, date or like count, only text. That makes this endpoint a fit for text analysis, such as keyword counts or sentiment scores per film, rather than for rating history, which the film endpoint covers with `average_rating`. If you store reviews, drop the reviewer field at ingestion unless you have a reason to keep it, and work with the text in aggregate.

## How do you read a member's diary?

`GET /v1/letterboxd/diary` takes a member's `user` name (up to 64 characters) and an optional `page`. The recorded response returns `entries`, each with one `film` field in slug form, and a `has_more` flag. The recording shows no watch dates or ratings on entries, so treat the diary as a list of films and nothing more.

```bash
curl "https://api.perceptlayer.com/v1/letterboxd/diary?user=$LETTERBOXD_USER&page=1" \
  -H "X-API-Key: $API_KEY"
```

```json
{
  "success": true,
  "data": {
    …
    "entries": [
      {
        "film": "a-silent-voice-the-movie"
      },
      {
        "film": "grave-of-the-fireflies"
      }
    ],
    "has_more": false
  },
  …
}
```

Diary `film` values and the film endpoint's `slug` parameter look alike, and the names match; check in the playground that a diary value works as a `slug` before you chain the two. A diary belongs to a person, so the natural use is your own account, for example exporting what you've logged and enriching each film with its rating figures.

## How do you track film ratings in Python?

A rating tracker runs a fixed list of film slugs on a schedule and appends one row per film: the time, the slug, the title, the year, `average_rating`, `rating_count` and `review_count`. Over weeks, those rows show how a film's average settles as its rating count grows. The script below uses `requests` and `csv`, reads only fields in the recorded response, and waits on 429 and 503 using `Retry-After`.

```python
import csv
import datetime
import os
import time

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/letterboxd/film"
SLUGS = ["the-dark-knight", "grave-of-the-fireflies", "a-silent-voice-the-movie"]

def film(slug, attempts=3):
    for _ in range(attempts):
        r = requests.get(URL, params={"slug": slug}, headers={"X-API-Key": API_KEY}, timeout=60)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        if r.status_code == 404:
            return None
        r.raise_for_status()
        return r.json()["data"]
    raise RuntimeError(f"gave up on {slug}")

now = datetime.datetime.now(datetime.timezone.utc).isoformat()
with open("letterboxd-ratings.csv", "a", newline="") as f:
    out = csv.writer(f)
    for slug in SLUGS:
        data = film(slug)
        if data is None:
            continue
        out.writerow([
            now, slug, data.get("film_id"), data.get("title"), data.get("year"),
            ";".join(data.get("directors", [])), data.get("average_rating"),
            data.get("rating_count"), data.get("review_count"),
        ])
        time.sleep(1)
```

The one-second pause keeps a free account within its 1 request a second. Only the first slug in the list has a recorded film response; the other two come from the diary recording, so run them in the playground first.

### What should the job do with errors?

Every error returns an HTTP status and a JSON body with `code`, `message` and `request_id`, and costs nothing. Retry `rate_limited` (429) and `temporarily_unavailable` (503) after the `Retry-After` seconds. Treat `not_found` (404) as a slug to check and `invalid_parameters` (422) as a bug in your list. Requests have no idempotency key, so a client timeout can hide a call that succeeded and was billed; keep the timeout generous. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

## What does Letterboxd data cost?

Every successful call to any of the three endpoints costs 1 credit, and failed calls cost nothing. A rating tracker pays 1 credit per film per check. Reviews and diaries cost 1 credit per page, so their cost depends on how many pages you walk, which the `has_more` flag tells you as you go.

| Plan | Arithmetic | Credits a month |
| --- | --- | --- |
| 50 films daily | 50 × 30 days × 1 credit | 1,500 |
| 300 films daily | 300 × 30 days × 1 credit | 9,000 |
| 2,000 films weekly | 2,000 × 4 weeks × 1 credit | 8,000 |
| 1,500 films daily | 1,500 × 30 days × 1 credit | 45,000 |

The first three fit the Starter pack's 10,000 credits; the last fits the Build pack's 50,000. The 100 free credits on signup cover 100 film lookups, enough to run the 50-film plan for two days. Purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how calls are debited.

To try it, run `slug=the-dark-knight` in the playground on the [film endpoint page](https://perceptlayer.com/apis/letterboxd/film), then [get a free API key](https://perceptlayer.com/signup) and set your own slugs. Other review sources are on the [reviews APIs](https://perceptlayer.com/verticals/reviews) page, and more single-source guides, such as the [Discogs API guide](https://perceptlayer.com/blog/discogs-api-json), are in [API guides](https://perceptlayer.com/blog/category/api-guides).

## APIs in this post

-   [Letterboxd **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/letterboxd)

## Frequently asked questions

### Is this the official Letterboxd API?

No. These are Perceptlayer endpoints that return public Letterboxd data, collected from publicly available sources and returned as found at the time of the call. This guide makes no claims about Letterboxd's own developer offering; compare it yourself if you need features these three endpoints don't have. Read Letterboxd's terms before you use the data commercially.

### How do I find a film's slug?

In the recordings, a slug is the film's identifier in lower case with hyphens, such as `the-dark-knight`. Diary entries return film values in that form, and the reviews response echoes the slug in `data.film`. A call that fails costs nothing, so you can test candidate slugs in the playground on the film endpoint page before you add them to a job.

### Do Letterboxd reviews include star ratings?

Not in the recorded response. Each recorded review has `text` and the reviewer's name and nothing else: no rating, date or like count. For rating figures, use the film endpoint, which returns `average_rating`, `rating_count` and `review_count` for the film as a whole. Treat any other review field as unknown until you see it in the playground.

### How many credits does a Letterboxd call cost?

Each successful call to `film`, `reviews` or `diary` costs 1 credit, and a failed call costs nothing and returns `X-Credits-Used: 0`. Paged results cost 1 credit per page. The 100 free credits on signup cover 100 calls, and purchased credits come in packs starting at 10,000 credits that last 12 months.

### How fast can I call the Letterboxd endpoints?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute, so checking 50 films takes under a minute. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the rate each pack includes.

letterboxd film data movie ratings reviews python

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 26 Nov 2026 Perceptlayer 7 min read
    
    ## [Depop API: Resale Listings as JSON](https://perceptlayer.com/blog/depop-api-json)
    
    Search Depop listings as JSON with brand, condition, sizes and price.amount per item; the recorded jacket search had a total\_count of 6,815,522. 1 credit.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 26 Nov 2026 Perceptlayer 7 min read
    
    ## [Similarweb API: Website Traffic Data as JSON](https://perceptlayer.com/blog/similarweb-api-json)
    
    Get Similarweb traffic estimates as JSON: visits, bounce\_rate, traffic\_sources, top\_countries and top\_keywords for a domain, at 1 credit a call.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 26 Nov 2026 Perceptlayer 7 min read
    
    ## [StockTwits API: Symbol Streams as JSON](https://perceptlayer.com/blog/stocktwits-api-json)
    
    Three StockTwits endpoints as JSON: a symbol's message stream with sentiment and cursor, symbol search and trending symbols, each 1 credit a call.
