The Movie Database サポート

Hello,

I'm a developer utilizing TheMovieDB API for retrieving movie information. Currently, I'm using the search API endpoint to perform searches based on user queries. However, when attempting to fetch detailed movie information for each result using the movie ID, I encounter a challenge with the API rate limit.

I've attempted to make individual fetch requests for each movie by extracting the movie ID from the search results. Unfortunately, this approach leads to excessive requests, which exceeds the API rate limit and causes potential disruptions.

Could you please provide guidance on an alternative or more efficient approach to retrieve the duration of a movie associated with a search query? I'm interested in finding a solution that allows me to obtain the movie duration without exceeding the rate limit.

Thank you for your assistance!

Best regards, x40s and the ZeFilm developer team

4 replies (on page 1 of 1)

Jump to last post

Here is a recent discussion giving the current rate limits (last post): https://www.themoviedb.org/talk/63d65d5c20e6a500bc00c482

I don't think there is any way to get movie duration (runtime) without doing an individual movie query. So I guess you would just have to enforce rate limiting in your application when you do the individual movie queries. Someone else may have a better idea.

I do personally think that runtime should be included in the basic movie information that you get from a search or discover, so perhaps you might want to make an enhancement request to do so.

Obviously I don't know exactly what you are doing, but since movie runtime isn't likely to change perhaps you might want to consider caching it locally once you retrieve it for a movie.

Hey I still can't pull duration using the search API, any idea if it will every come to search API, or will I have to use runtime from get details?

Wanted to note that I am also needing this feature. I want to use it to filter out which possible media it could be. And the technical restraints of my system only provide the movie name and duration.

@robbie3999 said:

Here is a recent discussion giving the current rate limits (last post): https://www.themoviedb.org/talk/63d65d5c20e6a500bc00c482

I don't think there is any way to get movie duration (runtime) without doing an individual movie query. So I guess you would just have to enforce rate limiting in your application when you do the individual movie queries. Someone else may have a better idea.

I do personally think that runtime should be included in the basic movie information that you get from a search or discover, so perhaps you might want to make an enhancement request to do so.

Obviously I don't know exactly what you are doing, but since movie runtime isn't likely to change perhaps you might want to consider caching it locally once you retrieve it for a movie.

+1. Absolutely should be included in the basic movie information, and should not require an addition request to the details endpoint for something so trivial.

Why is it so difficult to add this? This can literally be done in a second. Isn't this all just stored in a database, and it's a matter of simple adding one additional field to the endpoint? Forgive me if I'm being crass, just upset with having to deal with a bunch issues with the API for the past few weeks. Is TMDB open-source?

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

全般

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

メディアのページ

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

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

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

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

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

全ての画像のページ

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

全ての編集ページ

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

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

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

設定

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

ログイン

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

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