Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 5.16 KB

File metadata and controls

24 lines (21 loc) · 5.16 KB

MediaModel

Fields

Field Type Required Description Example
id str ✔️ Media ID 1802991873836883968
type str ✔️ Type of media (e.g., photo, video) photo
display_url OptionalNullable[str] URL of the media to display pic.twitter.com/...
expanded_url OptionalNullable[str] Expanded URL for the media
media_url OptionalNullable[str] Direct URL to the media file
url OptionalNullable[str] t.co URL for the media
height OptionalNullable[int] Height of the media in pixels 1080
width OptionalNullable[int] Width of the media in pixels 1920
features Dict[str, Any] Features of the media
original_info Dict[str, Any] Original information about the media
sizes Dict[str, Any] Available sizes of the media
source_status_id OptionalNullable[str] Source tweet ID if the media is a retweet
source_user_id OptionalNullable[str] Source user ID if the media is a retweet
duration_millis OptionalNullable[int] Duration of the video in milliseconds
aspect_ratio List[int] Aspect ratio of the video [
16,
9
]
video_info Dict[str, Any] Detailed video information
streams List[models.StreamModel] List of available video streams