Hi there, I have an issue with my API Key. If I search a "top rated" with basicFetch(/trending/all/week?language=pt-BR&api_key${API_KEY}
)
but, receive "items: {status_code: 7, status_message: "Invalid API key: You must be granted a valid key.", success: false"
someone can help me?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة yacine717
بتاريخ أغسطس 27, 2021 في 2:08 مساءا
same problem
رد بواسطة Travis Bell
بتاريخ أغسطس 27, 2021 في 5:54 مساءا
Assuming you aren't putting an
=
in yourAPI_KEY
var (which seems unlikely), you're missing the HTML delimiter:Would be what you're looking for.
رد بواسطة Kaimzr
بتاريخ أغسطس 28, 2021 في 10:16 صباحا
Travis, Thanks for your reply, however the persistent error. and yes, i have a const with my api_key.
رد بواسطة Travis Bell
بتاريخ أغسطس 28, 2021 في 10:23 صباحا
What’s is the full request that isn’t working?
رد بواسطة Kaimzr
بتاريخ أغسطس 28, 2021 في 10:30 صباحا
Follow my code;
all requests return me, error 401 and 404, and say my api key is invalid.
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ أغسطس 29, 2021 في 11:40 صباحا
I believe there are some characters missing from your Requests.
Always put your API Key after the " ? "
Try building your API Request with this other sequence:
title: 'Originais do Netflix',
https://api.themoviedb.org/3/discover/tv?with_network=213&language=pt-BRapi_key=${API_KEY}`)
https://api.themoviedb.org/3/discover/tv?api_key=THE_KEY&language=pt-BR&with_networks=213
You forgot the & character before with_network=
title: 'recomendados para Você',
https://api.themoviedb.org/3/trending/all/week?language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/trending/all/week?api_key=THE_KEY
In trending it is not possible to specify the language (pt-BR).
title: 'em alta',
https://api.themoviedb.org/3/movie/top_rated?language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/movie/top_rated?api_key=THE_KEY&language=pt-BR
You forgot the & character before language=
title: 'terror',
https://api.themoviedb.org/3/discover/movi?with_genres=27&language=pt-BR&api_key=${API_KEY}`)
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=pt-BR&with_genres=27
In this case you wrote movi, that is, movie without the " e " character at the end.
There are probably some other minor errors. :-)
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 1, 2021 في 8:15 صباحا
See this case similar to yours
https://www.themoviedb.org/talk/612cded1d04d1a0065e8d135?page=1#612f6b53c1ffbd00630de02a
رد بواسطة bukqueiroz
بتاريخ سبتمبر 1, 2021 في 9:57 مساءا
tnx man
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 8, 2021 في 10:26 مساءا
A curiosity of mine, I speak pt-BR.
You are the 4 user who speaks pt-BR that comes here in the last 10 days with the same problem.
Are you taking any code programming course that uses API?
Is it a school or online?
Can you say the name of the course, where it is, etc...?
رد بواسطة ticao2 🇧🇷 pt-BR
بتاريخ سبتمبر 8, 2021 في 10:27 مساءا
A curiosity of mine, I speak pt-BR.
You are the 4 user who speaks pt-BR that comes here in the last 10 days with the same problem.
Are you taking any code programming course that uses API?
Is it a school or online?
Can you say the name of the course, where it is, etc...?