Suporte do 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 respostas (na 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☜(゚ヮ゚☜)

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade