Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3638

Why does not working youtube captions.download api

$
0
0

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.


Viewing all articles
Browse latest Browse all 3638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>