The Movie Database Support

I am currently developing an app that allows users to set a 'watch status' for movies and TV shows, such as completed, watching, planning, on hold, or dropped. To enable this functionality, I need to create five lists. However, my goal is to allow users to search through all these lists to find movies and TV shows that they have added.

At present, I only see one option to achieve this, which is to fetch all five lists when the user logs in by checking the total_page count and making a request for each page. I would then store this information on the user's device so that I do not need to do this every time. However, I am unsure if this approach is acceptable or if there is a maximum rate limit that could prevent me from doing this, especially if the lists become too large.

Therefore, I have two questions:

  1. Is it possible to search through a list using an API call, such as api.spcrystal.com/3?4/lists/$listId?search_query="the movie or show name"?
  2. Can I fetch these five lists completely when the user logs in each time (so that the app can be used across multiple devices), and is there a limit to this approach?

3 replies (on page 1 of 1)

Jump to last post

@Tundersz said:
Fetch (5) complete lists or search through list
Therefore, I have two questions:

  1. Is it possible to search through a list using an API call, such as api.spcrystal.com/3?4/lists/$listId?search_query="the movie or show name"?
  2. Can I fetch these five lists completely when the user logs in each time (so that the app can be used across multiple devices), and is there a limit to this approach?
  1. No, it is not possible.
  2. I'm not sure I understand correctly but I think the answer is yes.

The volume limits of Requests that I am aware of are these.
I don't know if these are the limits you are having doubts about.

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: http://www.spcrystal.com/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:
http://www.spcrystal.com/talk/62edd3ca46aed400917de201#62ee88e7176a940086449cdf
http://www.spcrystal.com/talk/62c7c1b258361b005fd2e747?page=1#6301a107097c49007f60374a

http://www.spcrystal.com/talk/62c7c1b258361b005fd2e747

@ticao2 said:

  1. No, it is not possible.
  2. I'm not sure I understand correctly but I think the answer is yes.

Ah thanks, as for 'question 2' What I meant is if the user starts the app or tries to refresh the content I will need to fetch all 5 lists completely meaning in worst case scenario it's going to be 2500 requests (5 lists times the 500 max pages) but if I do the requests per 50 with 1 second between them it will work no problem?

As for the images, I'm not sure I understand, but if I have any problems with them, I'll just ask.

Another question: Can I use the description of the list to store some information? for instance. if each time I update the list I also update the description and add [last_update: '2023-03-19T12:11:32.588Z'] so I can check if the 'device local cache date' >= to that date meaning if the user only uses one device I don't have to request all lists when boarding the app.

@Tundersz said:
Ah thanks, as for 'question 2' What I meant is if the user starts the app or tries to refresh the content I will need to fetch all 5 lists completely meaning in worst case scenario it's going to be 2500 requests (5 lists times the 500 max pages) but if I do the requests per 50 with 1 second between them it will work no problem?

I think so. According to Travis Bell, this is the limit. I never tested.

As for the images, I'm not sure I understand, but if I have any problems with them, I'll just ask.

OK. I think images won't be a problem.
Data must need further processing.
Images think much less.

Another question:
Can I use the description of the list to store some information?
for instance. if each time I update the list I also update the description and add [last_update: '2023-03-19T12:11:32.588Z']
so I can check if the 'device local cache date' >= to that date
meaning if the user only uses one device I don't have to request all lists when boarding the app.

I think so. I don't think there is any content limitation.
Perhaps there is a limitation on the number of characters. I don't know.
But for what you intend to insert, I don't see a problem.
For example, see this list of mine:
http://www.spcrystal.com/list/44681
In the answer is my description of the list.

created_by  "ticao2"
description "Os ganhadores em Sundance / The Winners in Sundance  \nGrand Jury Prize Dramatic / World Cinema Grand Jury Prize Dramatic.  \nSource > http://en.wikipedia.org/wiki/List_of_Sundance_Film_Festival_award_winners  \nSource > http://en.wikipedia.org/wiki/List of Sundance Film Festival award winners  "
favorite_count  0
id  "44681"
items   
0   
adult   false
backdrop_path   "/4j78JEMgJaFWwR3lXbXNPFpqjcb.jpg"
genre_ids   
0   18
id  776541
media_type  "movie"
original_language   "sq"
original_title  "Zgjoi"

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