Supporto The Movie Database

I am feeling very frustrated at the way the TMDB API usage examples have been given here: http://docs.themoviedb.apiary.io/#reference/search/searchmovie/get.

I am trying to query by movie name "Fight Club", but the example to the right does not show how to use the movie name in the URL, but the returned result includes tall correct results. In fact this is the case with almost all examples. The URL is incomplete, does not show how to use the query parameter or other parameters, but the output shows a complete example.

I tried these URLs:

http://api.themoviedb.org/3/search/movie=titanic?api_key=XXXX  
http://api.themoviedb.org/3/search/titanic?api_key=XXXX  

In each case it returns saying that the resource could not be found.

Help!

5 risposte (nella pagina 1 di 1)

Jump to last post

Hi Cupidlvogel,

An example search query looks like this:

https://api.themoviedb.org/3/search/movie?api_key=###&query=titanic

Hope that helps.

Hi, in the same vein, can you tell me how do I see all movies that have a particular genre according to this call?

http://api.themoviedb.org/3/genre/10751/movies?api_key=

This by default excludes movies with fewer than 10 votes and adult movies. I want all movies, including adult.

And the numbers for each genre look pretty small. So are there lots of movies with no genre information?

If you take a look at http://docs.themoviedb.apiary.io/#reference/genres/genreidmovies/get it lists what you need.

If you're feeling lazy, there are two params you can add to your query

include_all_movies

include_adult

http://api.themoviedb.org/3/genre/10751/movies?api_key=<key>&include_all_movies=true&include_adult=true

should get you what you're looking for.

Everything grobot said is true but I would actually recommend using discover. You get way more filters and sort options along with a consistent API if you want to do more queries down the road.

https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=10751&sort_by=popularity.desc&include_adult=true

Cheers.

Thanks guys!

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