x.com
Get X post analytics
Input
post requiredA post URL (e.g. https://x.com/<handle>/status/1234567890, with or without /analytics, any handle) or a bare numeric post id. The id is extracted and the handle-independent /i/status/<id>/analytics URL is used.
Output
id requiredThe post id read from the input.
metrics requiredOne entry per metric shown in the analytics grid, in display order. The set varies by post type (media posts add Views/Unique views; posts without links omit Link clicks).
engagement requiredThe public likes/reposts/replies counts shown on the post card. Keys absent if not exposed.
text optionalThe post body text as shown in the analytics card.
handle optional@handle of the post author (the logged-in user, since analytics is owner-only).
postedAt optionalISO timestamp the post was published (from the <time> element).
