In the Twitter REST API, is it possible to find the reply count? I see retweet_count and favorite_count. However, I’d like to get the reply count, which you can see in any of the GUIs next to the text bubble icon (see below on the left).
As far as I can tell, there’s no direct way to get this data point; one would have to do two or more api hits to collect that count. Am I missing something?
2
Answers
The twitter API doesn’t provide a field for reply count but there are work arounds which can help.
But there are few points which are very tricky as each reply even by the same person is counted (much like a dialogue) handling that to count it once is a tricky task.
you can find further details here
Check this link : https://developer.twitter.com/en/docs/twitter-api/metrics
A count of how many times the Tweet has been replied to.
Using the public_metrics field, this will return the total count of replies from both organic and paid contexts, in order to maintain consistency with the counts shown publicly on Twitter.
Using the organic_metrics field, this returns the total count of replies from organic contexts.
Using the promoted_metrics field, this returns the total count of replies from paid contexts.