Twitter (X) Screenshot Generator
Capture clean screenshots of public X posts and profiles without login. Choose post cards, profile headers or full profile pages, dark/light theme, PNG/JPEG/WEBP output, 2x/3x pixel density and optional profile or post details.
Input schema
Input fields, types, required flags, descriptions, defaults, and prefills come from the published definition. Prefill examples are distinct from defaults.
| Field | Type | Required | Description |
|---|---|---|---|
postUrls | array | optional | Posts to capture as clean post cards. Paste x.com or twitter.com links, bare numeric post IDs, profile links or bare usernames. Any input works in every list. |
tweetUrls | array | optional | Alias of X post links. Accepts tweet links, bare tweet IDs, profile links and bare usernames. |
profileUrls | array | optional | Optional. Profiles to capture (header and first posts). Paste profile links, bare usernames, post links or post IDs and the actor routes them to the right capture. Use capture mode to choose header-only or the full page. |
Show all input fields
| Field | Type | Required | Description |
|---|---|---|---|
postUrls | array | optional | Posts to capture as clean post cards. Paste x.com or twitter.com links, bare numeric post IDs, profile links or bare usernames. Any input works in every list. |
tweetUrls | array | optional | Alias of X post links. Accepts tweet links, bare tweet IDs, profile links and bare usernames. |
profileUrls | array | optional | Optional. Profiles to capture (header and first posts). Paste profile links, bare usernames, post links or post IDs and the actor routes them to the right capture. Use capture mode to choose header-only or the full page. |
captureMode | string | optional | What to capture. Post links always produce a single post card; this mode applies to profile links. |
theme | string | optional | Color theme for the screenshot. |
fullPage | boolean | optional | When on, the whole page is captured instead of just the post card or the visible profile header. |
hideReplies | boolean | optional | Hide reply posts so screenshots stay focused on original posts. |
includeMetadata | boolean | optional | Add details to each row: post id, post URL, author handle, text snippet and the author's follower, following and post counts for posts; username, display name, follower, following and post counts for profiles. Counts are only added when X shows them. |
format | string | optional | File format of the saved screenshot. JPEG and WEBP support the quality setting; PNG is lossless. |
quality | integer | optional | Quality for JPEG and WEBP output (1-100). Ignored for PNG. |
deviceScaleFactor | string | optional | Render the page at a higher pixel density for sharper screenshots. 2x doubles and 3x triples the pixel dimensions. |
viewportWidth | integer | optional | Browser width used for the capture. Higher values fit more of the page. |
viewportHeight | integer | optional | Browser height used for the capture. |
proxyConfiguration | object | optional | Optional. Use a proxy if you plan large runs or see frequent rate limits. |
Download the published input schema
View complete JSON
{
"description": "Capture clean PNG screenshots of public X posts and profiles. No login or cookies required.",
"properties": {
"captureMode": {
"default": "postCard",
"description": "What to capture. Post links always produce a single post card; this mode applies to profile links.",
"editor": "select",
"enum": [
"postCard",
"profileHeader",
"fullProfilePage"
],
"enumTitles": [
"Post card (one post)",
"Profile header (header + first posts)",
"Full profile page (scrollable page)"
],
"prefill": "postCard",
"title": "Capture mode",
"type": "string"
},
"deviceScaleFactor": {
"default": "1x",
"description": "Render the page at a higher pixel density for sharper screenshots. 2x doubles and 3x triples the pixel dimensions.",
"editor": "select",
"enum": [
"1x",
"2x",
"3x"
],
"enumTitles": [
"1x (standard)",
"2x (retina)",
"3x (high density)"
],
"prefill": "1x",
"title": "Pixel density",
"type": "string"
},
"format": {
"default": "png",
"description": "File format of the saved screenshot. JPEG and WEBP support the quality setting; PNG is lossless.",
"editor": "select",
"enum": [
"png",
"jpeg",
"webp"
],
"enumTitles": [
"PNG (lossless, largest)",
"JPEG (smaller file, quality setting applies)",
"WEBP (smallest file, quality setting applies)"
],
"prefill": "png",
"title": "Image format",
"type": "string"
},
"fullPage": {
"default": false,
"description": "When on, the whole page is captured instead of just the post card or the visible profile header.",
"prefill": false,
"title": "Capture the full scrollable page",
"type": "boolean"
},
"hideReplies": {
"default": true,
"description": "Hide reply posts so screenshots stay focused on original posts.",
"prefill": true,
"title": "Hide replies",
"type": "boolean"
},
"includeMetadata": {
"default": false,
"description": "Add details to each row: post id, post URL, author handle, text snippet and the author's follower, following and post counts for posts; username, display name, follower, following and post counts for profiles. Counts are only added when X shows them.",
"prefill": false,
"title": "Include post/profile details",
"type": "boolean"
},
"postUrls": {
"description": "Posts to capture as clean post cards. Paste x.com or twitter.com links, bare numeric post IDs, profile links or bare usernames. Any input works in every list.",
"editor": "stringList",
"example": [
"https://x.com/NASA/status/2107095768821576019",
"2107095768821576019",
"@apify"
],
"prefill": [
"https://x.com/NASA/status/2107095768821576019"
],
"title": "X post links, IDs or usernames",
"type": "array"
},
"profileUrls": {
"description": "Optional. Profiles to capture (header and first posts). Paste profile links, bare usernames, post links or post IDs and the actor routes them to the right capture. Use capture mode to choose header-only or the full page.",
"editor": "stringList",
"example": [
"https://x.com/apify",
"apify"
],
"title": "X profile links or usernames",
"type": "array"
},
"proxyConfiguration": {
"description": "Optional. Use a proxy if you plan large runs or see frequent rate limits.",
"editor": "proxy",
"nullable": true,
"sectionCaption": "Advanced",
"sectionDescription": "Optional settings for large or repeated runs.",
"title": "Proxy configuration",
"type": "object"
},
"quality": {
"default": 90,
"description": "Quality for JPEG and WEBP output (1-100). Ignored for PNG.",
"maximum": 100,
"minimum": 1,
"prefill": 90,
"title": "Image quality",
"type": "integer"
},
"theme": {
"default": "dark",
"description": "Color theme for the screenshot.",
"editor": "select",
"enum": [
"dark",
"light",
"system"
],
"enumTitles": [
"Dark",
"Light",
"System (browser default)"
],
"prefill": "dark",
"title": "Theme",
"type": "string"
},
"tweetUrls": {
"description": "Alias of X post links. Accepts tweet links, bare tweet IDs, profile links and bare usernames.",
"editor": "stringList",
"title": "Tweet links (alias)",
"type": "array"
},
"viewportHeight": {
"default": 900,
"description": "Browser height used for the capture.",
"maximum": 2160,
"minimum": 240,
"title": "Viewport height (pixels)",
"type": "integer"
},
"viewportWidth": {
"default": 1440,
"description": "Browser width used for the capture. Higher values fit more of the page.",
"maximum": 3840,
"minimum": 320,
"title": "Viewport width (pixels)",
"type": "integer"
}
},
"schemaVersion": 1,
"title": "Twitter (X) Screenshot Generator",
"type": "object"
}
Output schema
Published result links and storage locations. This schema is not an exhaustive contract for every field in a dataset record.
| Field | Type | Required | Description |
|---|---|---|---|
screenshots | string | optional | Dataset with one row per captured post or profile |
screenshotFiles | string | optional | Key-value store containing the screenshot image files |
Download the published output schema
View complete JSON
{
"actorOutputSchemaVersion": 1,
"description": "Screenshot capture records for public X posts and profiles, with image dimensions, format, and download link, plus the saved image files.",
"properties": {
"screenshotFiles": {
"description": "Key-value store containing the screenshot image files",
"template": "{{links.apiDefaultKeyValueStoreUrl}}/records",
"title": "Screenshot image files",
"type": "string"
},
"screenshots": {
"description": "Dataset with one row per captured post or profile",
"template": "{{links.apiDefaultDatasetUrl}}/items",
"title": "Screenshot results",
"type": "string"
}
},
"title": "Twitter (X) Screenshot Generator Output",
"type": "object"
}
Dataset schema
Published dataset views and any declared field definitions. A view can select only a subset of the returned record fields.
Download the published dataset schema
View complete JSON
{
"actorSpecification": 1,
"fields": {
"properties": {
"authorFollowers": {
"description": "Post author follower count (when Include post/profile details is on)",
"title": "Author followers",
"type": "number"
},
"authorFollowing": {
"description": "Post author following count (when Include post/profile details is on)",
"title": "Author following",
"type": "number"
},
"authorPostCount": {
"description": "Post author post count (when Include post/profile details is on)",
"title": "Author posts",
"type": "number"
},
"authorUsername": {
"description": "Post author handle (when Include post/profile details is on)",
"title": "Author",
"type": "string"
},
"captureMode": {
"description": "postCard, profileHeader or fullProfilePage",
"title": "Capture mode",
"type": "string"
},
"capturedAt": {
"description": "ISO timestamp when the screenshot was taken",
"title": "Captured at",
"type": "string"
},
"deviceScaleFactor": {
"description": "Device scale factor used for the capture",
"title": "Pixel density",
"type": "number"
},
"downloadUrl": {
"description": "Public signed URL to download the screenshot file",
"format": "link",
"title": "Download URL",
"type": "string"
},
"fileSizeBytes": {
"description": "Size of the saved screenshot in bytes",
"title": "File size",
"type": "number"
},
"filename": {
"description": "File name of the screenshot in the key-value store",
"title": "File name",
"type": "string"
},
"followers": {
"description": "Follower count (when Include post/profile details is on)",
"title": "Followers",
"type": "number"
},
"following": {
"description": "Accounts followed (when Include post/profile details is on)",
"title": "Following",
"type": "number"
},
"format": {
"description": "Saved image format (png, jpeg or webp)",
"title": "Format",
"type": "string"
},
"height": {
"description": "Height of the captured image in pixels",
"title": "Height",
"type": "number"
},
"name": {
"description": "Profile display name (when Include post/profile details is on)",
"title": "Profile name",
"type": "string"
},
"postCount": {
"description": "Profile post count (when Include post/profile details is on)",
"title": "Posts",
"type": "number"
},
"profileUrl": {
"description": "The profile URL when a profile was captured",
"format": "link",
"title": "Profile URL",
"type": "string"
},
"quality": {
"description": "JPEG/WEBP quality setting",
"title": "Quality",
"type": "number"
},
"status": {
"description": "Result status (success or error details)",
"title": "Status",
"type": "string"
},
"targetUrl": {
"description": "The Twitter/X post or profile URL that was captured",
"format": "link",
"title": "Target URL",
"type": "string"
},
"textSnippet": {
"description": "First characters of the post text (when Include post/profile details is on)",
"title": "Text snippet",
"type": "string"
},
"tweetId": {
"description": "Numeric post id (when Include post/profile details is on)",
"title": "Post ID",
"type": "string"
},
"tweetUrl": {
"description": "Canonical post URL (when Include post/profile details is on)",
"title": "Post URL",
"type": "string"
},
"type": {
"description": "screenshot for a captured image, status for a run message.",
"title": "Row type",
"type": "string"
},
"username": {
"description": "Profile handle (when Include post/profile details is on)",
"title": "Profile username",
"type": "string"
},
"width": {
"description": "Width of the captured image in pixels",
"title": "Width",
"type": "number"
}
},
"type": "object"
},
"title": "Twitter Screenshots",
"views": {
"overview": {
"description": "Screenshots of Twitter/X posts and profiles with download links.",
"display": {
"component": "table",
"properties": {
"captureMode": {
"format": "text",
"label": "Mode"
},
"capturedAt": {
"format": "date",
"label": "Captured At"
},
"downloadUrl": {
"format": "link",
"label": "Download"
},
"fileSizeBytes": {
"format": "number",
"label": "Bytes"
},
"filename": {
"format": "text",
"label": "File"
},
"format": {
"format": "text",
"label": "Format"
},
"height": {
"format": "number",
"label": "Height"
},
"status": {
"format": "text",
"label": "Status"
},
"targetUrl": {
"format": "link",
"label": "Target URL"
},
"type": {
"format": "text",
"label": "Row Type"
},
"width": {
"format": "number",
"label": "Width"
}
}
},
"title": "Screenshots",
"transformation": {
"fields": [
"type",
"targetUrl",
"captureMode",
"status",
"format",
"width",
"height",
"fileSizeBytes",
"filename",
"downloadUrl",
"capturedAt"
]
}
}
}
}
Key-value schema
Published key-value store definitions, when provided by this build.
This definition is not present in the default published build. See the published README for available documentation.
Published README
Read the full published documentation
Twitter (X) Screenshot Generator
Capture clean screenshots of public X posts and profiles — no login, no cookies, no API key. Paste post links to get pixel-perfect post cards, or profile links to get the profile header or the full profile page. Choose dark, light or system theme, PNG/JPEG/WEBP output, and 1x–3x pixel density.
What this actor does
- Three capture modes:
postCard(one post),profileHeader(header + first posts) andfullProfilePage(the scrollable profile page) - Clean captures: headers, sidebars, login prompts and community notes are hidden automatically; reply posts can be hidden too
- Image control: PNG, JPEG or WEBP, quality setting for JPEG/WEBP, and 1x/2x/3x pixel density
- Custom viewport: width and height from 320×240 up to 3840×2160
- Optional details: post ID, URL, author handle, text snippet, and profile or author follower counts when X shows them
- Empty fields are omitted
Output per screenshot
Each row has a type: screenshot for a capture or status for a run message. If no post or profile link was provided at all, a single status row with status: "noInput" and a message field is emitted instead of the fields below.
| Field | Description |
|---|---|
targetUrl |
The post or profile URL that was captured |
targetType |
post or profile |
captureMode |
postCard, profileHeader or fullProfilePage |
status |
success or a friendly error description |
width, height |
Dimensions of the captured image in pixels |
format |
Saved image format (png, jpeg or webp) |
fileSizeBytes |
Size of the saved image |
filename |
File name in the key-value store |
downloadUrl |
Public signed link to download the image (omitted when signing fails) |
quality |
JPEG/WEBP quality setting used |
deviceScaleFactor |
Pixel density used for the capture (1, 2 or 3) |
capturedAt, collectedAt |
ISO timestamps of the capture |
profileUrl |
The profile URL, on profile captures |
With Include post/profile details on, post rows also carry tweetId, tweetUrl, authorUsername, textSnippet, authorFollowers, authorFollowing and authorPostCount; profile rows carry username, name, followers, following and postCount. Counts are only added when X shows them.
Input
| Field | Type | Default | Description |
|---|---|---|---|
postUrls |
array | – | Post links, bare post IDs, profile links or bare usernames |
tweetUrls |
array | – | Alias of post links |
profileUrls |
array | – | Profiles to capture (header or full page, depending on capture mode) |
captureMode |
string | postCard |
postCard, profileHeader or fullProfilePage. In postCard mode, post links produce post cards; in profileHeader or fullProfilePage mode, post links capture the post's author profile instead |
theme |
string | dark |
dark, light or system |
fullPage |
boolean | false |
Capture the whole scrollable page instead of just the card or header |
hideReplies |
boolean | true |
Hide reply posts so captures stay focused |
includeMetadata |
boolean | false |
Add post/profile details and counts to each row |
format |
string | png |
png (lossless), jpeg or webp |
quality |
integer | 90 |
Quality for JPEG/WEBP (1–100); ignored for PNG |
deviceScaleFactor |
string | 1x |
1x, 2x or 3x pixel density |
viewportWidth |
integer | 1440 |
Browser width used for the capture (320–3840) |
viewportHeight |
integer | 900 |
Browser height used for the capture (240–2160) |
proxyConfiguration |
object | – | Optional, for large or repeated runs |
At least one post link or profile link is required. Any input works in any list — links, IDs and usernames are routed automatically.
Example: post card
{
"postUrls": ["https://x.com/NASA/status/2107095768821576019"],
"theme": "dark",
"hideReplies": true,
"includeMetadata": true
}
Example: profile header
{
"profileUrls": ["https://x.com/apify"],
"captureMode": "profileHeader",
"theme": "light",
"viewportWidth": 1280,
"viewportHeight": 800
}
Example: full profile page
{
"profileUrls": ["apify"],
"captureMode": "fullProfilePage",
"fullPage": true
}
Example: high-density JPEG
{
"postUrls": ["2107095768821576019"],
"format": "jpeg",
"quality": 85,
"deviceScaleFactor": "2x"
}
Example record
{
"type": "screenshot",
"targetUrl": "https://x.com/NASA/status/2107095768821576019",
"targetType": "post",
"captureMode": "postCard",
"status": "success",
"width": 1440,
"height": 810,
"format": "png",
"fileSizeBytes": 412345,
"filename": "screenshot_2107095768821576019.png",
"downloadUrl": "https://api.apify.com/v2/key-value-stores/{STORE_ID}/records/screenshot_2107095768821576019.png?signature=...",
"deviceScaleFactor": 1,
"capturedAt": "2026-10-06T10:30:00+00:00",
"tweetId": "2107095768821576019",
"tweetUrl": "https://x.com/NASA/status/2107095768821576019",
"authorUsername": "NASA",
"textSnippet": "It's World Space Week! ..."
}
Use cases
- Social media reporting — embed clean post captures in decks, newsletters and blogs
- Brand monitoring — archive screenshots of public posts as evidence
- Community management — capture profile pages for creator or partner reviews
- Research — build image datasets of public posts with consistent framing and theme
- Content creation — generate post images for roundups without manual screenshotting
- Legal and compliance — timestamped captures of public posts with source URLs
FAQ
Can I screenshot private accounts or posts? No. Only public posts and profiles are accessible.
What resolution are the screenshots? The viewport defaults to 1440×900 and is configurable from 320×240 up to 3840×2160. With 2x or 3x pixel density the saved image is two or three times larger on each side. The actual dimensions are always reported in width and height.
What is the difference between the three capture modes? postCard captures a single post as a clean card; profileHeader captures the profile header plus the first posts; fullProfilePage captures the whole scrollable profile page. A post link captures a post card only in postCard mode — if profileHeader or fullProfilePage is selected, a post link captures that post's author profile instead.
Does it support threads? Each post link is captured individually. Paste each post in the thread as a separate link.
What happens if a post contains a video? The actor waits for the video to load and pauses it on a still frame before capturing, so the capture is clean.
What gets hidden in a capture? The left navigation, headers, sidebars, login prompts, sticky banners and community notes are hidden automatically. Reply posts are hidden when Hide replies is on.
Which image format should I use? PNG for lossless quality, JPEG for smaller files, WEBP for the smallest files. JPEG and WEBP use the quality setting.
What if a link is invalid or the post was deleted? The row gets a status explaining the problem instead of a screenshot. The run never crashes.
How long do download links last? They follow your Apify key-value store retention (typically 7 days on the free tier). Copy the images to your own storage for permanent archival.
Is this affiliated with X? No. This is a third-party actor that captures publicly visible pages.
Limits
- Public content only — private or protected accounts cannot be captured.
- One capture per link; profile pages capture the first posts loaded at the chosen viewport.
- Metadata counts are added only when X displays them.
- Capture failures (for example a deleted post) produce a
statusrow, so a run is never silently empty.
Python quickstart
Use a schema-derived input and the Python standard library to start a run. An Apify account and token are required for execution.
Source build MyDjoodZqiGQGH2Jm. Documentation is regenerated from the default published build; private drafts are not included.