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));
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by nats24
on মার্চ 16, 2024 at 7:16 PM
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?
Reply by Travis Bell
on মার্চ 17, 2024 at 11:38 AM
See my reply to another user here: https://www.themoviedb.org/talk/65f25b962fe2fa0185edbe7a#65f3109006f98400c9428485