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
Non riesci a trovare un film o una serie Tv? Accedi per crearlo.
Vuoi valutare o aggiungere quest'elemento a una lista?
Non sei un membro?
Risposta da Travis Bell
il 7 dicembre, 2016 alle 4:45PM
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):
You can see it returns a
poster_path
of: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: