Help video entities in search API


#1

What are the true entities of the tweet video, appears in entities such as “photo” and extended entities such as “video”. Why does this happen?


#2

The entities/media field pre-dated the availability of video on the Twitter platform. When multiple images, GIFs and videos were added, they were put in the new extended_entities field to avoid breaking older applications that could not handle them. Apps that are not aware of the existence of extended_entities can fall back to the entities value, which is always labelled as a photo with a static JPG image so that at least something can be displayed, even if there is no ability to play a video. The video itself is inside extended_entities/media/sizes/[size].


#3

Thank you Andy. It means that if I want to extract the media data I have to analyze both entities. I have actually seen tweets with images in entities that do not have an extended_entities