The Movie Database Support

Hey, I am new here and trying to utilize themoviedb's API for a project of mine. I have a SQL database of movie titles (I exported a CSV from IMDB and parsed it with PHP and inserted into my db) and I want to query themoviedb and search for the movies with the titles I have in my DB and then grab the poster path data for those movies. The idea at the end for my project, is when a particular movie comes up the poster can also come up since I have the poster path (I'll figure this out later, I just need to know right now how to query the API from within PHP and then how to grab a specific attribute -- in this case poster path)

I have a valid API key, and I can obviously use the "Try it out" feature within the developers section and I could manually insert the poster paths into my DB, but I want to basically run the same search queries from the try it out feature in my PHP code

1 reply (on page 1 of 1)

Jump to last post

Hi @amoghs96 What you want to do is certainly possible but I am a little unclear with what you're having problems with.

When you grab a movie (as an example):

https://api.themoviedb.org/3/movie/550?api_key=###

You can see it returns a poster_path of:

/adw6Lq9FiC9zjYEpOqfq03ituwp.jpg

With that in hand, you can make an image request based on the information found in the API documentation. Which just as a simple example looks like:

http://image.tmdb.org/t/p/original/adw6Lq9FiC9zjYEpOqfq03ituwp.jpg

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?

hyrje