Supporto The Movie Database

Hey Travis, Hope everything's going great for you :)

I have been playing around with API and noticed that when searched for a movie with the release year in the query string, it returns no results.
For example : https://api.themoviedb.org/3/search/company?api_key=API_KEY&query=Gravity%202013&page=1
returns :

{
  "page": 1,
  "results": [],
  "total_pages": 1,
  "total_results": 0
}

This even happens on the website ( I never noticed it). I think the year should be considered in narrowing the results. Its not a feature that I am suggesting, but I think there should be some way around it (better pattern matching perhaps) so that the user doesn't get blank results .

This problem occurred when my python script query'd using the filename (minus the extension) which had years in it (eg. "Gravity (2013)")

2 risposte (nella pagina 1 di 1)

Jump to last post

There is the y:2013 option for search on the website. I can't help you wth the API.

We don't support adding the year as part of the search query. You can however use the year or primary_release_year params as per the documentation. wink

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