I try to Fetch MovieList with Code Generator(Official Doc), but it gives 401 error. Code Generator :https://developer.themoviedb.org/reference/collection-details
In my production, same error is occurred. Please help me.
const fetch = require('node-fetch');
const url = 'https://api.themoviedb.org/3/collection/collection_id?language=ja';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer cfe5c0a677a38bcfd0f00a92852cf5fc'
}
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.
Want to rate or add this item to a list?
Not a member?
Odpowiedź użytkownika nats24
16 marca 2024 o godz. 7:16PM
I regenerate API key and try this test. But I keep receive following message... {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
Please help me.I want to use this API by next weekend.
How long should I wait for your response?
Odpowiedź użytkownika Travis Bell
17 marca 2024 o godz. 11:38AM
See my reply to another user here: https://www.themoviedb.org/talk/65f25b962fe2fa0185edbe7a#65f3109006f98400c9428485