The Movie Database サポート

Hi there!

I'm using TMDB for a class project and I am using the "Popular Movies" endpoint but running into an issue where I can't access more than the first 500 pages of results - querying the https://api.themoviedb.org/3/movie/popular seems to return around 42k pages of results, but anytime I put in a number greater than 500 in the page parameter of a query/call, I get a 400 error code in response that says this (this happens in my own react/javascript environment, and also when I try a similar call on the "Try It Out" widget on this page https://developer.themoviedb.org/reference/movie-popular-list)

{
  "success": false,
  "status_code": 22,
  "status_message": "Invalid page: Pages start at 1 and max at 500. They are expected to be an integer."
}

Is there an offset parameter or something I can use to sidestep this issue? I would love to be able to access the full 42k pages of results if possible to vastly expand the amount of TMDB movie info I'm able to pull.

Any help is greatly appreciated! Thank you!

3 replies (on page 1 of 1)

Jump to last post

Forgot to mention - part of my confusion is that the maximum for the page parameter says it's like 2 billion something, so it didn't feel right to be getting this response for numbers in the low 500's or 600's. Here's what the page parameter details list on the documentation page https://developer.themoviedb.org/reference/movie-popular-list

type:integer format:int32 minimum:-2147483648 maximum:2147483647

Correct, we only support querying up to page 500. I recently replied to another user about this, with some examples of what you can do to get around it: https://www.themoviedb.org/talk/61bbb4dc6a300b00977d906c#65be68d06c449c017c8d5bfd

Thanks for the reply! I appreciate it and will play around with different filters and parameters to shrink the overall request. I had gotten so excited about the idea of picking from 42k pages of movies that this felt like a bigger setback in the moment, and this feedback helps me regain some momentum around how I can make that possible. Thanks again!

映画やテレビ番組が見つかりませんか?ログインして作成してください。

全般

s 検索バーに移動する
p プロファイルメニューを開く
esc 開いているウィンドウを閉じる
? キーボードショートカットウィンドウを開く

メディアのページ

b 戻る(または該当する場合は親に)
e 編集ページに行く

テレビ番組のシーズンのページ

(右矢印)次のシーズンに行く
(左矢印)前のシーズンに戻る

テレビ番組のエピソードのページ

(右矢印)次のエピソードに進む
(左矢印)前のエピソードに戻る

全ての画像のページ

a 画像追加ウィンドウを開く

全ての編集ページ

t 翻訳選択を開く
ctrl+ s フォームを送信する

ディスカッションのページ

n 新しいディスカッションを作成する
w 監視ステータスを切り替える
p 公開/非公開を切り替える
c 閉じる/開くを切り替える
a アクティビティを開く
r ディスカッションに返信
l 最後の返事に行く
ctrl+ enter メッセージを送信する
(右矢印)次のページ
(左矢印)前のページ

設定

このアイテムを評価したり、リストに追加したりしたいですか?

ログイン

メンバーではありませんか?

登録してコミュニティに参加