The Movie Database Support

I have been making requests to TMDb from the client using the API Key until now, however, I don't think that's very secure.

All my application needs is to read some data, e.g., get popular movies or search for a TV Show. I thought about making these requests server-side, then sending the data to the user, however, I would like to make the requests directly from the client-side.

Should I use a Guest Session for this? Where I would request for a guest_session_id to my server, and than use that guest_session_id from the client to make all the requests to TMDb? If so, where could a get more information about the IP liimts?

The documentation for getting popular movies, for example, only talks about using the api_key field to make requests, so I wonder if there's another way to get that data client-side without exposing the API Key?

Sorry if duplicate, I couldn't find another question related to this. Thanks in advanced.

1 reply (on page 1 of 1)

Jump to last post

@urboypx said:
Requests without API Key
I have been making requests to TMDb from the client using the API Key until now, however, I don't think that's very secure.
All my application needs is to read some data, e.g., get popular movies or search for a TV Show. I thought about making these requests server-side, then sending the data to the user, however, I would like to make the requests directly from the client-side.
Should I use a Guest Session for this? Where I would request for a guest_session_id to my server, and than use that guest_session_id from the client to make all the requests to TMDb? If so, where could a get more information about the IP liimts?
The documentation for getting popular movies, for example, only talks about using the api_key field to make requests, so I wonder if there's another way to get that data client-side without exposing the API Key?
Sorry if duplicate, I couldn't find another question related to this. Thanks in advanced.

I believe it is the Token feature.
You will need to use API v4 combined with API v3.
I personally do not use or know how this feature works.
I suggest starting to understand how it works by reading the instructions on these pages.
https://developers.themoviedb.org/3/getting-started/authentication
https://developers.themoviedb.org/3/authentication/how-do-i-generate-a-session-id
https://developers.themoviedb.org/4/getting-started/authorization

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