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);analytics = client.analytics.get_analytics(
platform="twitter",
from_date="2024-01-01",
to_date="2024-01-31"
)
print(analytics["posts"])curl "https://zernio.com/api/v1/analytics?platform=twitter&fromDate=2024-01-01&toDate=2024-01-31" \
-H "Authorization: Bearer YOUR_API_KEY"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'
});# Retweet
client.twitter_engagement.retweet_post(
account_id="YOUR_ACCOUNT_ID",
tweet_id="1748391029384756102"
)
# Bookmark
client.twitter_engagement.bookmark_post(
account_id="YOUR_ACCOUNT_ID",
tweet_id="1748391029384756102"
)
# Follow
client.twitter_engagement.follow_user(
account_id="YOUR_ACCOUNT_ID",
target_user_id="123456789"
)# Retweet
curl -X POST https://zernio.com/api/v1/twitter/retweet \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"accountId": "YOUR_ACCOUNT_ID", "tweetId": "1748391029384756102"}'
# Bookmark
curl -X POST https://zernio.com/api/v1/twitter/bookmark \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"accountId": "YOUR_ACCOUNT_ID", "tweetId": "1748391029384756102"}'
# Follow
curl -X POST https://zernio.com/api/v1/twitter/follow \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"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.