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

Youtube API : channels.list() returns only account channel, but does not list rest of the channels (i.e brand accounts)

$
0
0

I have a requirement where iam supposed to extract all the possible channels present under a single google account. Now, the first youtube channel i created, is present as a Youtube studio channel, but after this, whichever account i create, it falls into the "Brand Account".My first channel linked to my account is called "Earth", the second one is "Jupiter" and third one is "Mars". Note that "Jupiter", "Mars" are brand accounts.

Iam using the code this way to extract channel details:

SCOPE_CMD_MAPPER = {"upload"     : "https://www.googleapis.com/auth/youtube.upload","readdata"   : "https://www.googleapis.com/auth/youtube.readonly","search"     : "https://www.googleapis.com/auth/youtube.force-ssl","update"     : "https://www.googleapis.com/auth/youtube.force-ssl","resources"  : "https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/youtubepartner"}def get_mychannel_details(client_secrets_file, youtube_access_file):    youtube = get_authenticated_service("readdata",client_secrets_file)    request = youtube.channels().list(        part="snippet,contentDetails,statistics",        mine=True    )    response = request.execute()    logger.info("get_mychannel_details", "Youtube", f"{response}")    return response 

The response i get is only of "Earth".I tried to change permissions for both the brand accounts, but nothing seems to be working.Any help would be appreciated.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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