---
name: subz
description: Find and download community subtitles for movies and TV series from Subz (subz.fun), and upload subtitle files to it. Use when a user wants SRT, VTT, ASS or SSA subtitles for a film or an episode, asks which subtitle languages exist for a title, wants every subtitle of a TV season as one ZIP, or wants to contribute a subtitle file with a Subz API key, even if they do not mention Subz by name.
compatibility: Requires network access to https://subz.fun. Uploading also requires a Subz API key from the user.
metadata:
  author: subz.fun
---

# Subz subtitles

Subz catalogs released and upcoming movies and TV series and hosts community subtitle files. The REST API lives under `https://subz.fun/api/v1` and answers in JSON, except for file downloads. Searching and downloading need no account or key. Send a descriptive `User-Agent` header with every request.

The full contract is the OpenAPI 3.1 document at https://subz.fun/openapi.json. Human docs are at https://subz.fun/developers.

## Workflow

1. Search for the title and copy its `slug`.
2. List the title's subtitle files and pick one by language, release, season and episode.
3. Download that file from its `downloadUrl`, or download a whole TV season as one ZIP.
4. Upload only when the user asks to and gives you an API key.

## 1. Search titles

`GET https://subz.fun/api/v1/movies?q={query}`

| Parameter | Values |
| --- | --- |
| `q` | Title, alternate title, or IMDb ID such as `tt0111161` (max 120 characters) |
| `kind` | `movie` or `tv` |
| `year` | Release year, for example `2016` |
| `language` | Only titles that have files in this language (codes below) |
| `upcoming` | `true` for unreleased or announced titles |
| `sort` | `activity` (latest upload first) or `newest` (release year). With `q`, results default to best match. Ignored with `upcoming` |
| `page` | Page number, starting at 1 |

The response is `{"movies": [...], "nextPage": 2}` with up to 24 titles per page. `nextPage` is `null` on the last page. Each title has `slug`, `kind`, `title`, `year`, `subtitleCount`, `url` and `apiUrl`. `apiUrl` is the step 2 URL for that title.

Several titles can share a name. Choose by `year` and `kind`, and copy the `slug` exactly as returned. Never build a slug yourself. The catalog also lists titles that have no subtitles yet (`subtitleCount` is 0).

```bash
curl -sS -A "my-agent/1.0" "https://subz.fun/api/v1/movies?q=the%20night%20manager&kind=tv"
```

## 2. List subtitle files

`GET https://subz.fun/api/v1/movies/{slug}?language={code}&page={n}`

The response is `{"movie": {...}, "subtitles": [...], "nextPage": null}` with up to 50 files per page, newest first. Omit `language` to list every language. An unsupported language code returns `400` and an unknown slug returns `404`.

Each subtitle has:

- `id` (UUID) and `downloadUrl`
- `language`, `format` (`srt`, `vtt`, `ass` or `ssa`), `filename` and `byteSize`
- `release` (release name, can be `null`) and `hearingImpaired`
- `season` and `episode` for TV series files when known, otherwise `null`
- `downloadCount` and `createdAt` (Unix time in milliseconds)

Match the user's video by `release` name when you can. Prefer `hearingImpaired: false` unless the user asks for SDH subtitles.

## 3. Download

One file: `GET` its `downloadUrl`, which has the form `https://subz.fun/api/v1/subtitles/{id}/download`. The body is the raw subtitle file and `Content-Disposition` carries its filename.

```bash
curl -sS -A "my-agent/1.0" -o "{filename}" "{downloadUrl}"
```

A TV season: `GET https://subz.fun/api/v1/movies/{slug}/seasons/{season}/download` returns a ZIP of every available file for that season, in all languages. `404` means the title is not a TV series or the season has no files. `413` means the season is too large for one archive, so download its files one by one instead.

```bash
curl -sS -A "my-agent/1.0" -o season-1.zip "https://subz.fun/api/v1/movies/{slug}/seasons/1/download"
```

## 4. Upload

Uploading needs an API key, which the user creates in a free account at https://subz.fun/account. Ask the user for it, pass it from an environment variable such as `SUBZ_API_KEY`, and never print or store it.

`POST https://subz.fun/api/v1/movies/{slug}/subtitles` with the header `X-API-Key: {key}` and a `multipart/form-data` body:

| Field | Required | Notes |
| --- | --- | --- |
| `file` | yes | Filename ends in `.srt`, `.vtt`, `.ass` or `.ssa` and has at most 200 characters. At most 2 MiB (2097152 bytes) |
| `language` | yes | A language code from the list below |
| `release` | no | Release name, at most 160 characters |
| `hearingImpaired` | no | `true` for SDH subtitles. Defaults to `false` |

For a TV series, put the episode in `release` or in the filename as `S01E02`, `1x02` or `Season 1 Episode 2`. Subz reads the season and episode from there.

```bash
curl -sS -A "my-agent/1.0" -H "X-API-Key: $SUBZ_API_KEY" \
  -F "file=@./The.Night.Manager.S01E02.en.srt" \
  --form-string "language=en" \
  --form-string "release=The.Night.Manager.S01E02.1080p.WEB" \
  "https://subz.fun/api/v1/movies/the-night-manager-2016-q19865538/subtitles"
```

`201` returns `{"subtitle": {...}, "duplicate": false}`. `200` with `"duplicate": true` means an identical file already exists for that title and language. That is a success, not an error.

Each key allows 50 upload requests per UTC day by default, and every request with a valid key counts, including rejected ones. Check the extension, size, language and episode marker before you send.

| Status | Meaning |
| --- | --- |
| `400` | The multipart body is missing or could not be parsed |
| `401` | Key missing, invalid or expired |
| `404` | Unknown slug |
| `413` | File too large |
| `415` | Body is not `multipart/form-data` |
| `422` | Missing or empty file, unsupported language, release name too long, wrong extension, filename too long, or no valid subtitle cues |
| `429` | Daily upload limit reached. `Retry-After` gives the seconds until midnight UTC |
| `502` | Storage temporarily unavailable. Retry later |

## Errors

Error responses are JSON shaped as `{"error": {"code": "...", "message": "..."}}`. `503` means the service is temporarily unavailable.

## Language codes

`en` `cs` `sk` `de` `fr` `es` `it` `pt` `pl` `uk` `ru` `nl` `sv` `no` `da` `fi` `hu` `ro` `sr` `hr` `bg` `el` `tr` `ar` `he` `fa` `hi` `bn` `te` `ta` `ml` `zh` `ja` `ko` `id` `vi` `th`

## MCP server

Subz also runs a read-only MCP server at `https://subz.fun/mcp` (Streamable HTTP, no authentication) with the tools `search_titles` and `get_title`. Its server card is at https://subz.fun/.well-known/mcp/server-card.json. If your client is connected to it, you can use those tools for steps 1 and 2: `search_titles` takes `query`, `kind`, `year`, `language`, `upcoming`, `sort` and `page`, and `get_title` takes `slug`, `language` and `page`. Each file in a `get_title` result has a `downloadUrl` for step 3. Downloads and uploads still go through the REST endpoints above.
