ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

twittershots

Generate high-quality screenshots of Twitter/X posts using the TwitterShots API. Use when the user wants to: capture a tweet as an image, screenshot a tweet, generate tweet image, convert tweet to PNG/SVG/HTML, create tweet screenshot for social media (Instagram, TikTok), or mentions "TwitterShots", "tweet screenshot", "capture tweet", "tweet image". Triggers on tweet URLs (twitter.com/*/status/* or x.com/*/status/*) or tweet IDs. Default to format=png and theme=light without asking follow-up questions; if the user explicitly provides format and/or theme, use the user-provided values.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0xinhua/twittershots
Or

TwitterShots Skill

Generate high-quality screenshots of Twitter/X posts via REST API.

Prerequisites

Extract Tweet ID

Parse tweet ID from various URL formats:

https://twitter.com/username/status/1617979122625712128
https://x.com/username/status/1617979122625712128
https://twitter.com/username/status/1617979122625712128?s=20

Extract pattern: /status/(\d+) → Tweet ID is the numeric part after /status/

API Request

Endpoint: GET https://api.twittershots.com/api/v1/screenshot/:statusId

Required Header:

X-API-KEY: YOUR_API_KEY
Accept: image/svg+xml, image/png, text/html

Common Parameters

ParameterDefaultOptionsDescription
formatpngsvg, png, htmlOutput format (Note: API default is svg, skill defaults to png)
themelightlight, darkColor theme
aspectRatioautoauto, 1:1, 4:5, 5:4, 16:9, 9:16Screenshot ratio
returnTypebufferbuffer, urlReturn image directly or URL
showStatstruetrue, falseShow reply/retweet/like counts
showViewstruetrue, falseShow view count
showTimestamptruetrue, falseShow timestamp
showMediatruetrue, falseShow images/videos
showFullTexttruetrue, falseShow full tweet or collapsed with "Show more"
mediaLayoutgridgrid, verticalMedia display layout
timeZoneOffsetUTC+0UTC±N, UTC±N:MFixed UTC offset for timestamp formatting
logoxx, bluebird, noneLogo style
width410300-1000Content width in pixels
heightautoauto, numericContent height in pixels
containerBackgroundtheme defaulthex, rgba, linear-gradientBackground color
backgroundImagenoneHTTPS URLBackground image URL
borderRadius16numericBorder radius in pixels
containerPadding16numericPadding in pixels

Usage Examples

Basic Screenshot (SVG)

curl -X GET "https://api.twittershots.com/api/v1/screenshot/1617979122625712128?format=svg&theme=light" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: image/svg+xml" \
  -o tweet.svg

Dark Theme PNG

curl -X GET "https://api.twittershots.com/api/v1/screenshot/1617979122625712128?format=png&theme=dark" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: image/png" \
  -o tweet.png

Instagram Ready (4:5 ratio)

curl -X GET "https://api.twittershots.com/api/v1/screenshot/1617979122625712128?format=png&aspectRatio=4:5&theme=light" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: image/png" \
  -o tweet-instagram.png

Get URL Instead of Buffer

curl -X GET "https://api.twittershots.com/api/v1/screenshot/1617979122625712128?returnType=url&format=svg" \
  -H "X-API-KEY: YOUR_API_KEY"

Metadata

Author@0xinhua
Stars4473
Views2
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0xinhua-twittershots": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.