Axuda de The Movie Database

Hello,

I want to filter movies by entering a partial or full movie name.

I am using a "discover" to fetch the movies and I want to add a search functionality as well. Since my get request is limited by dates "search/movie" doesn't work for me.

I found out that I can use "with_text_query" parameter for discover request but it doesn't work properly. For example if the user types "pool" it doesn't return "Deadpool & Wolverine". As far as I understand you need to provide the whole word. I read almost all the tickets in the forum but I can't solve the problem.

https://api.themoviedb.org/3/discover/movie?api_key=[your_api_key]&with_text_query=pool&page=1&sort_by=popularity.desc&primary_release_date.gte=2024-07-15&primary_release_date.lte=2024-08-05

Suggestion: Adding query parameter to discover to filter the movies by their titles would be absolutely great.

Is there anyone who can help me?

1 resposta (na páxina 1 de 1)

Jump to last post

Hi @Kerem5070,

As you may have already gathered, the with_text_query filter on discover is unsupported, that is why it is not documented anywhere. There is not currently any plans to bring full search to discover.

Regarding your query though, I'm not sure who would enter "pool" while searching for Deadpool. Obviously entering "deadpool" works as expected:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_text_query=deadpool&page=1&sort_by=popularity.desc&primary_release_date.gte=2024-07-15&primary_release_date.lte=2024-08-05

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión