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?
Direct reply count Just like you can see the total number of likes and Retweets for any Tweet, you can also see how many people are participating in the conversation by the reply count. You'll see a number next to the reply icon indicating how many direct replies the original Tweet has received.
Keep in mind that the Standard Search API has a search index limit of 7 days (30 days if premium) so the resulting reply count can be not accurate. Show activity on this post. Twitter still doesn't have a sound solution for this.
Twitter REST API allows you to retrieve tweets and related information from Twitter. This tutorial will unleash how to get started with Twitter REST API. We will work with Twitter REST API V1.1
The Streaming API - this allows you to access the public data flowing through Twitter in real-time. It requires your R session to be running continuously, but allows you to capture a much larger sample of tweets while avoiding rate limits for the REST API. Popular packages for the Twitter API in R include:
Run the code below in your console to download this exercise as a set of R scripts. There are several packages for R for accessing and searching Twitter. Twitter actually has two separate APIs: The REST API - this allows you programmatic access to read and write Twitter data.
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
data.public_metrics.reply_count
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.
data.organic_metrics.reply_count
Using the organic_metrics field, this returns the total count of replies from organic contexts.
data.promoted_metrics.reply_count
Using the promoted_metrics field, this returns the total count of replies from paid contexts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With