Twitter/X
Schedule and automate Twitter/X posts with Zernio API
Quick Reference
| Property | Value |
|---|---|
| Character limit | 280 (free) / 25,000 (Premium) |
| Images per post | 4 (or 1 GIF) |
| Videos per post | 1 |
| Image formats | JPEG, PNG, WebP, GIF |
| Image max size | 5 MB (images), 15 MB (GIFs) |
| Video formats | MP4, MOV |
| Video max size | 512 MB |
| Video max duration | 140 seconds |
| Threads | Yes (via threadItems) |
| Scheduling | Yes |
| Inbox (DMs) | Yes |
| Inbox (Comments) | Yes |
| Analytics | Yes |
Before You Start
Twitter has a strict 280 character limit for free accounts. URLs always count as 23 characters regardless of actual length. Emojis count as 2 characters. If you're cross-posting from platforms with higher limits (LinkedIn 3,000, Facebook 63,000), use customContent to provide a shorter Twitter version or your post WILL fail.
Additional requirements:
- Duplicate tweets are rejected (even very similar content)
- Free accounts: 280 characters, Premium accounts: 25,000 characters
X API costs are passed through at exact rate, with zero markup. Unlike other platforms, X (Twitter) operates on a pay-per-call API model. Every X API operation Zernio performs on your behalf — posting, reading analytics, sending DMs, fetching followers — is metered against your account at X's published price.
Common rates that appear on your invoice:
- Posts: Read — $0.005 per resource (analytics, post lookups)
- Content: Create — $0.015 per request (publishing a tweet)
- Content: Create with URL — $0.200 per request (tweets containing http/https links — yes, X charges 13× more for these)
- DM: Read / DM: Send — $0.010 / $0.015 per resource
These appear as itemized line items on your monthly invoice. Zernio's per-call price always equals X's published price, never higher. The full rate table is at docs.x.com/x-api/getting-started/pricing.
You can set a monthly X spend cap from the dashboard's Billing tab to prevent surprise bills. At 80% of the cap you get a warning email; at 100% Zernio automatically pauses X analytics + inbox polling for the rest of the period.
Related Endpoints
- Connect Twitter Account - OAuth flow
- Create Post - Post creation and scheduling
- Upload Media - Image and video uploads
- Analytics - Post performance metrics
- Twitter Engagement - Retweet, bookmark, follow
- Messages and Comments
In This Section
Posts & Editing
Create tweets, threads, and edit published tweets
Replies & Quotes
Reply tweets and quote reposts
Media & Video
Media requirements and long video uploads (Premium)
Fields, Geo & Polls
Platform-specific fields, geo-restriction, polls, and media URL requirements
Analytics & Engagement
Tweet analytics and engagement actions
Inbox
Direct messages in the inbox
Limits & Errors
What you cannot do and common errors