Here are two replies to the same tweet. The original tweet mentions an account, @swish41:

https://twitter.com/BabyBulgogi/status/1111161866988847106
https://twitter.com/BabyBulgogi/status/1111162025659584512

The first reply used the default mentions inherited by the original tweet (@KingJames @swish41). Meanwhile the second reply removed the @swish41 mention that was inherited from the original tweet, but explicitly re-added the mention in the beginning of the reply.

My question is – is there a way to distinguish these two types of mentions (inherited from the original post versus explicitly typed by the replying user)? As far as I can tell, I can’t:

  • The text and full_text don’t give you enough information. They both start with “@KingJames @swish41 …”
  • The mentions array in the entities also look the same. They both have @KingJames and @swish41.

However, in the UI on Twitter’s website they look different:

image

vs

image

So there must be a difference in how Twitter stores the data. But as far as the API is concerned, seems like we can’t make the distinction.

Any ideas?

After looking closer into the API, I believe display_text_range tells us what we need:
https://developer.twitter.com/en/docs/tweets/tweet-updates.html

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.