I am creating a website to display movies and TV shows. I am using a fetch to https://api.themoviedb.org/3/search/multi.
This returns both movies and TV shows. I have created a detail page to view more information about the movie or TV show, which uses its ID. The problem is, I don't know whether it's a movie or a TV show to differentiate it.
Example: The TV show 'Gen V' has an ID: 205715.
But there is also a movie called 'To Die For'. Is there any information I can use within the fetch to distinguish whether it's a movie or a TV show?
Thank you, and please excuse my ignorance.
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ اکتبر 24, 2023 ساعت 11:12 ق.ض
In the data for each item in the response you will find information about the type of each item.
پاسخ توسط BartHxC
در تاریخ اکتبر 25, 2023 ساعت 12:29 ق.ض
Thank you very much! It now works correctly! One question, are the movies and series that contain "adult" XXX movies? I would like to check that information so that no one can consume data from those types of applications on my website.
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ اکتبر 25, 2023 ساعت 3:51 ق.ض
Yes. Adults are porn films.