Soporte de The Movie Database

Hi i am fairly new to using this API, i have a quick question regarding searching for films by KEYWORD - to search i must have a valid keyword ID, however how do i find the id related to a given keyword? For example i search for keyword = cat, how do i get the id ?

Thanks in advance

5 respuestas (en la página 1 de 1)

Jump to last post

Hi Frostycrow,

There's 2 ways you would normally get the id of a keyword.

First, by calling (for example) the /keywords method on a movie. This will return a list of keyword (along with the id).

Second, would be to use /search/keyword. An example request would look like:

https://api.themoviedb.org/3/search/keyword?api_key=###&query=cat

This will return a list of items with a name and id.

Cheers.

can we send multiple keywords? i tried it by seperating from a coma... and it reduced the number of results

@LeoIndu said:
can we send multiple keywords?

Yes.

i tried it by seperating from a coma... and it reduced the number of results

Comma = AND
Pipe = OR

Use pipe, | .
See the rule:

AND/OR Logic
Also note that a number of filters support being comma (,) or pipe (|) separated.
Comma's are treated like an AND query while pipe's are treated like an OR.
This allows for quite complex filtering depending on your desired results.

What @ticao2 said is true for discover. This does not work on search.

worked!... thank you so much☜(゚ヮ゚☜)

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión