پشتیبانی پایگاه داده‌ فیلم

I check the documentation and I feel confused on how to compose the api . Exemple : https: // api.themoviedb.org/3/movie/550?api_key=" mynumber" So if I want to get data from this page https://www.themoviedb.org/movie/63-twelve-monkeys how should I compose my link. To get the rating / overview / poster or backdrop. tnanks sorry for this beginner question

11 پاسخ (در صفحه 1 از 1)

Jump to last post

I was able to get something with this https://api.themoviedb.org/3/search/movie?api_key=######&query=twelve-monkeys but i get two movie. is it possible to get only one. and for the cast and director is a other request what will that be.

Hi MaxArch,

Yes, that's a movie search. It is not possible to limit the results server side but this is very easy to do client side so it shouldn't be a concern (results is just an array).

To get the full movie details of a movie like in your example, you would take the ID of Twelve Monkeys which is 63 and pass it to the /movie/{id} method. An example (with cast and crew) would be:

https://api.themoviedb.org/3/movie/63?api_key=###&append_to_response=credits

Hope that helps.

thanks for the info! what is popularity. Can we get the imdbRating on this page?

Popularity is a float value that represents how popular a movie is on TMDb. The higher the number the more popular. It's range is essentially 0.0 to infinity (there's no upper limit). You can see how that relates relative to the most popular items by calling /movie/popular or using /discover/movie`.

We do not have any IMDB data other than the id.

Cheers.

Thanks for the precision. I understand better now. I still have questions for backdrop_path and poster_path . For this path will it be possible to get another image ? If I go to the original page https://www.themoviedb.org/movie/63-twelve-monkeys, I can see a lot of different posters. Example if I want to get random posters each time it load is there a trick . Example by changing the 6 to 7 "6"Sj9wDu3YugthXsU0Vry5XFAZGg.jpg. Or what will be the way. Thanks again.

You can get a list of all of the available images from the /images method.

https://api.themoviedb.org/3/movie/63?api_key=###&append_to_response=credits,images

Cheers.

GOOD!! . by thanks

Si there a limits of caracter for the overview if yes what will that be

We limit movie overviews to 1000 characters.

is there a place to see all movie categories like drama sci-fi adventure and their code

You can read about that in the docs: http://docs.themoviedb.apiary.io/#reference/genres

فیلم و نمایش تلویزیونی را نمی‌توانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.

Global

s تمرکز بر منوی جستجو
p منوی پروفایل باز شود
esc بستن پنجره باز
? پنجره میانبرهای صفحه‌کلید باز شود

در صفحات مدیا

b بازگشت به عقب (یا در صورت لزوم به منشا)
e برو به صفحه ویرایش

در صفحات فصل تلویزیونی

(فلش سمت راست) برو به فصل بعد
(پیکان سمت چپ) برو به نشست قبلی

در صفحات قسمت تلویزیونی

(فلش سمت راست) برو به قسمت بعد
(پیکان سمت چپ) برو به قسمت قبلی

در تمام صفحات تصویر

a پنجره افزودن تصویر باز شود

در تمام صفحات ویرایش

t انتخابگر ترجمه باز شود
ctrl+ s ثبت از

در صفحات بحث

n ایجاد بحث جدید
w تغییر وضعیت وضعیت تماشا
p تغییر وضعیت عمومی/خصوصی
c تغییر وضعیت بسته/باز
a گشایش صفحه فعالیت
r پاسخ به بحث
l برو به آخرین پاسخ
ctrl+ enter پیام خود را ثبت کنید
(فلش سمت راست) صفحه بعد
(پیکان سمت چپ) صفحه قبلی

تنظیمات

آیا می‌خواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟

ورود