I'm Korean and my English writing may be poor, please understand.
https://developers.google.com/youtube/v3/docs/captions/listThe api in that document works fine in my environment.So oauth2 token and api_key isn't any problem.
But the api in document below is not working.https://developers.google.com/youtube/v3/docs/captions/download
Here's my code
fetch( `https://www.googleapis.com/youtube/v3/captions/${captionId}?key=${ import.meta.env.VITE_API_KEY }`, { method: "get", headers: { Authorization: `Bearer ${accessToken}`, }, }) .then((res) => { console.log(res); return res.json(); }) .then((res) => console.log(res)) .catch((err) => console.log(err));
This is the response received after the request.enter image description here
Please help me.
If I run the above code, I receive a normal API response.