תמיכת The Movie Database

when i click try it i got this { "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false }

14 תגובות (בדף 1 מתוך 1)

Jump to last post

@AhmedZouari said:

when i click try it i got this { "status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false }

You must set your head authentication method in 2 Authenticate under Getting Started, such as appkey or access token

i did that . my key is not valid

@AhmedZouari said:

i did that . my key is not valid

You can try accessing it directly with a browser (https://api.themoviedb.org/3/tv/latest?api_key=youKey),

(api_key) is used for (queryParam) authentication of (get) requests, while (access token) is used for authentication in (head). Simple tests in the interface document can only use (access token) authentication. There is an error in the code of this document. When you select (api_key) requests, (api_key) exists in (head) instead of (queryParam), resulting in (Invalid API key)

@AhmedZouari said:

i did that . my key is not valid

I am using translation software and the translation may not be very accurate

So, do you mean only the POST requests will work in the "Try it Out"?

@johnnithin08 said:

So, do you mean only the POST requests will work in the "Try it Out"?

Try it Out can only use Access Token Auth authentication, not API Key Auth authentication, which is not related to the request

I am getting the same error, i even tried regenerating my key but the new key doesn't work either

I am trying to use the find By id query, i even tried it in vscode, but it's still not working.

Also when i use it to get all the popular movies, it works as it should

@Alucard2169 said:

I am getting the same error, i even tried regenerating my key but the new key doesn't work either

I am trying to use the find By id query, i even tried it in vscode, but it's still not working.

Also when i use it to get all the popular movies, it works as it should

You can try accessing this address directly with a browser first( https://api.themoviedb.org/3/find/nm0943104?external_source=imdb_id&api_key=youKey ), see if there is a prompt for Invalid API key

@热心市民杨先生 Thanks a lot, it worked

"status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false

plz make video on youtube how to call api

Facing the same issue when attempting to call the search/movie API function in my C++ program. I imagine this issue comes up a lot but I don't see much of a resolution other than a confusion over the two types of key.

@Sylviaire said:

Facing the same issue when attempting to call the search/movie API function in my C++ program. I imagine this issue comes up a lot but I don't see much of a resolution other than a confusion over the two types of key. Same issue facing after trying all solution mentioned above

Hi @Rajkumar patel

The are a number of videos on youtube on how to use the api: https://www.youtube.com/results?search_query=tmdb+api

If you are absolutely convinced that your api key is invalid, the simplest way to test it is to run a simple query in your web browser. Type or paste the query below into the address bar of your web browser and replace YOUR_API_KEY with your api key. If you get back json describing movie id 550 (The Fight Club), then your api key is valid.

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

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס