The Movie Database Support

The current Search API supports results for partial queries as well (e.g: "Incep" provides "Inception" as result). So I was wondering if I could send an API call for each key press in the search field for a user?

Essentially, it calls for inc, ince, incep, incept etc. as the user types out the name, so they get updated and more accurate results with each letter. This basically means I'm sending a separate GET sent with each keystroke.

Will I hit the API rate limiter or something if I use this? Even if my app has 5k concurrent users, will I not hit any API wall due to rapid number of requests/second?

@Travis - Thanks again for your hard working in maintaining TMDB and letting use these APIs <3 !

3 replies (on page 1 of 1)

Jump to last post

@eternalwolf said: Essentially, it calls for inc, ince, incep, incept etc. as the user types out the name, so they get updated and more accurate results with each letter. This basically means I'm sending a separate GET sent with each keystroke.

Just as an recommendation from a developer: If you have the opportunity to implement backpressure strategies (=> reactive programming), I'd recommend to make use of it. For an example, you could add a timeout (probably 200 milliseconds) between each request instead of each keystroke, so the app would ignore/drop some "irrelevant requests".

Will I hit the API rate limiter or something if I use this? Even if my app has 5k concurrent users, will I not hit any API wall due to rapid number of requests/second?

There is no rate limiting: https://developers.themoviedb.org/3/getting-started/request-rate-limiting

Just as an recommendation from a developer: If you have the opportunity to implement backpressure strategies (=> reactive programming), I'd recommend to make use of it. For an example, you could add a timeout (probably 200 milliseconds) between each request instead of each keystroke, so the app would ignore/drop some "irrelevant requests".

This is very helpful, will look into it.

There is no rate limiting: https://developers.themoviedb.org/3/getting-started/request-rate-limiting

Wow, that's crazy though. So there is no limit whatsoever to DAU/MAU limits huh... awesome.

Thanks vkay :D !

You're welcome ;)

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