The Movie Database Support

Hello friends, I made a C# WinForms app using TMDBLib to get information about movies, anime, series, TV shows, etc., but the requests take more than a minute to return data and give the following error:

"The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing."

I also tested it in Delphi using RESTRequest4Delphi, and it gives the same error (with different wording).

Does the API have limitations on requests per second, minute, hour, or per IP? I only made 10 requests in one minute, and after this, the app takes more than a minute to get a response.

After all time elapsed, don't have a response and the app stay with no filled with data!

Also, how should I handle image attribution? The website only provides SVG images. Is it enough to just display the image, or do I need to do something else?

My api key works, i've tested with this link on browser: https://api.themoviedb.org/3/movie/550?api_key=API_KEY&language=pt-BR and browser shows the json returned.

1 reply (on page 1 of 1)

Jump to last post

@starRo said:
The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Hello friends, I made a C# WinForms app using TMDBLib to get information about movies, anime, series, TV shows, etc., but the requests take more than a minute to return data and give the following error:
"The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing."

I think you can find more help on the TMDbLib website
https://github.com/jellyfin/TMDbLib
https://opencollective.com/jellyfin

I also tested it in Delphi using RESTRequest4Delphi, and it gives the same error (with different wording).
Does the API have limitations on requests per second, minute, hour, or per IP?
I only made 10 requests in one minute, and after this, the app takes more than a minute to get a response.
After all time elapsed, don't have a response and the app stay with no filled with data!

API Request Limits
First we have this information in the instructions for using the TMDb API.
https://developer.themoviedb.org/docs/rate-limiting

And Travis Bell, the Administrator, has already given us this explanation.

For API Requests:

One of our CDN providers enforces some base level rate limiting to help prevent DDOS attacks.
I believe it's a maximum of:
50 requests per second and
20 connections per IP.

See here: https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747?page=1#62c83b78befd91005007a0c7

For Images:

For image.tmdb.org the only thing we limit is the max number of simultaneous connections.
The limit is the same, 20.

See here:
https://www.themoviedb.org/talk/62edd3ca46aed400917de201#62ee88e7176a940086449cdf
https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747?page=1#6301a107097c49007f60374a
https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747

And...
Is there really no API Rate Limiting?

The original rate limiting (40 requests every 10 seconds) has indeed been been disabled since December 2019.
There are some higher overall limits that still exists to help mitigate different attacks and the like.
I believe they sit around the 50 request per second range.

See here:
https://www.themoviedb.org/talk/6442ced4d35dea02fcfb0fab#6442d4a0d35dea0455fb1a07

Also, how should I handle image attribution?
The website only provides SVG images. Is it enough to just display the image, or do I need to do something else?

Include the TMDb logo and state that the data/images are obtained from TMDb

My api key works, i've tested with this link on browser: https://api.themoviedb.org/3/movie/550?api_key=API_KEY&language=pt-BR and browser shows the json returned.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login