Skip to main content
The X API provides engagement metrics for posts and media. Access public metrics with any authentication, or private metrics for your own content with user authentication.

Metric types

30-day limit: Non-public, organic, and promoted metrics are only available for posts created within the last 30 days.

Available metrics

Post metrics

Media metrics (videos)


Requesting metrics

Public metrics (any auth)

Response:

Private metrics (user context)

Requires OAuth 1.0a or OAuth 2.0 with user context for posts you own:
Response:

Video metrics

For video playback metrics, use the media expansion:
Response:

Organic vs. promoted metrics

If a post was promoted as an ad, metrics split between organic and promoted views: Request both to see the breakdown:

Metric definitions

Count of times the post appeared on a user’s screen. Not unique—the same user viewing twice counts as two impressions.
Number of reposts (retweets). Does not include quote posts.
Number of quote posts (reposts with comment). These are always organic.
Number of times the post has been bookmarked by users.
Aggregated across all posts containing the video. A video reposted in multiple posts has one total view count.
Number of unique users who played through each percentage of the video. Useful for understanding drop-off rates.

Requirements summary


Next steps

Data Dictionary

Complete field reference.

Authentication

Set up user context auth.