API Templates
Tweet Screenshot
Generate customizable screenshots dynamically from Tweet URL or ID

Template Meta
Created | Render Type | Supported Formats | Supported Types | |
---|---|---|---|---|
Mar 12, 2025 | images | png jpg jpeg webp pdf | base64 url binary |
Modifications
You can customize the template using following modifications
Key | Description | Type |
---|---|---|
tweetUrl | Link to tweet, cannot be used together with tweetId | url |
tweetId | Tweet's ID, cannot be used with tweetUrl | string |
tweetFontSize | Font size for tweet text in CSS REM value | number |
tweetBackgroundColor | Tweet Background color | string |
tweetTextColor | Tweet Text color | string |
hideMetrics | Whether to hide the tweet metrics | boolean |
hideVerifiedIcon | Whether to hide or show verified icon | boolean |
hideQuoteTweet | Control if you want to show the quoted tweet | boolean |
hideDateTime | Hide date and time of tweet | boolean |
hideMedia | Hide tweet images | boolean |
hideShadow | Hide shadow behind tweet box | boolean |
backgroundColor | Hex or CSS color of background | string |
backgroundImageUrl | Link to background image | string |
padding | Padding(in pixels value) around the tweet box | number |
width | Max width of output image | number |
Backend Usage
You can use Tweet Screenshot API using Orshot SDKs