Zernio
Zernio
PlatformsTwitter/XPosts & EditingReplies & QuotesMedia & VideoFields, Geo & PollsAnalytics & EngagementInboxLimits & Errors
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Twitter/X

Analytics & Engagement

Tweet analytics and engagement actions


Analytics

Included — Analytics is bundled with every paid account on the Usage plan.

Available metrics via the Analytics API:

MetricAvailable
Impressions
Likes
Comments
Shares
Clicks
Views
const analytics = await zernio.analytics.getAnalytics({
  platform: 'twitter',
  fromDate: '2024-01-01',
  toDate: '2024-01-31'
});
console.log(analytics.posts);

Engagement

Retweet, bookmark, and follow directly through the API. All engagement endpoints share a 50 requests per 15-min window rate limit. Retweets also share the 300/3hr creation limit with tweet creation.

// Retweet
await zernio.twitterengagement.retweetPost({
  accountId: 'YOUR_ACCOUNT_ID',
  tweetId: '1748391029384756102'
});

// Bookmark
await zernio.twitterengagement.bookmarkPost({
  accountId: 'YOUR_ACCOUNT_ID',
  tweetId: '1748391029384756102'
});

// Follow
await zernio.twitterengagement.followUser({
  accountId: 'YOUR_ACCOUNT_ID',
  targetUserId: '123456789'
});
ActionEndpointUndo
RetweetPOST /v1/twitter/retweetDELETE /v1/twitter/retweet
BookmarkPOST /v1/twitter/bookmarkDELETE /v1/twitter/bookmark
FollowPOST /v1/twitter/followDELETE /v1/twitter/follow

See Twitter Engagement API Reference for full endpoint documentation.

Was this page helpful?

Fields, Geo & Polls

Platform-specific fields, geo-restriction, polls, and media URL requirements

Inbox

Direct messages in the inbox

On this page

AnalyticsEngagement