Apologies, I should have provided an actual example.
Referring to the result from this api call:
https://api.twitter.com/2/tweets/1506673101072998407?tweet.fields=id,public_metrics,text&expansions=referenced_tweets.id
Result:
{
"data": {
"referenced_tweets": [
{
"type": "retweeted",
"id": "1505977175488483339"
}
],
"id": "1506673101072998407",
"text": "RT @elonmusk: Excited to hand over the first production cars made by Giga Berlin-Brandenburg tomorrow!",
"public_metrics": {
"retweet_count": 11604,
"reply_count": 0,
"like_count": 0,
"quote_count": 0
}
},
"includes": {
"tweets": [
{
"id": "1505977175488483339",
"text": "Excited to hand over the first production cars made by Giga Berlin-Brandenburg tomorrow!",
"public_metrics": {
"retweet_count": 11604,
"reply_count": 10450,
"like_count": 201853,
"quote_count": 876
}
}
]
}
}
In the response, you’ll note that the retweet_count is the same:
data.public_metrics.retweet_count: 11604
includes.tweets[0].public_metrcis.retweet_count: 11604
I believe (although I can no longer prove it with an actual example), that the value of data.public_metrics.retweet_count should refer to retweets of the retweet, and would be 0 in this case.
Instead, the value matches the retweet_count of the original tweet.
Hopefully this example clears up any ambiguity.
For additional context, I am interested in determining the popularity / engagement of a tweet. In this case, there is a false positive if using the retweet_count only as a metric.