دعم الموقع

To access this API, we need movie ID not movie TITLE. But I want my website visitors to specify Movie Title and get movie info (specially poster images). How can I use Movie Title instead of Movie ID? Or, is there any way of getting movie ID from Titles?

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

Jump to last post

Hi Ahmed,

Do you mean you want to search for movies? You can use the #search methods for that.

Well, I was able to do it using the SEARCH method. All I want is to get the POSTER path of the searched image. For example, I searched for the movie "Taken" using this: http://api.themoviedb.org/3/search/movie?query=taken&api_key=(my api key)

The poster path is: poster_path=/feJK8urHWC1z6ZaI6e6WVf4ACyf.jpg But where to write the PORTION of the provided path to get the poster. I am not pro developer. I am a hobbyist programmer. So please explain me detailed.

Hi Ahmed,

No worries. Take a look at the #configuration method for the extra information you need to build image URLs. It explains how this works.

Oh. I am facing problem again. Look at the following JQUERY code:

$.get('http://api.themoviedb.org/3/search/movie?query=taken 2&api_key=2e7e7bc5febf86c7c1762a04872e489b', function (data) { $('#content').empty(); $('#content').html(data); });

The code above is for testing purpose, my site is still incomplete (I am still coding my website). I just wanted to know if everything is going ok. But nothing appears in the CONTENT div, why? On the other hand, I tried omdbapi.com and it worked fine with that code.

You need to use JSONP and a callback. Take a look at this thread: https://www.themoviedb.org/talk/5088057519c295169f00056a

Basically, you need to use a URL like so:

http://api.themoviedb.org/3/search/movie?api_key=###&query=taken+2&callback=test

Cheers.

Not happening. First used this URL: http://api.themoviedb.org/3/search/movie?api_key=###&query=taken+2&callback=data

Then used the code: http://pastebin.com/C5Bnx5Lf

Note: I also tried the code from the thread link you given, but seems it returns a failure. My simple code also returns error.

You haven't been replying for a long time. Please reply.

I have a little test page up here:

http://dev.travisbell.com/play/tmdb.html

Replace YOUR_API_KEY on line 11 with your API key. Everything seems to be working fine.

Thanks, that helped. Maybe my code was not working because I tried to append the WHOLE RESPONSE. Anyways, now I would like you to answer/do these two things:

  1. People are going to search for movies in my website (that I am making). Then I will use your API to get the POSTER IMAGE and use the URL to display it in my site. Is there any restrictions? because it's some kinda hotlinking. Please, I have programmed my site nicely. I hope there is no such restrictions.

  2. Please go to users9.jabry.com/postarian and say if you can see the poster of TAKEN 2. Just for making double sure.

Hi Ahmed,

Is there any restrictions? because it's some kinda hotlinking.

There is no such restriction but one of the key terms you agreed to when signing up for an API key was to attribute TMDb as the source of your data. As long as there's the mention/link back you're fine.

can see the poster of TAKEN 2.

Yes, I see it.

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول