Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube V3 Data API - Channels.list function not fetching all the channels #2613

Open
dpramani opened this issue May 17, 2021 · 7 comments
Open
Labels
api: youtube type: question Request for information or clarification. Not an issue.

Comments

@dpramani
Copy link

dpramani commented May 17, 2021

Hi, I am trying to get a list of youtube channels under one google account. But the api returns only one channel, although I have two channels inside my google account. Is there a way to get all the channels under one google account ? Is there any suggested workaround to this ? I have seen posts saying this is not possible, is this same now ?

Thanks

const service = google.youtube({ version: 'v3', headers: { Authorization: Bearer ${user.youtubeToken}}});
const result = service.channels.list({part: 'snippet,contentDetails,statistics', mine: true});

@dpramani dpramani changed the title Youtube V3 Data API - Channels.list function not fetching all the channels Youtube V3 Data API - Channels.list function not fetching all the channels May 17, 2021
@tmatsuo tmatsuo added type: question Request for information or clarification. Not an issue. api: youtube labels May 17, 2021
@tmatsuo
Copy link

tmatsuo commented May 17, 2021

@dpramani Where are the posts you found?

@tmatsuo
Copy link

tmatsuo commented May 17, 2021

Did you try managedByMe: true?

@dpramani
Copy link
Author

@tmatsuo Yes I tried managedByMe: true, but got an error saying : 'Error: Access forbidden. The request may not be properly authorized.'

Some similar posts which I found are:
https://issuetracker.google.com/issues/35175143
https://stackoverflow.com/questions/40781463/how-i-retrieve-the-chanel-list-using-youtube-api

@bhavikfreelanace9085
Copy link

did you find the solution???

@david1asher
Copy link

have same issue, anyone found solution?

@0dayplug
Copy link

0dayplug commented Oct 4, 2024

yes definitely! getting a 403 access forbidden error. Any solutions or work around for this please ?

{'message': 'Access forbidden. The request may not be properly authorized.', 'domain': 'youtube.common', 'reason': 'forbidden'}

@Bogatinovski
Copy link

I am also getting the same issue, only receiving my own YouTube account and not the others on which I am assigned as an Admin. I tried adding the managedByMe parameter and it gives "Forbidden" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: youtube type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

6 participants