Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In the Twitter REST API, is it possible to find the reply count?

Tags:

twitter

api

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?

enter image description here

like image 208
jsamsf Avatar asked Oct 19 '17 06:10

jsamsf


People also ask

How do you count replies on Twitter?

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.

Is there a limit to the reply count in Twitter API?

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.

What is Twitter Rest API and how to get started?

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

How can I get Twitter data from a R session?

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:

How can I search Twitter using R?

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.


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

like image 128
Saram ali Avatar answered Oct 17 '22 22:10

Saram ali


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.

like image 1
Simran Makandar Avatar answered Oct 18 '22 00:10

Simran Makandar