دعم الموقع

When I try to authenticate with api key it always show - invalid api key , You must be granted a valid key. By access token key it successed but i don't know how to use access token in my Javascript Please tell me how to solve the error of invalid api key because i want to add api in my javascript

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

Jump to last post

الصفحة التاليةالصفحة الاخيرة

Hi @surajj_00, what is the api URL you are trying to use? Hide your private api key with a string like "xxxxxx".

@surajj_00 said:

When I try to authenticate with api key it always show - invalid api key , You must be granted a valid key. By access token key it successed but i don't know how to use access token in my Javascript Please tell me how to solve the error of invalid api key because i want to add api in my javascript

I am also facing the same issue! I have even deleted my account and re-applied for a new API key, but it keeps saying the API key is invalid.

Hi @MuriColo, same question as above, what is the api URL you are trying to use? Hide your private api key with a string like "xxxxxx".

got a similar problem when using the code for authentication from API REFERENCE tab. Instead, used the docs Auth Guide and that way It worked with API KEY as the credential for login in. I could be wrong but in the API reference at least for curl ,TOKEN and API KEY have the same style of header request and in the documentation they are different.

@robbie3999 said:

Hi @MuriColo, same question as above, what is the api URL you are trying to use? Hide your private api key with a string like "xxxxxx".

Hi @robbie3999, my API URL was 'https://api.themoviedb.org/3/movie/now_playing?language=en-US&page=1&api_key=xxxxxx'

Try one more thing, type or paste the following into your web browser address bar and see if you get the same error or if you get json data results.

https://api.themoviedb.org/3/movie/550?api_key=xxxxxx

Replace the xxxxxx with your current api key found here: https://www.themoviedb.org/settings/api

@robbie3999 said:

Try one more thing, type or paste the following into your web browser address bar and see if you get the same error or if you get json data results.

https://api.themoviedb.org/3/movie/550?api_key=xxxxxx

Replace the xxxxxx with your current api key found here: https://www.themoviedb.org/settings/api

I got the JSON data, thank you! It also now works with the movie lists. Man, I really appreciate the support...have a great day!

I am also facing the same issue! Test using https://api.themoviedb.org/3/movie/550?api_key=xxxxxx has been done, please help me check the reason. Thank you.

Does the test work or not? If yes, then the same question as everyone else, what is the api URL you are trying to use? Hide your private api key with a string like "xxxxxx".

The test does not work. And I test my API key, it shows 401 error,and status_code is 7. { "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false } But my API key is new one, need your help check why my API key does not work?

So to be clear, you go to this page and get your API Key.

Then you enter this:

https://api.themoviedb.org/3/movie/550?api_key=xxxxxx

into your web browser address bar, replacing the xxxxxx with the api key above. And this returns the error message?

Yes, error message is returned when I do this test.

We will need the site admin to take a look at this. Hopefully he will come along soon.

Any updates on this? Getting the same error -> Validation errors: ["There was an issue communicating with TMDb: Invalid API key: You must be granted a valid key."]

Hi @sciouros, from the message part Validation errors: ["There was an issue communicating with TMDb, that part of the message is not coming from TMDB, so I assume you are running the query from some sort of tool or software. Run the following test to check your api key.

Go to this page and get your API Key. Then enter this:

https://api.themoviedb.org/3/movie/550?api_key=xxxxxx

into your web browser address bar, replacing the xxxxxx with the api key above. See if you get valid json for the movie "Fight Club", or an error message.

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول