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));
Non riesci a trovare un film o una serie Tv? Accedi per crearlo.
Vuoi valutare o aggiungere quest'elemento a una lista?
Non sei un membro?
Risposta da nats24
il 16 marzo, 2024 alle 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?
Risposta da Travis Bell
il 17 marzo, 2024 alle 11:38AM
See my reply to another user here: https://www.themoviedb.org/talk/65f25b962fe2fa0185edbe7a#65f3109006f98400c9428485