Youtube Data API's Subscription/insert doesn't change subscriber count. Properly worked in developers.google document page, 'Try this method'.
I have 2 youtube channels. I want to get first one to be subscribed by second. But i failed to do so.
I try to subscribe to the channel named Catty via youtube api. Used subscriptions/insert in Python:
def subscribe(self, channelId): return self.youtube.subscriptions().insert( part="snippet", body={"snippet": {"resourceId": {"channelId": channelId } } }).execute()
Response from youtube:
{"kind": "youtube#subscription","etag": "gSyz_HE2Dk66ToVdaf0jAVZ_Gp0","id": "w-TZ_LJtOGgBvG8K7sdq0VSqLvzWIQuPwOWwrgKrXkg","snippet": {"publishedAt": "2023-05-04T12:53:57.567632Z","title": "Catty","description": "hello it is my channel","resourceId": {"kind": "youtube#channel","channelId": "UC4DC_ogWXR3veQODauNR6Ig" },"channelId": "UC0BDRmi8nxMrNc9uwAK2jpA","thumbnails": {"default": {"url": "https://yt3.ggpht.com/GE8QkE0YN0gwruYUIJy9xWcRQHaAU0bkypSCPEh1BXv8wJZmH-BMnoL0ca15A_wlSlGfcGgR=s88-c-k-c0x00ffffff-no-rj" },"medium": {"url": "https://yt3.ggpht.com/GE8QkE0YN0gwruYUIJy9xWcRQHaAU0bkypSCPEh1BXv8wJZmH-BMnoL0ca15A_wlSlGfcGgR=s240-c-k-c0x00ffffff-no-rj" },"high": {"url": "https://yt3.ggpht.com/GE8QkE0YN0gwruYUIJy9xWcRQHaAU0bkypSCPEh1BXv8wJZmH-BMnoL0ca15A_wlSlGfcGgR=s800-c-k-c0x00ffffff-no-rj" } } }}
It looks like insertion succeeded but the channel's subscriber count doesn't increase. When i log into the subscriber channel, i can see the other channel in the subscriptions list. If i try to unsubscribe manually from the channel's page, it works but subscriber count doesn't decrease as expected.
I tried developers.google's 'try this method' and it changed subscriber count of the channel unlike my code. I could neither figure it out nor find anybody who encountered this situation. I need your help.