Twitter Screenshot API: The Complete Guide for Developers in 2026

5 min read

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

  1. Automation — Generate hundreds of screenshots in minutes
  2. Consistency — Same format, theme, and quality every time
  3. Integration — Add to your existing workflow or app
  4. 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

  1. Sign up at twittershots.com/apis
  2. Get your API key from the dashboard
  3. 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

FeatureDescription
ThemesLight, dark, gradient, custom
FormatsPNG, JPG, PDF
SizesCustom width, auto-height
BatchingUp to 30 tweets per request
BrandingRemove watermark (Pro)
AI TranslationTranslate tweet content

Pricing

PlanCredits/moFeatures
Free50Basic themes, PNG
Pro300All themes, PDF, batching
Pro+1,000Custom branding, API priority
Business6,000Dedicated 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:

  1. Monitor tweets (yours or competitors)
  2. Call the API to screenshot the tweet
  3. Add your caption/context
  4. 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

ParameterOptionsDescription
formatsvg (default), png, htmlOutput image format
themelight (default), darkTweet color scheme
aspectRatioauto (default), 1:1, 4:5, 16:9, 9:16Instagram 4:5, Stories 9:16

Content Display

ParameterOptionsDescription
showFullTexttrue (default), falseShow full tweet or collapsed
showTimestamptrue (default), falseShow/hide tweet date
showViewstrue (default), falseShow/hide view count
showStatstrue (default), falseShow/hide reply/retweet/like counts
showMediatrue (default), falseShow/hide images and videos
mediaLayoutgrid (default), verticalImage gallery layout
logox (default), bluebird, noneLogo type in corner

Styling

ParameterDefaultDescription
containerBackground#ffffff / #000000Background color or gradient
backgroundImagenoneHTTPS URL to background image
containerPadding16Padding in pixels
borderRadius16Corner radius in pixels
width410Tweet width in pixels (300-1000)
heightautoFixed 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:

OptionFree tierNotes
TwitterShots3 screenshots/day (web) / 50 credits (API)No credit card required
ScreenshotAPI.net100 requests/monthPaid plans start at $5/month
Urlbox100 requests/monthRequires 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:

  1. Free Trial — Get 50 free credits: twittershots.com/apis
  2. 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:

© 2026 TwitterShots. All rights reserved.