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:
| Metric | Available |
|---|---|
| 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'
});| Action | Endpoint | Undo |
|---|---|---|
| Retweet | POST /v1/twitter/retweet | DELETE /v1/twitter/retweet |
| Bookmark | POST /v1/twitter/bookmark | DELETE /v1/twitter/bookmark |
| Follow | POST /v1/twitter/follow | DELETE /v1/twitter/follow |
See Twitter Engagement API Reference for full endpoint documentation.
Was this page helpful?