Twitter Screenshot API: The Complete Guide for Developers in 2026
Looking to add Twitter screenshot functionality to your app? You've come to the right place. This guide covers everything you need to know about the Twitter Screenshot API in 2026.
What is a Twitter screenshot API?
A Twitter Screenshot API lets developers programmatically generate screenshots of tweets. Instead of manually taking screenshots, you send a tweet URL to the API and get back a high-quality image.
Use cases:
- Content aggregation platforms
- Social media management tools
- Newsletter apps
- Archive and backup services
- Marketing and analytics tools
Why use a Twitter screenshot API?
Benefits
- Automation — Generate hundreds of screenshots in minutes
- Consistency — Same format, theme, and quality every time
- Integration — Add to your existing workflow or app
- Scalability — Handle large volumes without manual work
Common use cases
- Newsletters — Embed tweet screenshots in emails
- Content Curation — Build feeds of relevant tweets
- Analytics Dashboards — Visual reports with tweet snapshots
- Archives — Save important tweets before they're deleted
- Social Media Tools — Repurpose content across platforms
How to use the TwitterShots API
Getting started
- Sign up at twittershots.com/apis
- Get your API key from the dashboard
- Make your first request
API endpoint
POST https://api.twittershots.com/v1/screenshot
Request example
const myHeaders = new Headers();
myHeaders.append("Accept", "image/svg+xml,image/png,text/html");
myHeaders.append("X-API-KEY", "YOUR_X_API_KEY");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
const resp = await fetch("https://api.twittershots.com/api/v1/screenshot/1944150402758300136?format=svg&theme=light", requestOptions)
Response
The API returns:
- Image file (PNG/JPG)
- Width/height dimensions
- Tweet metadata (author, date, engagement)
API features
| Feature | Description |
|---|---|
| Themes | Light, dark, gradient, custom |
| Formats | PNG, JPG, PDF |
| Sizes | Custom width, auto-height |
| Batching | Up to 30 tweets per request |
| Branding | Remove watermark (Pro) |
| AI Translation | Translate tweet content |
Pricing
| Plan | Credits/mo | Features |
|---|---|---|
| Free | 50 | Basic themes, PNG |
| Pro | 300 | All themes, PDF, batching |
| Pro+ | 1,000 | Custom branding, API priority |
| Business | 6,000 | Dedicated support, custom integrations |
Integration examples
n8n integration
Connect TwitterShots with 500+ apps:
[n8n Workflow]
Twitter Trigger → HTTP Request (TwitterShots) → Instagram Post
See our n8n Integration Guide
Zapier integration
Connect without coding:
Zapier: Twitter New Tweet → TwitterShots Screenshot → Google Drive Save
See our Zapier Integration
Make (Integromat)
Visual automation:
Make Scenario: Twitter Watch → TwitterShots → WordPress Post
Best practices
1. Create tweet/X post screenshot & repost on Instagram
The most popular use case: turn viral tweets into Instagram posts.
Workflow:
- Monitor tweets (yours or competitors)
- Call the API to screenshot the tweet
- Add your caption/context
- Post to Instagram
Pro tip: Use the 4:5 aspect ratio for Instagram feed, 9:16 for Stories.
2. Integrate API in your workflow
Automate your entire content pipeline:
Trigger → Screenshot → Edit → Post
Example automation:
- Monitor specific Twitter accounts
- Screenshot new tweets automatically
- Add your branding/watermark
- Queue for posting
3. Trigger API when user has new post
Set up webhooks or polling to trigger on new tweets, trigger twittershots tweet screenshot api.
4. Custom tweet theme, brand, logo, size
Make every screenshot on-brand using these API parameters:
Format & Theme
| Parameter | Options | Description |
|---|---|---|
| format | svg (default), png, html | Output image format |
| theme | light (default), dark | Tweet color scheme |
| aspectRatio | auto (default), 1:1, 4:5, 16:9, 9:16 | Instagram 4:5, Stories 9:16 |
Content Display
| Parameter | Options | Description |
|---|---|---|
| showFullText | true (default), false | Show full tweet or collapsed |
| showTimestamp | true (default), false | Show/hide tweet date |
| showViews | true (default), false | Show/hide view count |
| showStats | true (default), false | Show/hide reply/retweet/like counts |
| showMedia | true (default), false | Show/hide images and videos |
| mediaLayout | grid (default), vertical | Image gallery layout |
| logo | x (default), bluebird, none | Logo type in corner |
Styling
| Parameter | Default | Description |
|---|---|---|
| containerBackground | #ffffff / #000000 | Background color or gradient |
| backgroundImage | none | HTTPS URL to background image |
| containerPadding | 16 | Padding in pixels |
| borderRadius | 16 | Corner radius in pixels |
| width | 410 | Tweet width in pixels (300-1000) |
| height | auto | Fixed height or auto |
Background colors support hex (#2E3748), RGBA (rgba(255,0,0,0.5)), and gradients (linear-gradient(90deg, #003f5b, #2b4b7d)).
5. Create tweet screenshot
The core function — generate high-quality screenshots:
curl --location 'https://api.twittershots.com/api/v1/screenshot/1617979122625712128?format=svg&theme=light' \
--header 'Accept: image/svg+xml,image/png,text/html' \
--header 'X-API-KEY: YOUR_X_API_KEY'
6. Post the content to Instagram or other social media
FAQ
Is there an official Twitter/X screenshot API?
No. Twitter/X does not provide an official API endpoint for generating tweet screenshots. The platform offers the X API for accessing tweet data, but it returns JSON data — not rendered images.
To get a screenshot, you need to either:
- Use a third-party tool like TwitterShots that renders tweets as images
- Build your own solution using headless browsers (Puppeteer, Playwright)
- Use screenshot-as-a-service APIs like ScreenshotAPI.net or Urlbox
Is there a free Twitter screenshot API?
There is no free official API from Twitter/X for screenshots. However, some third-party options exist:
| Option | Free tier | Notes |
|---|---|---|
| TwitterShots | 3 screenshots/day (web) / 50 credits (API) | No credit card required |
| ScreenshotAPI.net | 100 requests/month | Paid plans start at $5/month |
| Urlbox | 100 requests/month | Requires API key |
| DIY (Puppeteer) | Free (hosting costs) | You build and host it yourself |
If you need screenshots at scale, building your own Puppeteer/Playwright service on a VPS is the most cost-effective long-term option.
Troubleshooting common issues
API returns 401 Your API key may be invalid or expired. Check your dashboard at https://twittershots.com/settings/keys.
Screenshot is blank The tweet might be private, deleted, or the account suspended. Verify the tweet URL in an incognito window.
Rate limit exceeded You have hit your plan's credit limit. Credits reset monthly, or you can upgrade your plan.
What's next?
Ready to get started? Here's how:
- Free Trial — Get 50 free credits: twittershots.com/apis
- Read the Docs — Full reference: twittershots.com/docs/api
Get Started with Twitter Screenshot API
Get 50 free API credits. No credit card required. Start building with the simplest Twitter Screenshot API.
- twitter screenshot api
- tweet screenshot api
- x screenshot api
- twitter screenshot automation
- programmatically screenshot tweet
Related: