Hi,
My use case is to lookup movie info from local file names where I store my movies / series on disk.
Could you explain to me why when I search for the movie "Room" using the Search API, I'm getting hundreds of matches (which makes sense), but the movie "Room" is not the first match ? What is it ranked by ? It doesn't seem to be popularity / title match / vote average / release date, and there is no query params to sort it the way I want... It works in the Web UI of TMDB though, which is why I'm confused.
curl --request GET --url 'https://api.themoviedb.org/3/search/movie?query="Room"&include_adult=false&language=en-US&page=1' --header 'Authorization: Bearer <TOKEN>' --header 'accept: application/json'
{"page":1,"results":[{"adult":false,"backdrop_path":"/30TgnSvXiL7NQoQ5WWwHqw0FRhA.jpg","genre_ids":[18,10749],"id":48650,"original_language":"es","original_title":"Habitación en Roma","overview":"A hotel room in the center of Rome serves as the setting for Alba and Natasha, two sexy and recently acquainted women, to have a physical adventure that touches their very souls.","popularity":44.695,"poster_path":"/w90ItYf9qagQKVEBr1uFxPomAtf.jpg","release_date":"2010-05-07","title":"Room in Rome","video":false,"vote_average":6.4,"vote_count":712},{"adult":false,"backdrop_path":"/pmEUSfQalBT4K847zJ4f3QnhYG6.jpg","genre_ids":[10749],"id":611812,"original_language":"ko","original_title":"룸싸롱 맛있는 서비스","overview":"A room salon isn't doing well. There's only Min-joo on duty. One day, a beautiful girl called Joo-hee comes looking for a job and Min-joo and her boss gets her to work as a call-girl. The store soon becomes famous for its luxurious treatment and service and sales increase. The owner suggests they move up to Gangnam and they all get excited...","popularity":14.298,"poster_path":"/1EknJ1pVbnEOgt1Pjy25F9tAX0C.jpg","release_date":"2018-08-09","title":"Delicious Room Salon Service","video":false,"vote_average":6.8,"vote_count":4},{"adult":false,"backdrop_path":"/64I5NOLvPDrO4qVTHk0c09vWYmt.jpg","genre_ids":[9648,53],"id":5595,"original_language":"es","original_title":"La Habitación de Fermat","overview":"Four mathematicians are imprisoned in a shrinking room; with the walls closing in, they must try anything to escape this fatal puzzle.","popularity":11.335,"poster_path":"/qfcbdLZu0U0sIaUX3o7zkocPeCX.jpg","release_date":"2007-10-07","title":"Fermat's Room","video":false,"vote_average":6.648,"vote_count":383},{"adult":false,"backdrop_path":"/2wqYNWasS3cxjAvoNfUTAZ58XGT.jpg","genre_ids":[18],"id":1088514,"original_language":"es","original_title":"La habitación de al lado","overview":"Ingrid, a best-selling writer, rekindles her relationship with her friend Martha, a war journalist with whom she has lost touch for a number of years. The two women immerse themselves in their pasts, sharing memories, anecdotes, art, movies—yet Martha has a request that will test their newly strengthened bond.","popularity":32.713,"poster_path":"/786Uu8eHfctp2TkII7ga1AnTBSs.jpg","release_date":"2024-10-18","title":"The Room Next Door","video":false,"vote_average":0.0,"vote_count":0},{"adult":false,"backdrop_path":"/lr142QuOIjASdwp9823KaITKRcx.jpg","genre_ids":[27],"id":1016848,"original_language":"en","original_title":"The Front Room","overview":"Everything goes to hell for newly-pregnant Belinda after her mother-in-law moves in. As the diabolical guest tries to get her claws on the child, Belinda must draw the line somewhere.","popularity":48.55,"poster_path":"/p0qqnfmhmJYYz73jK7UOwP3ZUgn.jpg","release_date":"2024-09-05","title":"The Front Room","video":false,"vote_average":1.0,"vote_count":1},{"adult":false,"backdrop_path":"/nm5nC0vKRHSZZoQuhdmVuEML5kO.jpg","genre_ids":[18,27,53,10770],"id":15021,"original_language":"es","original_title":"La habitación del niño","overview":"Juan and Sonia arrive at a large old house, an ideal place to raise their newborn son. When, one night before going to bed, they check the operation of the monitoring device installed in the baby's room, they discover that someone is sitting next to the crib.","popularity":13.827,"poster_path":"/t5BtCJyju9ltoVUV0VmwKUt5N0S.jpg","release_date":"2006-11-04","title":"The Baby's Room","video":false,"vote_average":6.739,"vote_count":163},{"adult":false,"backdrop_path":"/7XvlHiBj0l4FiieSSkAZ8OVbVnB.jpg","genre_ids":[18,53],"id":72478,"original_language":"pl","original_title":"Sala samobójców","overview":"After enduring extreme humiliation at school, Polish teen Dominik holes himself up in his room and begins spending all his time in a virtual reality chat room.","popularity":11.744,"poster_path":"/24a6wmwFr8AicQaBdK9LSEPahgb.jpg","release_date":"2011-03-04","title":"Suicide Room","video":false,"vote_average":7.3,"vote_count":453},{"adult":false,"backdrop_path":null,"genre_ids":[18,10749],"id":154200,"original_language":"es","original_title":"La habitación azul","overview":"A couple meet each other often in a motel room.","popularity":8.826,"poster_path":"/yHagWA3tKiDzLBMdthUB2xQRLqF.jpg","release_date":"2002-05-04","title":"The Blue Room","video":false,"vote_average":5.0,"vote_count":17},{"adult":false,"backdrop_path":"/hBscwv3clx5WbJ2bEIJ8bbqaxCv.jpg","genre_ids":[10749],"id":859864,"original_language":"ko","original_title":"노래방: 화끈한 여자들","overview":"","popularity":12.499,"poster_path":"/eB2QlXsTljTeBLsSfv0yvHX9MBX.jpg","release_date":"2018-11-09","title":"Karaoke Room: Hot Girls","video":false,"vote_average":0.0,"vote_count":0},{"adult":false,"backdrop_path":"/fsyLxF8eIfZ2Z7DXmjD6n9vHmb8.jpg","genre_ids":[18,10749],"id":17473,"original_language":"en","original_title":"The Room","overview":"Johnny is a successful banker with great respect for and dedication to the people in his life, especially his future wife Lisa. The happy-go-lucky guy sees his world being torn apart when his friends begin to betray him one-by-one.","popularity":16.689,"poster_path":"/9QscHN4pXj6Ja1k7e1ZT4vWDGnr.jpg","release_date":"2003-06-27","title":"The Room","video":false,"vote_average":4.0,"vote_count":1369},{"adult":false,"backdrop_path":"/mgJFiLulYzHxorIWNQyU5Wp4KHU.jpg","genre_ids":[18],"id":11447,"original_language":"it","original_title":"La stanza del figlio","overview":"A psychoanalyst and his family go through profound emotional trauma when their son dies in a scuba diving accident.","popularity":8.431,"poster_path":"/mUeDLodG63QSGBEGWDYZIsYjhok.jpg","release_date":"2001-03-09","title":"The Son's Room","video":false,"vote_average":7.084,"vote_count":487},{"adult":false,"backdrop_path":"/qN33G7pP36ikmLM65y8OOvrNKXX.jpg","genre_ids":[18,10749],"id":610209,"original_language":"ko","original_title":"내방에 일본여자가 있다","overview":"A determined Japanese woman gets a job in Korea. She thinks she will be cleaning, but she is taught to massage. When her director touches her inappropriately she runs into the street where she encounters men who take advantage of her and she becomes homeless. She is found by a webtoon designer who uses her as inspiration for his webtoons. Will she become more than his inspiration?","popularity":7.878,"poster_path":"/m3pPpNBsj7XKpGfTeokZvOzJjgL.jpg","release_date":"2019-02-12","title":"There Is a Japanese Woman in My Room","video":false,"vote_average":4.1,"vote_count":6},{"adult":false,"backdrop_path":"/zHA8AkCjPbVTxW6ZsPfEmau75mp.jpg","genre_ids":[53,80],"id":70475,"original_language":"de","original_title":"Zimmer 13","overview":"A serial-killer is murdering the ladies of a night club. Detective Gray is seeking for the killer but can only find a lot of gangsters. And the killer is about to act again...","popularity":5.114,"poster_path":"/esEmCHalNZxgF5E4TkrC2PPDTAr.jpg","release_date":"1964-02-20","title":"Room 13","video":false,"vote_average":5.9,"vote_count":13},{"adult":false,"backdrop_path":"/mWLljCmpqlcYQh7uh51BBMwCZwN.jpg","genre_ids":[27,53,9648],"id":522681,"original_language":"en","original_title":"Escape Room","overview":"Six strangers find themselves in circumstances beyond their control, and must use their wits to survive.","popularity":32.556,"poster_path":"/8Ls1tZ6qjGzfGHjBB7ihOnf7f0b.jpg","release_date":"2019-01-03","title":"Escape Room","video":false,"vote_average":6.543,"vote_count":4591},{"adult":false,"backdrop_path":"/izHgDJoLY4SRsvnZIqomFL2X8dX.jpg","genre_ids":[35,18,10749],"id":355998,"original_language":"zh","original_title":"无限春光27","overview":"This sensitive and sensual film draws together several narratives spanning several decades, all of them transpiring in the same room of the same Singaporean hotel — and all of them involving sex.","popularity":10.586,"poster_path":"/mrkrtLNROhzfpboxgDiH6BZiyOR.jpg","release_date":"2015-09-15","title":"In the Room","video":false,"vote_average":4.574,"vote_count":34},{"adult":false,"backdrop_path":"/4QukZr6HU6kXYdAOIFYruxAK0yp.jpg","genre_ids":[10749],"id":528549,"original_language":"ko","original_title":"룸싸롱 여대생들","overview":"Sexy female college students get part-time jobs at a room salon and provide very special services.","popularity":24.267,"poster_path":"/xIGPD1QQzxIwRJc55ThQjZpD3tT.jpg","release_date":"2018-03-29","title":"Room Salon College Girls","video":false,"vote_average":8.0,"vote_count":2},{"adult":false,"backdrop_path":"/bylJq7JEA87YqHMObZUnaP292T2.jpg","genre_ids":[35,80],"id":958006,"original_language":"en","original_title":"The Kill Room","overview":"A hitman, his boss, an art dealer and a money-laundering scheme that accidentally turns the assassin into an overnight avant-garde sensation, one that forces her to play the art world against the underworld.","popularity":40.685,"poster_path":"/qKpdy7N6zX05eisopvvviiTwPxb.jpg","release_date":"2023-09-14","title":"The Kill Room","video":false,"vote_average":5.997,"vote_count":190},{"adult":false,"backdrop_path":"/fDfOzom4FRSeNy15NZgDk8rJc9Y.jpg","genre_ids":[18],"id":351510,"original_language":"ko","original_title":"자매의 방","overview":"Mi-young (Song Eun-jin) suddenly returned to Korea because she missed her first love that she could not achieve while studying in the United States. She learned that her sister Mi-hye (Joo Yeon-seo) and college senior Jae-hyuk (excitedly) became a lover. I can't sleep. Mi-hye, who gets to know Mi-young's heart, declares farewell to Jae-hyuk and asks her not to meet her younger brother, Mi-young. However, Mi-young respects her sister's choices, but cannot organize her heart for Jae-hyuk. A few months later, Miyoung and Jaehyuk meet again at the funeral. Mi-young begins to rekindle her love for Jae-hyuk, whom she had endured, and confesses to Jae-hyuk her sincerity she had not conveyed for a long time. On the other hand, Mi-hye, who learns the lofty heart of a divorced company senior, Young-hoon (Kim Do-jin), carefully starts a new love...","popularity":8.016,"poster_path":"/5xAV8XYDDJak2CTxyMEiDySnvNL.jpg","release_date":"2015-04-30","title":"The Sisters' Room","video":false,"vote_average":9.0,"vote_count":1},{"adult":false,"backdrop_path":"/wjTNqt0RLe4aRMJHvjlKLtzw1vr.jpg","genre_ids":[27,80,53],"id":313922,"original_language":"en","original_title":"Green Room","overview":"A punk rock band becomes trapped in a secluded venue after finding a scene of violence. For what they saw, the band themselves become targets of violence from a gang of white power skinheads, who want to eliminate all evidence of the crime.","popularity":22.907,"poster_path":"/evZicaR7nXe4LiD9G6QYTorcJGO.jpg","release_date":"2016-04-15","title":"Green Room","video":false,"vote_average":6.7,"vote_count":2618},{"adult":false,"backdrop_path":"/pUKIUdLMHvPkCs5pQeB2TFhPSYM.jpg","genre_ids":[18,53],"id":264644,"original_language":"en","original_title":"Room","overview":"Held captive for 7 years in an enclosed space, a woman and her young son finally gain their freedom, allowing the boy to experience the outside world for the first time.","popularity":28.034,"poster_path":"/dIxoYFcj6EqD5KScuU8lWCftnvH.jpg","release_date":"2015-10-16","title":"Room","video":false,"vote_average":8.022,"vote_count":9042}],"total_pages":71,"total_results":1420}a
How can I manage to get this one on top, so that I can grab the first match ? My files are well-organized, usually the file name is the right movie name, but the API results are rarely organized the correct way so I'm getting the wrong results ...
找不到电影或节目?登录并创建它吧。
jahmyst 的回复
于 2024 年 09 月 07 日 8:56上午
I've added the release year to my query, it works way better now. Thanks for making this !
ticao2 🇧🇷 pt-BR 的回复
于 2024 年 09 月 08 日 11:31上午
Maybe that's what you want.
Exact Searches
There are plans to add this feature.
It's already on Trello's To-Do list.
There is no implementation deadline.
If you want you can vote. More votes, faster. :-)
See here:
https://trello.com/c/PljjkQHE/139-add-better-support-for-exact-searches?filter=search