Поддръжка на The Movie Database

I've got the API working correctly. It is returning JSON based on a search query. It wired up to a very basic React app. I hid the API/token behind a Netlify function.

However, when searching for "Red" for example, the Page 1 results that are returned seem totally random. Related to the search term, yes, but totally random in terms of relevance, release date, etc. The first result on Page 1 is the 2010 Bruce Willis Movie, "Red". Somewhat expected. Most of the rest however seem to be obscure or foreign movies. The end user (and the developer) might expect "Red 2" to be returned on Page 1, or perhaps for all pages and the entire results array to be sorted by the most relevant first.

Basically, what is the sorting if any that the API returns? Is "relevance" a factor in determining what is returned? Is the developer able to set the sorting of what is returned (e.g. rating, "popularity" if it exists, etc.)? Is this a planned feature?

5 отговора (на страница 1 от общо 1)

Jump to last post

Hi @mreed, see if this discussion answers your questions.

Yes it's on topic, but I wonder if the API developer has plans to improve the relevance or the retuned data. That initial question in that post is years old.

This feature may accomplish what you want. Adding a text search to discover would allow you to use all the discover features, which include various sorting options.

@robbie3999 said:

This feature may accomplish what you want. Adding a text search to discover would allow you to use all the discover features, which include various sorting options.

Thanks! I'll give it a shot!

Undocumented Filters
On Discover, some that might help.
Examples for my language-COUNTRY. pt-BR.

For Movies:
&with_title_translation=pt-BR
&with_overview_translation=pt-BR

This one I think searches for text in Title, Tagline and Overview.
&with_text_query={any text}

For TV Show:
&with_name_translation=pt-BR

Source: https://www.themoviedb.org/talk/620bffcc4a22260042b5bf3c#620c27e96dea3a001b4097bd

Не можете да откриете филм или сериал? Влезте, за да го създадете.

Глобални

s фокусиране на лентата за търсене
p отваряне на меню "Профил"
esc затваряне на отворен прозорец
? отваряне на прозореца за клавишните комбинации

На страниците за медиите

b връщане назад
e към страницата за редактиране

На страниците за сезони

(стрелка надясно) към следващ сезон
(стрелка наляво) към предишния сезон

На страниците за епизоди

(стрелка надясно) към следващ епизод
(стрелка наляво) предишен епизод

На всички страници за изображения

a отваряне на прозорец за добавяне на изображение

На всички страници за редактиране

t меню за избор на език, на превода
ctrl+ s изпращане на форма

На страниците за дискусия

n създаване на нова дискусия
w статус на наблюдаване
p публична/лична
c затваряне/отваряне
a отваряне на действия
r отговаряне в дискусия
l към последния отговор
ctrl+ enter изпращане на вашето съобщение
(стрелка надясно) следваща страница
(стрелка наляво) предишна страница

Настройки

Искате ли да го оцените или добавите към списък?

Вход