دعم الموقع

Please let me know on getting the endpoint for movie

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

Jump to last post

@Nbhise said:
how to get the search/movie endpoint ?
Please let me know on getting the endpoint for movie

Do you already know the new API documentation?
If you don't know it, it would be good to take a walk through it.
https://developer.themoviedb.org/docs
https://developer.themoviedb.org/reference/intro/getting-started

Your specific request is here:
https://developer.themoviedb.org/reference/search-movie

Try this
https://api.themoviedb.org/3/search/movie?api_key=${API_key}&query=casino&language=en-US

What baffles me is that I'm getting movies with No-En language with this query ?
Ticao2 any ideas ? Maybe I'm missing something?

I also tried
https://api.themoviedb.org/3/search/movie?api_key=${API_key}&query=casino&language=pt-BR.
Still getting mixed results.

Is this "language=en-US" correct param ?
I couldn't find anything in documentation

@sakiMovieDB said:
Try this
https://api.themoviedb.org/3/search/movie?api_key=${API_key}&query=casino&language=en-US
What baffles me is that I'm getting movies with No-En language with this query ?
Ticao2 any ideas ? Maybe I'm missing something?
I also tried
https://api.themoviedb.org/3/search/movie?api_key=${API_key}&query=casino&language=pt-BR.
Still getting mixed results.
Is this "language=en-US" correct param ?
I couldn't find anything in documentation

The &language= parameter determines in which language you receive the answer, the data, the overview.
The movie might be Japanese but you get the data in the specified language.

If you only want movies that are spoken in a specific language, for example English, then use Discover with the parameters: &with_original_language= and/or &with_origin_country=

Thanks ticao, I will try it tonight, when I get back home

@ticao2
Tried following
https://api.themoviedb.org/3/search/movie?api_key=API_Key&query=taxi&with_original_language=en-US&language=en-US
and getting movies in fr (id": 2330, "original_language": "fr",)
Tried different title
https://api.themoviedb.org/3/search/movie?api_key=API_Key&query=casino&with_original_language=en-US&language=en-US
getting movies in cn ( "id": 118385, "original_language": "cn",)

Any other ideas how I can test that ? What am I missing ?

Regards,
Saki

Edit: Tried with https://api.themoviedb.org/3/search/movie?api_key=API_key&query=casino&with_original_language=en
still getting "original_language": "cn" movies

@sakiMovieDB said:
@ticao2
Tried following
https://api.themoviedb.org/3/search/movie?api_key=API_Key&query=taxi&with_original_language=en-US&language=en-US
and getting movies in fr (id": 2330, "original_language": "fr",)
Tried different title
https://api.themoviedb.org/3/search/movie?api_key=API_Key&query=casino&with_original_language=en-US&language=en-US
getting movies in cn ( "id": 118385, "original_language": "cn",)
Any other ideas how I can test that ? What am I missing ?
Regards,
Saki
Edit: Tried with https://api.themoviedb.org/3/search/movie?api_key=API_key&query=casino&with_original_language=en
still getting "original_language": "cn" movies

Sorry, I think my text wasn't clear.
To search for movies that have a specific original language, only using Discover.
The available parameters and filters are on the page.
https://developer.themoviedb.org/reference/discover-movie

Using the Search endpoint is not possible.
Search is used to search Titles and Names.

get https://api.themoviedb.org/3/search/movie  
Search for movies by their original, translated and alternative titles.  

The available parameters and filters are on the page.
https://developer.themoviedb.org/reference/search-movie

I see your query examples used "casino" and "taxi".
Are you looking for movies whose title contains these terms?

Yes, Sir I'm looking for movies whose title contains these terms.

I will read the documentation about discover and search you provided If I have any follow up questions, I will let you know.

Thank you very much for your help!

Saki

Not sure if I can help you, but...
There are search parameters using Discover that are not yet documented.
I believe that more tests and corrections still need to be done before publishing.
But you can test it and if it works correctly maybe it solves your problem.
I'm referring specifically to the new filter for text. &with_text_query=

Undocumented Filters
On Discover, some that might help.
Examples for my language-COUNTRY. pt-BR.

For Movies:
&with_title_translation=pt-BR
&with_overview_translation=pt-BR

This one I think searches for text in Title, Tagline and Overview.
&with_text_query={any text}

For TV Show:
&with_name_translation=pt-BR

Source: https://www.themoviedb.org/talk/620bffcc4a22260042b5bf3c#620c27e96dea3a001b4097bd

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول