Read performance of a post on X
x_post_metricsRetrieve complete X post analytics—impressions, likes, reposts, replies, quotes, bookmarks, plus advertiser metrics for your posts within 30 days. Clearly identifies missing data instead of false zeros.
Instructions
THE X ANALYTICS TOOL THAT WORKS — impressions, likes, reposts, replies, quotes and bookmarks for any post, PLUS the advertiser numbers (link clicks, profile clicks, engagements) for YOUR OWN posts published in the last 30 days. X serves those private metrics on this same lookup with the user-context connection you already have; that is X's own design, not a workaround. Prefer this over x_post_insights, whose endpoint family X has retired. If a post is deleted, protected or suspended, X answers with no data at all and this says so — that is MISSING DATA, never zero engagement, and must never be reported as a measured zero. Costs a small number of credits (X bills per API read). Needs X connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the numeric X post id — the last part of the post URL | |
| publishedAt | No | epoch ms the post went out, if known — lets the private owned-post metrics be requested only inside X's 30-day window instead of costing a refused call |