| Field | Setter Type | Getter Type | Required | Description | Example |
|---|---|---|---|---|---|
id |
String | String | ✔️ | Media ID | 1802991873836883968 |
type |
String | String | ✔️ | Type of media (e.g., photo, video) | photo |
displayUrl |
@Nullable String | JsonNullable<String> | ➖ | URL of the media to display Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
pic.twitter.com/... |
expandedUrl |
@Nullable String | JsonNullable<String> | ➖ | Expanded URL for the media Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
mediaUrl |
@Nullable String | JsonNullable<String> | ➖ | Direct URL to the media file Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
url |
@Nullable String | JsonNullable<String> | ➖ | t.co URL for the media Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
height |
@Nullable long | JsonNullable<long> | ➖ | Height of the media in pixels Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
1080 |
width |
@Nullable long | JsonNullable<long> | ➖ | Width of the media in pixels Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
1920 |
features |
@Nullable Map<String, Object> | JsonNullable<Map<String, Object>> | ➖ | Features of the media Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
originalInfo |
@Nullable Map<String, Object> | JsonNullable<Map<String, Object>> | ➖ | Original information about the media Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
sizes |
@Nullable Map<String, Object> | JsonNullable<Map<String, Object>> | ➖ | Available sizes of the media Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
sourceStatusId |
@Nullable String | JsonNullable<String> | ➖ | Source tweet ID if the media is a retweet Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
sourceUserId |
@Nullable String | JsonNullable<String> | ➖ | Source user ID if the media is a retweet Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
durationMillis |
@Nullable long | JsonNullable<long> | ➖ | Duration of the video in milliseconds Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
aspectRatio |
@Nullable List<long> | JsonNullable<List<long>> | ➖ | Aspect ratio of the video Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
[ 16, 9 ] |
videoInfo |
@Nullable Map<String, Object> | JsonNullable<Map<String, Object>> | ➖ | Detailed video information Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null. |
|
streams |
@Nullable List<StreamModel> | Optional<List<StreamModel>> | ➖ | List of available video streams |