I am working on a project that uses auto-generated captions as input. I have never used the YouTube API before so I decided to try out the features I want on the "Google API Explorer" first, to make sure they work how I think they will.
When I try to download the auto-generated captions from my test video, I keep getting 403. Here's what I did:
The test video id: dhC-7vSlJEY (Note: This is another users' video, not my upload)
From this I used youtube.captions.list to get the caption ID:
"id": "HgeLH1Y19gKUOyo3qFc50_PkvRsXiln7RRrUk2uuFLM="
Then I run it through captions.download and it asks me for OAuth. The documentation says this requires the following scopes:
https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/youtubepartner
Which I selected in the pop-up tool.
- Then it returns this:
403
- Hide headers -
cache-control: private, max-age=0 content-encoding: gzip content-length: 161 content-type: text/html; charset=UTF-8 date: Fri, 30 Jun 2017 20:50:42 GMT expires: Fri, 30 Jun 2017 20:50:42 GMT server: GSE vary: Origin, X-Origin
The permissions associated with the request are not sufficient to download the caption track. The request might not be properly authorized, or the video order might not have enabled third-party contributions for this caption.
So what's going on?
Am I missing some OAuth scope?
Do auto-generated captions have different permissions than user-uploaded captions?