Supporto The Movie Database

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 risposta (nella pagina 1 di 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

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi