Поддержка The Movie Database

Hello I would like to know how I can see several pages in a request

7 ответов (на странице 1 из 1)

Jump to last post

I don't thinks it's possible. it's intended to be fetched only 1 page per request...

maybe it's available for VIP member ? dunno.. :)

The petition in the "Required Parameters" puts the parameter "page" = Minimum 1 maximum 1000.Yo think it is possible, but not how to do it

you can fetch a page of given number, such as page=1 or page=100, but neither page=1,2,3.....,100 nor pages=100.

So if I want to get a list of 10 pages of "top_rated." Do I have to go page by page?

ex: https://api.themoviedb.org/3/movie/top_rated?api_key=XXXXXXXXXX

I'll have to make multiple requests? Is not it can be done with a single request?

yes, you have to go page by page (as I understand ), keep in mind that you have a request limitation:

We do enforce a small amount of rate limiting. Please be aware that should you exceed these limits, you will receive a 503 error. 

30 requests every 10 seconds per IP 

Maximum 20 simultaneous connections per IP

Thanks gitawego I am Spanish and my dad is Google Translate XXDD

To confirm what gitawego said, you can't pull multiple pages in a single call. You will have to iterate through each page.

It's also worth pointing out since the rate limiting was mentioned here, that our rate limiting process will be changing shortly. You can read more about that here: http://www.themoviedb.org/talk/5317af69c3a3685c4a0003b1

Cheers.

Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.

Глобальные

s фокусироваться на панели поиска
p открыть меню профиля
esc закрыть открытое окно
? открыть окно сочетаний клавиш

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

b назад (или выше, если применимо)
e перейти на страницу правки

На страницах сезонов

(стрелка вправо) перейти к следующему сезону
(стрелка влево) перейти к предыдущему сезону

На страницах эпизодов

(стрелка вправо) перейти к следующему эпизоду
(стрелка влево) перейти к предыдущему эпизоду

На всех страницах изображений

a открыть окно добавления изображения

На всех страницах правки

t открыть переключатель переводов
ctrl+ s отправить форму

На страницах обсуждения

n создать новое обсуждение
w сменить статус отслеживания
p публичное/приватное
c закрыть/открыть
a открыть страницу действий
r ответить в обсуждении
l перейти к последнему ответу
ctrl+ enter отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти