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.
Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?
Ez zara kidea?
nats24 Erabiltzailearen Erantzuna
Martxoa 16, 2024 egunean 7:16 PM(e)tan
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?
Travis Bell Erabiltzailearen Erantzuna
Martxoa 17, 2024 egunean 11:38 AM(e)tan
See my reply to another user here: https://www.themoviedb.org/talk/65f25b962fe2fa0185edbe7a#65f3109006f98400c9428485