دعم الموقع

Iam just trying the api for discover/movie and the server responds with the error that the id is invalid and when inspect the credentials iam getting the message that cant get authenticated with such key

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

Jump to last post

@BYIRINGIRO.E said:
API CONFLICT
Iam just trying the api for discover/movie and the server responds with the error that the id is invalid
and when inspect the credentials iam getting the message that cant get authenticated with such key

Please post the full text of the error warning here.
Are there two errors? ID and Key?

{ "success": false, "status_code": 6, "status_message": "Invalid id: The pre-requisite id is invalid or not found." }

@BYIRINGIRO.E said:

{ "success": false, "status_code": 6, "status_message": "Invalid id: The pre-requisite id is invalid or not found." }

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

here is the fetch request iam sending
const url = 'https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer eyJhbGciO ...... HWoX668'
}
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));

@BYIRINGIRO.E said:
here is the fetch request iam sending
const url = 'https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer eyJhbGciO ...... HWoX668'
}
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));

This method has been deprecated. See:
https://developer.themoviedb.org/reference/keyword-movies

This method is deprecated, you should use /discover/movie instead.

It still works,
But you need to inform which keyword ID you want to search.
https://api.themoviedb.org/3/keyword/{keyword_id}/movies
Your Request does not contain the ID. See and compare:

https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1
https://api.themoviedb.org/3/keyword/210740/movies?include_adult=false&language=en-US&page=1

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول