Hello, when I use the trending search : "https://api.themoviedb.org/3/trending/all/day?language=en-US&api_key=", some movies have name variable while some other have title variable. First of all is there a reason for this ? And also when I take the id of a movie with a "name" variable, the id is wrong. For example, I got: "id": 138502, "name": "X-Men '97", but when I search for the movie with the id of "138502" with https://api.themoviedb.org/3/movie/138502?, I found the page of the movie "Offline". Am I doing something wrong or is there a problem in the API ? (sorry if my english is incorrect)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by superboy97
on March 21, 2024 at 7:45 AM
It seems that you are mixing series and movies. The ones with "name" are series and the ones with "title" are movies. You have a field called "media type" which indicate you the type of the entry.
If you want only movies, you should use the query "https://api.themoviedb.org/3/trending/movie/day?language=en-US&api_key=" instead of the one you are currently using.