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

Getting The video identified by the videoId parameter has disabled comments

$
0
0

By calling this API

curl --location 'https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Creplies%2Csnippet&allThreadsRelatedToChannelId=****&maxResults=100' \--header 'Authorization: Bearer *****' \--header 'Accept: application/json'

I am getting the following error -

{"error": {"code": 403,"message": "The video identified by the <code><a href=\"/youtube/v3/docs/commentThreads/list#videoId\">videoId</a></code> parameter has disabled comments.","errors": [            {"message": "The video identified by the <code><a href=\"/youtube/v3/docs/commentThreads/list#videoId\">videoId</a></code> parameter has disabled comments.","domain": "youtube.commentThread","reason": "commentsDisabled","location": "videoId","locationType": "parameter"            }        ]    }}

But I have passed channelId to api, not the videoId,so why getting this error.and even if some video has the comments disabled, then its comment would not get in response, but it shouldn't throw this error.

Anyone know the reason why ?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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