Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 6.93 KB

File metadata and controls

24 lines (21 loc) · 6.93 KB

MediaModel

Fields

Field Type Required Description Example
id string ✔️ Media ID 1802991873836883968
type string ✔️ Type of media (e.g., photo, video) photo
displayUrl ?string URL of the media to display pic.twitter.com/...
expandedUrl ?string Expanded URL for the media
mediaUrl ?string Direct URL to the media file
url ?string t.co URL for the media
height ?int Height of the media in pixels 1080
width ?int Width of the media in pixels 1920
features array<string, mixed> Features of the media
originalInfo array<string, mixed> Original information about the media
sizes array<string, mixed> Available sizes of the media
sourceStatusId ?string Source tweet ID if the media is a retweet
sourceUserId ?string Source user ID if the media is a retweet
durationMillis ?int Duration of the video in milliseconds
aspectRatio array<int> Aspect ratio of the video [
16,
9
]
videoInfo array<string, mixed> Detailed video information
streams array<Components\StreamModel> List of available video streams