دعم الموقع

I'm new in API's , i would like to know how to get a poster path of an image from the movie id that i have just searched.Like where exactly do i see the poster path after making a call. Also do i need to create two url's i.e the image url and the main url or can they be linked together to return both the poster and the movie overview.

1 رد (على هذه الصفحة 1 من 1)

Jump to last post

@PatrickAngela said: ? How do i get a poster path
I'm new in API's , i would like to know how to get a poster path of an image from the movie id that i have just searched.
Like where exactly do i see the poster path after making a call.
Also do i need to create two url's i.e the image url and the main url or can they be linked together to return both the poster and the movie overview.

In an API Request of the type get / movie / {movie_id} in addition to receiving the basic data of the Movie,
for example overview, there are 2 items that identify images.
See here https://developers.themoviedb.org/3/movies/get-movie-details
For example:
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY&language=en-US

poster_path: "/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg"  
backdrop_path: "/rr7E0NoGKxvbkb89eR1GwfoYjpA.jpg" 

Then use the basic URL below:

https://image.tmdb.org/t/p/original/[poster_path]

https://image.tmdb.org/t/p/original/wigZBAmNrIhxp2FNGOROUAeHvdh.jpg
https://image.tmdb.org/t/p/original/pB8BM7pdSp6B6Ih7QZ4DrQ3PmJK.jpg
https://image.tmdb.org/t/p/original/rr7E0NoGKxvbkb89eR1GwfoYjpA.jpg
Make sure to read the documentation around images.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول