Media

struct

An image, video or animated GIF attached to a Tweet.

Property Type Description
alt_text String

Alternative text description.

duration_ms Integer

Duration in milliseconds (video).

height Integer

Height in pixels.

media_key String

Unique identifier of the media.

preview_image_url String

URL of the static preview image (video/GIF).

public_metrics Media_Public_Metrics

Public engagement metrics.

type String

Media type: photo, video or animated_gif.

url String

Direct URL to the media (photos).

variants

Available playback variants.

width Integer

Width in pixels.

part of the Apioo-Project