I have mentioned 2 YouTube APIs below, the YouTube data api, and the YouTube Analytics api. They are each giving giving different comments count.
YouTube data api is showing the comments count properly. YouTube Analytics api is showing incorrect.
We got to know that the second API gives the count for deleted and live chat. I have attached the screenshot for reference. Is there anyway from the second API we can get the exact count by removing the deleted comments count ?
YouTube data api Video.list method
https://www.googleapis.com/youtube/v3/videos?part=statistics,contentDetails,snippet&id=ZJFnAYqt570&key=
This endpoint is showing comments count 8 which is correct.
YouTube Analytics api jobs.reports.get
https://youtubeanalytics.googleapis.com/v2/reports?endDate=2022-03-31&ids=channel%3D%3DUCdf14FHPLt7omkE9CmyrVHA&metrics=views%2Ccomments%2Clikes%2Cdislikes&startDate=2022-03-01&filters=videoid%3D%3DZJFnAYqt570&key=
This endpoint is showing comments count 36 which is incorrect.
Note: Even in https://studio.youtube.com/ the count is showing 36