TMDB trending API: trending, popular and top rated

The TMDB trending API returns ranked pages of movies, series or people at GET /3/trending/{media_type}/{time_window}, for the last day or week. Popular, top rated, now playing and upcoming lists use their own paths. Every page holds 20 results, runs to page 500 and is cached for 30 minutes.

Updated View as Markdown

The TMDB trending API returns what people look at most, for the last day or week. GET /3/trending/{media_type}/{time_window} takes all, movie, tv or person and day or week, and returns 20 results per page for up to 500 pages. The popular and top rated lists sit on their own paths: GET /3/movie/popular ranks by current popularity and GET /3/movie/top_rated ranks by user score. amodb serves all of them with the TMDB v3 JSON at https://api.amodb.dev/3, cached for 30 minutes, and each call costs 1 request.

List items link to the movie details API and the TMDB TV API, genre ids resolve through TMDB genre ids, and all other paths are in the API reference. For the product view, see the movie API.

GET /3/trending/{media_type}/{time_window} returns a ranked page of what people are watching or looking up right now. media_type is all, movie, tv or person. time_window is day or week. Day charts move fast and suit a "tonight" strip. Week charts are steadier and suit a home page.

The example asks for the weekly movie chart and prints the first ten titles.

bashjspyphpgo
curl -s "https://api.amodb.dev/3/trending/movie/week?language=en-US&page=1" \
  -H "Authorization: Bearer $AMODB_KEY"
const url = 'https://api.amodb.dev/3/trending/movie/week?language=en-US&page=1';
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` } });
if (!res.ok) throw new Error(`amodb returned ${res.status}`);
const chart = await res.json();
for (const [i, m] of chart.results.slice(0, 10).entries()) {
  console.log(i + 1, m.title, m.release_date);
}
import os
import requests

r = requests.get(
    "https://api.amodb.dev/3/trending/movie/week",
    params={"language": "en-US", "page": 1},
    headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
    timeout=10,
)
r.raise_for_status()
for i, m in enumerate(r.json()["results"][:10], start=1):
    print(i, m["title"], m.get("release_date"))
<?php
$url = 'https://api.amodb.dev/3/trending/movie/week?language=en-US&page=1';
$ch = curl_init($url);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('AMODB_KEY')],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
    throw new RuntimeException("amodb returned $status");
}
$chart = json_decode($body, true);
foreach (array_slice($chart['results'], 0, 10) as $i => $m) {
    echo ($i + 1), ' ', $m['title'], ' ', $m['release_date'] ?? '', PHP_EOL;
}
package main

import (
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"time"
)

type Chart struct {
	Results []struct {
		Title       string `json:"title"`
		ReleaseDate string `json:"release_date"`
	} `json:"results"`
}

func main() {
	url := "https://api.amodb.dev/3/trending/movie/week?language=en-US&page=1"
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("AMODB_KEY"))
	client := &http.Client{Timeout: 10 * time.Second}
	res, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	if res.StatusCode != http.StatusOK {
		panic(res.Status)
	}
	var chart Chart
	if err := json.NewDecoder(res.Body).Decode(&chart); err != nil {
		panic(err)
	}
	for i, m := range chart.Results {
		if i == 10 {
			break
		}
		fmt.Println(i+1, m.Title, m.ReleaseDate)
	}
}

Parameters

  • media_typepathrequired
    all, movie, tv or person.
  • time_windowpathrequired
    day or week.
  • api_keyqueryone of two
    Your key. Use this or the Authorization: Bearer header.
  • languagequery
    TMDB tag such as en-US or ru-RU. 14 base languages are served, anything else falls back to English.
  • pagequery
    Page number from 1 to 500. Each page holds 20 results.

Response fields

FieldTypeNotes
pageintegerThe page you asked for.
resultsarrayMovie, TV or person objects, best rank first.
total_pages, total_resultsintegerPaging totals. Trending charts report at most 500 pages and 10000 results.
media_typestringmovie, tv or person on every trending item. Read it when you request all.
idintegerUse it with movies, TV series or people.
title, original_titlestringMovie items. TV items use name and original_name.
release_date, first_air_datestringYYYY-MM-DD for movies and TV items.
genre_idsarrayNumeric ids. Names come from genres.
popularity, vote_average, vote_countnumberRanking inputs and the aggregate user score.
poster_path, backdrop_path, profile_pathstring or nullAppend to https://img.amodb.dev/t/p/{size}.
name, original_name, gender, known_for_departmentstring or integerPerson items. known_for is an empty array on trending person items.

Example response

JSON
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "backdrop_path": "/7ULXMNvmZSi13zN3EZjz8wbER9B.jpg",
      "genre_ids": [28, 53],
      "id": 1561726,
      "original_language": "en",
      "original_title": "Masterplan",
      "overview": "When a legendary thief sets his sights on the Mona Lisa, he recruits two young strangers to help him before...",
      "popularity": 189.8286,
      "poster_path": "/3x3AfF0qVwSUDDciTaNKcPHZUN8.jpg",
      "release_date": "2026-10-16",
      "title": "Masterplan",
      "video": false,
      "vote_average": 7.279,
      "vote_count": 61,
      "media_type": "movie"
    },
    {
      "adult": false,
      "backdrop_path": "/mBZKC8ActTlM4W3HEGI1Cl1RtO3.jpg",
      "genre_ids": [878, 9648, 28],
      "id": 1058424,
      "original_language": "ko",
      "original_title": "호프",
      "overview": "In the remote South Korean village of Hope Harbor, police chief Bum-seok and officer Sung-ae are called to...",
      "popularity": 294.6518,
      "poster_path": "/bcK5naYzzfY0JBCgrPrsrbV6NO1.jpg",
      "release_date": "2026-07-15",
      "title": "Hope",
      "video": false,
      "vote_average": 6.917,
      "vote_count": 246,
      "media_type": "movie"
    },
    {
      "adult": false,
      "backdrop_path": "/5YfPIIMzGBkIjHt3PTXBWyfBTGS.jpg",
      "genre_ids": [28, 14],
      "id": 1153576,
      "original_language": "en",
      "original_title": "Street Fighter",
      "overview": "In 1993, estranged Street Fighters Ryu and Ken Masters are thrown back into combat when the mysterious Chun...",
      "popularity": 209.3923,
      "poster_path": "/utKzCSCz2HtXwcDGfWLj2IHhSob.jpg",
      "release_date": "2026-10-13",
      "title": "Street Fighter",
      "video": false,
      "vote_average": 6.316,
      "vote_count": 76,
      "media_type": "movie"
    }
  ],
  "total_pages": 500,
  "total_results": 10000
}

The reply was fetched from the live API and cut to 3 of the 20 entries on page 1. Long overview strings are shortened, and ranks and counts change on every refresh.

Trending is a chart of recent attention, with a window you choose. Popular is one current ranking by the popularity score that every item carries. The orders differ. In the sample reply above, the first title has popularity 189.8 and the second 294.7, so a trending rank is not a sort by that field.

TrendingPopular
Path/trending/{media_type}/{time_window}/movie/popular, /tv/popular, /person/popular
Time windowday or weekNone, one current ranking
Media typesall, movie, tv and person in one pathOne path per type
Mixed listall returns movies, series and people togetherNot possible
Pages1 to 500, 20 per page1 to 500, 20 per page
Cache30 minutes30 minutes
Best forA "tonight" strip or a home page hero rowA browse screen that should not jump around

Use top rated for a list of the best scored titles. It ranks by user score, so it changes slowly and a daily refresh is enough.

These are the TMDB popular movies and top rated movies calls. Both take language, page and region.

curl
curl -s "https://api.amodb.dev/3/movie/popular?language=en-US&page=1" \
  -H "Authorization: Bearer $AMODB_KEY"

curl -s "https://api.amodb.dev/3/movie/top_rated?language=en-US&page=1" \
  -H "Authorization: Bearer $AMODB_KEY"

The movie charts share one shape: a paged results array of movie objects. now_playing and upcoming add a dates object with minimum and maximum, the release window the list covers. All four take language, page and region.

Method and pathReturns
GET /movie/now_playingMovies released inside the dates window around today, plus dates
GET /movie/popularMovies ranked by current popularity
GET /movie/top_ratedMovies ranked by user score
GET /movie/upcomingMovies with a release date ahead, plus dates
GET /movie/latestOne movie object: the newest entry in the catalog. It is not a list

A real dates object looks like this:

JSON
{ "dates": { "maximum": "2026-10-21", "minimum": "2026-09-09" } }

region is an uppercase ISO 3166-1 code such as DE or GB. On now_playing and upcoming it keeps only titles released in that country, so the list is a small part of the worldwide one. An unknown code returns an empty list. On popular and top_rated it only swaps release_date for the local date and does not change the ranking. To see where a film plays, pair now_playing with showtimes.

TV charts return the same paging fields. Items use name, original_name, first_air_date and origin_country in place of the movie names. All four take language and page.

Method and pathReturnsExtra parameters
GET /tv/airing_todaySeries with an episode airing todaytimezone
GET /tv/on_the_airSeries with an episode airing in the coming daystimezone
GET /tv/popularSeries ranked by current popularitynone
GET /tv/top_ratedSeries ranked by user scorenone
GET /tv/latestOne TV series object: the newest entry in the catalog. It is not a listnone

timezone is an IANA name such as Europe/Rome. It decides which calendar day counts as "today", so airing_today returns a different set for Asia/Tokyo than for Pacific/Auckland. The TV lists have no region parameter.

GET /person/popular returns a paged list of people ranked by popularity, with language and page. Each entry has id, name, original_name, known_for_department, gender, profile_path, popularity and a known_for array of up to 3 movie or TV cards, each with media_type. Open a person on people.

JSON
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "gender": 1,
      "id": 1247604,
      "known_for_department": "Acting",
      "name": "Agnez Mo",
      "original_name": "Agnez Mo",
      "popularity": 45.8988,
      "profile_path": "/7GuBJxf5szQRCKLk3iG2ztfCo39.jpg",
      "known_for": [
        {
          "adult": false,
          "backdrop_path": "/pF0qkRsrHkdYadPWY9AMeFZfcwk.jpg",
          "first_air_date": "2022-02-03",
          "genre_ids": [10759],
          "id": 108978,
          "name": "Reacher",
          "origin_country": ["US"],
          "original_language": "en",
          "original_name": "Reacher",
          "overview": "Jack Reacher, a veteran military police investigator, has just recently enter...",
          "popularity": 411.841,
          "poster_path": "/f1VCQIG2iCyOookdgOzwtUpwWC0.jpg",
          "vote_average": 8.1,
          "vote_count": 3508,
          "media_type": "tv"
        }
      ]
    }
  ],
  "total_pages": 1001,
  "total_results": 20001
}

amodb does not offer person/latest or the changes feeds.

Which list fits which screen?

ScreenCallRefresh
Home page hero row/trending/all/weekEvery 30 minutes at most
"In cinemas" tab/movie/now_playing with your regionEvery 30 minutes at most
"Coming soon" tab/movie/upcoming with your regionEvery 30 minutes at most
"Tonight on TV" strip/tv/airing_today with a timezoneEvery 30 minutes at most
All time favourites/movie/top_ratedDaily is enough
People people are looking up/trending/person/dayEvery 30 minutes at most
Most popular people overall/person/popularEvery 30 minutes at most

Yes. The table lists what is the same and what is not.

ItemOn amodb
Base URLhttps://api.amodb.dev/3 instead of https://api.themoviedb.org/3
Trending pathsAll four media_type values with day and week, same JSON
Movie and TV listspopular, top_rated, now_playing, upcoming, airing_today, on_the_air, latest
Page limits20 results per page, pages 1 to 500
Not offeredperson/latest and the changes feeds
Key32 lowercase hex characters, see TMDB API key
Rate20, 40 or 120 requests per minute per account, sliding 60 second window, no daily cap

TMDB's API is free only until the app earns money. TMDB staff said on the TMDB forum (2026-10-15) that an app counts as commercial once it earns revenue from ads, in-app purchases, donations or subscriptions, and quoted a commercial plan at $149 a month for companies under $1M revenue (2026-03-31). amodb has no free tier and starts at $5.19 a month. It charges nothing extra for commercial use, its terms do not prohibit it, and amodb requires no amodb logo or credit line. Third party credits still apply: credit JustWatch for where to watch data, and show the attribution credit wherever a text or image carries one. A charts screen that refreshes every 30 minutes uses 48 requests a day per list. See amodb pricing, amodb vs TMDB and the Next.js movie app tutorial for a charts page.

Errors

HTTPstatus_codeWhen
40022page is not a whole number from 1 to 500.
4017The key is missing or wrong.
40236The plan period has ended.
40434The path does not exist, for example a misspelled list name or a media_type or time_window that is not in the lists above.
40537You used a write method on a list path.
42925You went over your requests per minute. Wait for the Retry-After seconds.

The full table is on the error codes page. Limits per plan are on rate limits.

Practical notes

  • The edge caches trending, popular, now playing and on the air lists for 30 minutes, and every key shares the same entry. A refresh job that runs every 30 minutes is enough. A cached reply still counts toward your requests per minute.
  • Pages go from 1 to 500. Popular lists report total_results of 20001, which is a cap and not a real count. Past page 500, use discover with sort_by and filters, which reaches titles a chart never shows.
  • List items hold only the fields needed for a card. For runtime, imdb_id or credits call movie details with append_to_response, once per card that the user opens.
  • language controls the language of titles and overviews. Titles without a translation come back in the original text, so check for empty strings before you render a card.
  • Store the id from a list, not the position. Ranks change on every refresh.