The Movie Database Подршка

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 одговор (на страни 1 од 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.

Не можеш да нађеш филм или серију? Пријави се да додаш.

Глобално

s фокусирај траку за претрагу
p отворите мени профила
esc затворити отворени прозор
? отвори прозор пречице на тастатури

На страницама медија

b вратити се назад (или родитељу кад је то применљиво)
e иди на страницу за уређивање

На страницама ТВ сезона

(стрелица надесно) пређите на следећу сезону
(лева стрелица) иди на претходну сезону

На страницама ТВ епизода

(стрелица надесно) пређите на следећу епизоду
(лева стрелица) иди на претходну епизоду

На свим страницама са сликама

a отвори прозор за додавање слике

На свим страницама за уређивање

t отвори селектор превода
ctrl+ s пошаљи образац

На страницама за дискусију

n отвори нову дискусију
w мења статус гледања
p мења јавно/приватно
c мења отвори/затвори
a отвори активност
r одговор на дискусију
l иди на последњи одговор
ctrl+ enter пошаљи поруку
(стрелица надесно) следећа страница
(лева стрелица) претходна страница

Подешавања

Желите ли да оцените или додате ову ставку у листу?

Пријави се