# 公有领域电影列表 API：筛选与搜索免费电影

> GET /3/free/movie 列出可完整放映的电影，支持 discover 筛选及国家、许可、商业使用和完整副本。GET /3/free/search/movie 按名称查找，GET /3/free/stats 统计总数。需 Pro+ 套餐。

## 接口

`GET /3/free/movie`

```bash
curl "https://api.amodb.dev/3/free/movie?country=US&with_genres=35" \
  -H "Authorization: Bearer $AMODB_KEY"
```

响应:

```json
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "backdrop_path": "/mtQlzaSEFwHqNazLEfqOT1G9MZl.jpg",
      "genre_ids": [
        16,
        35,
        10752
      ],
      "id": 100836,
      "original_language": "en",
      "original_title": "Rumors",
      "overview": "Snafu inadvertantly starts a panic on his base when he begins a mistaken rumour that the base is about to be bombed.",
      "popularity": 5.781,
      "poster_path": "/4xqbiqZKYqLAA0svm8jRzGGSF75.jpg",
      "release_date": "1943-12-01",
      "title": "Rumors",
      "video": false,
      "vote_average": 7.1,
      "vote_count": 14,
      "license": {
        "status": "public_domain",
        "confidence": "high",
        "worldwide": false,
        "countries": [
          "US"
        ],
        "commercial_use": true,
        "license": null,
        "has_copy": true
      }
    },
    {
      "adult": false,
      "backdrop_path": null,
      "genre_ids": [
        35
      ],
      "id": 342048,
      "original_language": "en",
      "original_title": "Ladies Last",
      "overview": "The boys boycott the girls when they insist that the boys wear tuxedos to a big dance.",
      "popularity": 4.6832,
      "poster_path": "/2keRawAs7U02oEsSJI03Fvi5uU9.jpg",
      "release_date": "1930-12-06",
      "title": "Ladies Last",
      "video": false,
      "vote_average": 6.5,
      "vote_count": 2,
      "license": {
        "status": "public_domain",
        "confidence": "high",
        "worldwide": false,
        "countries": [
          "US"
        ],
        "commercial_use": true,
        "license": null,
        "has_copy": false
      }
    },
    {
      "adult": false,
      "backdrop_path": "/wo6xsL5cPu1UXxo5FnAE7jrJIDn.jpg",
      "genre_ids": [
        18,
        35
      ],
      "id": 474028,
      "original_language": "en",
      "original_title": "Polly Redhead",
      "overview": "Aside from the fact that Polly had red hair in abundance, she was not otherwise an exceptional child, save for one thing. She was willing to work and slave, if need be, to keep her baby brother, affectionately termed \"The Lump,\" from being...",
      "popularity": 4.5166,
      "poster_path": "/7SRvs6xLGgKLLYZFBFT4GpvRk8A.jpg",
      "release_date": "1917-02-09",
      "title": "Polly Redhead",
      "video": false,
      "vote_average": 0,
      "vote_count": 0,
      "license": {
        "status": "public_domain",
        "confidence": "high",
        "worldwide": false,
        "countries": [
          "US"
        ],
        "commercial_use": true,
        "license": null,
        "has_copy": false
      }
    }
  ],
  "total_pages": 335,
  "total_results": 6695
}
```

## 怎样列出可以完整放映的电影？

调用 `GET /3/free/movie`（或 `GET /3/free/tv`）。它返回 [版权区块](https://amodb.dev/zh/license/) 标为自由的电影，格式与 TMDB 列表相同：`page`、`results`、`total_pages`、`total_results`，每页 20 张卡片。每张卡片另加一个简短的 `license` 对象，含 `status`、`confidence`、`worldwide`、`countries`、`commercial_use`、`license` 和 `has_copy`。

列表接受 TMDB discover 的筛选和它自己的筛选，所以一页美国公有领域的喜剧片只需一次调用。它包含在 [amodb 定价](https://amodb.dev/zh/pricing/) 的 Pro+ 和 Pro+ Streaming 套餐中。

```bash
curl -sf "https://api.amodb.dev/3/free/movie?country=US&with_genres=35&sort_by=vote_average.desc" \
  -H "Authorization: Bearer $AMODB_KEY"
```

```js
const url = new URL('https://api.amodb.dev/3/free/movie');
url.search = new URLSearchParams({ country: 'US', with_genres: '35', commercial_use: 'true' });
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` } });
if (!res.ok) throw new Error(`amodb returned ${res.status}`);
const { results, total_results } = await res.json();
console.log(total_results, 'free comedies');
for (const film of results) console.log(film.title, film.release_date, film.license.status);
```

```python
import os
import requests

r = requests.get(
    "https://api.amodb.dev/3/free/movie",
    params={"license_type": "open_license", "sort_by": "primary_release_date.desc"},
    headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
    timeout=10,
)
r.raise_for_status()
for film in r.json()["results"]:
    print(film["title"], film["license"]["license"]["spdx_id"])
```

### 参数

| 参数                                                     | 说明                                                                                                                                |
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| `license_type`                                         | `public_domain` 或 `open_license`。默认两者都有。                                                                                          |
| `country`                                              | 两位字母代码（别名 `region`）：在该国或全球自由的电影。                                                                                                  |
| `worldwide`                                            | `true`：只要在所有国家都自由的。                                                                                                               |
| `commercial_use`                                       | `true`：可以在商业网站上放映。                                                                                                                |
| `modifications`                                        | `true`：可以编辑（不是 ND 许可）。                                                                                                            |
| `without_attribution`                                  | `true`：无需署名。                                                                                                                      |
| `with_copy`                                            | `true`：列有完整副本（Wikimedia Commons 或 Internet Archive）。                                                                              |
| `confidence`                                           | `high`，或 `medium` 表示 medium 及以上。                                                                                                  |
| `with_genres`、`without_genres`                         | TMDB 类型 id。逗号表示全部满足，竖线表示任一满足。                                                                                                     |
| `primary_release_year`                                 | 年份，电视剧用 `first_air_date_year`。`year` 两者通用。                                                                                        |
| `primary_release_date.gte`、`.lte`                      | 日期格式如 `1925-01-01`。电视剧：`first_air_date.gte`、`.lte`。                                                                               |
| `with_original_language`                               | 两位字母代码，如 `de`。                                                                                                                    |
| `vote_count.gte`、`vote_average.gte`、`vote_average.lte` | 评分筛选。                                                                                                                             |
| `with_runtime.gte`、`with_runtime.lte`                  | 分钟数。                                                                                                                              |
| `sort_by`                                              | `popularity`、`vote_average`、`vote_count`、`primary_release_date`（电视剧为 `first_air_date`），各自加 `.asc` 或 `.desc`。默认 `popularity.desc`。 |
| `language`、`page`                                      | 与其他接口相同：14 种语言，第 1 到 500 页。                                                                                                       |

筛选格式错误时返回 HTTP 400 和 `status_code` 22。

### 响应示例

```json
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "backdrop_path": "/mzox4HbcV9W42MH2dB1QsdDVGo3.jpg",
      "genre_ids": [35, 10749, 10752],
      "id": 961,
      "original_language": "en",
      "overview": "During the American Civil War, Union spies steal the locomotive of engineer Johnnie Gray, and he sets out to get it back.",
      "popularity": 3.308,
      "poster_path": "/o2vYEjxjqfT8ta5xcrtPJ3uFLlk.jpg",
      "vote_average": 7.9,
      "vote_count": 1496,
      "media_type": "movie",
      "title": "The General",
      "original_title": "The General",
      "release_date": "1926-12-25",
      "video": false,
      "license": {
        "status": "public_domain",
        "confidence": "high",
        "worldwide": false,
        "countries": ["US"],
        "commercial_use": true,
        "license": null,
        "has_copy": true
      }
    }
  ],
  "total_pages": 1,
  "total_results": 1
}
```

## 怎样按名称搜索自由电影？

`GET /3/free/search/movie?query=nosferatu` 在原始标题、英文标题和请求 `language` 的标题中查找，并接受上面所有筛选。不带 `query` 时返回空页，与 TMDB 搜索相同。

## 自由电影有多少部？

`GET /3/free/stats` 返回 `{ movie: { public_domain, open_license, worldwide, total }, tv: { ... } }`。它在边缘缓存一小时。

## 错误

| HTTP | status_code | 何时出现                                    |
| ---- | ----------- | --------------------------------------- |
| 400  | 22          | 筛选格式错误，例如 `country=USA` 或未知的 `sort_by`。 |
| 401  | 7           | 缺少密钥或密钥错误。                              |
| 403  | 3           | 你的套餐不是 Pro+ 或 Pro+ Streaming。           |
| 429  | 25          | 超出每分钟请求数。                               |

## 实用提示

- 列表在边缘缓存 30 分钟，搜索缓存 10 分钟。一次调用可以服务一个页面的所有访客。
- 放映一部电影之前，请打开它的 [版权区块](https://amodb.dev/zh/license/)，查看完整证据和提示。
- 要播放自由电影，[播放链接接口](https://amodb.dev/zh/streams/) 在 Pro+ Streaming 套餐中列出经过核验的链接。
- 同样的列表在 [WordPress 插件](https://amodb.dev/zh/wordpress-plugin/) 中以区块形式提供。

## 常见问题

### 怎样用 API 列出所有公有领域电影？

调用 GET /3/free/movie。它每页返回 20 部电影，最热门的在前，每部都带一个 license 对象。加上 country=US 只保留在美国自由的电影，或用 license_type=open_license 只看知识共享电影。

### 自由电影列表支持哪些筛选？

discover 的筛选：with_genres、without_genres、primary_release_year、primary_release_date.gte 和 lte、with_original_language、vote_count.gte、vote_average.gte 和 lte、with_runtime.gte 和 lte、sort_by。另有 license_type、country、worldwide、commercial_use、modifications、without_attribution、with_copy 和 confidence。

### 怎样按名称查找自由电影？

调用 GET /3/free/search/movie?query=nosferatu。它在原始标题、英文标题和你所用语言的标题中查找，并接受与列表相同的筛选。不带 query 时返回空页。

### 这些电影可以放在带广告的网站上吗？

加上 commercial_use=true，只保留可以商业放映的电影。公有领域电影允许商业放映，知识共享 NC 许可不允许。电影在哪里自由，请看每部电影的 countries 列表。

### 自由电影有多少部？

GET /3/free/stats 按类型和状态返回总数。每年 1 月 1 日又有一年的电影进入美国公有领域，每周 Wikidata 也会新增记录，列表随之增长。

## 相关页面

- [电影版权 API：这部电影是公有领域吗？](https://amodb.dev/zh/license/): 电影版权 API：GET /3/movie/{id}/license 告诉你一部电影能否完整放映、在哪些国家、依据哪种许可，并给出每项结论的证据。
- [免费电影播放 API：播放公有领域电影的链接](https://amodb.dev/zh/streams/): GET /3/movie/{id}/streams 返回自由电影的核验播放链接，来自 Commons、Internet Archive 等网站。
- [公有领域电影 API：查找、核对并播放自由电影](https://amodb.dev/zh/public-domain-movies-api/): 搭建公有领域和知识共享电影网站：按国家给出版权证据、可筛选的自由电影列表，以及经过核验的播放链接，支持 14 种语言。
- [TMDB discover API：按条件筛选电影和剧集](https://amodb.dev/zh/discover/): TMDB discover API 用 GET /3/discover/movie 筛选电影，沿用 TMDB v3 参数，类型、年份、评分可组合，每页 20 条
- [TMDB 搜索 API：按片名搜索电影](https://amodb.dev/zh/search/): TMDB 搜索 API：GET /3/search/movie 按文字查电影，按年份筛选，JSON 与 TMDB v3 相同，每页 20 条，缓存 10 分钟。
- [定价：amodb 套餐与 TMDB API 收费对比](https://amodb.dev/zh/pricing/): TMDB API 收费吗？没有收入时免费，有收入后 $149 一个月。amodb 套餐 $5.19 到 $7.19 一个月，每分钟 20 到 120 个请求。

更新于: 2026-11-17. Source: https://amodb.dev/zh/free-titles/
