Public domain movies list: filter and search free films
GET /3/free/movie lists films you may show in full, with the filters of TMDB discover plus country, license type, commercial use and whole copies. GET /3/free/search/movie finds them by name and GET /3/free/stats counts them. Every card carries its short license. Pro+ and Pro+ Streaming plans.
How do I list films I may show in full?
Call GET /3/free/movie (or GET /3/free/tv). It returns the films the license block marks free, in the TMDB list shape: page, results, total_pages, total_results, 20 cards a page. Each card adds a short license object with status, confidence, worldwide, countries, commercial_use, license and has_copy.
The list takes the TMDB discover filters and filters of its own, so a comedy page of US public domain films is one call. It comes with the Pro+ and Pro+ Streaming plans on amodb pricing.
curl -sf "https://api.amodb.dev/3/free/movie?country=US&with_genres=35&sort_by=vote_average.desc" \
-H "Authorization: Bearer $AMODB_KEY"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);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"])Parameters
| Parameter | Description |
|---|---|
license_type | public_domain or open_license. Default: both. |
country | Two letter code (alias region): films free in that country or worldwide. |
worldwide | true: free in every country only. |
commercial_use | true: may be shown on a commercial site. |
modifications | true: may be edited (no ND license). |
without_attribution | true: no credit required. |
with_copy | true: a whole copy is listed (Wikimedia Commons or the Internet Archive). |
confidence | high, or medium for medium and up. |
with_genres, without_genres | TMDB genre ids. Comma: all of them. Pipe: any of them. |
primary_release_year | Year, or first_air_date_year for TV. year works for both. |
primary_, .lte | Dates as 1925-01-01. TV: first_air_date.gte, .lte. |
with_original_language | Two letter code such as de. |
vote_count.gte, vote_average.gte, vote_average.lte | Rating filters. |
with_runtime.gte, with_runtime.lte | Minutes. |
sort_by | popularity, vote_average, vote_count, primary_release_date (TV first_air_date), each .asc or .desc. Default popularity.desc. |
language, page | As everywhere: 14 languages, pages 1 to 500. |
A malformed filter answers HTTP 400 with status_code 22.
Example response
{
"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
}How do I search free films by name?
GET / looks in the original title, the English title and the title in the request language, and takes every filter above. With no query it returns an empty page, like TMDB search.
How many free films are there?
GET /3/free/stats returns { movie: { public_. It is kept one hour at the edge.
Errors
| HTTP | status_code | When |
|---|---|---|
| 400 | 22 | A filter is malformed, such as country=USA or an unknown sort_by. |
| 401 | 7 | The key is missing or wrong. |
| 403 | 3 | Your plan is not Pro+ or Pro+ Streaming. |
| 429 | 25 | Over your requests per minute. |
Practical notes
- Lists are kept 30 minutes at the edge and search 10 minutes. One call can serve every visitor of a page.
- Open the license block of a film before you show it, for the full proof and the notes.
- To play a free film, the streams endpoint lists checked links on the Pro+ Streaming plan.
- The same lists are blocks in the WordPress plugin.