Agent skill
account-backup
Export and backup your X/Twitter account data — tweets, likes, bookmarks, followers, and following — as downloadable JSON. Also triggers X's official data archive download. Use when users want to backup, export, or archive their X account data.
Install this agent skill to your Project
npx add-skill https://github.com/nirholas/XActions/tree/main/skills/account-backup
Metadata
Additional technical details for this skill
- author
- nichxbt
- version
- 1.0
SKILL.md
Account Backup & Data Export
Browser console scripts for exporting your X/Twitter account data without an API key.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Backup profile, tweets, likes, bookmarks, followers/following | src/backupAccount.js |
x.com/USERNAME |
| Trigger X's official data archive download | src/downloadAccountData.js |
x.com/settings/download_your_data |
| Export data via API | api/routes/portability.js |
API endpoint /api/portability/export |
Quick Start
Browser backup (no API needed)
- Navigate to
x.com/USERNAME(your own profile) - Open DevTools (F12) → Console
- Paste
src/backupAccount.js→ Enter - JSON file auto-downloads when complete
Official X data archive
- Navigate to
x.com/settings/download_your_data - Open DevTools (F12) → Console
- Paste
src/downloadAccountData.js→ Enter - Script triggers the request and monitors progress (checks every 30s, up to 60 min)
Configuration (backupAccount.js)
const CONFIG = {
maxTweets: 100, // Max tweets to scrape
maxLikes: 100, // Max likes to scrape
maxBookmarks: 100, // Max bookmarks to scrape
maxFollowing: 200, // Max following accounts
maxFollowers: 200, // Max follower accounts
scrollDelay: 2000, // ms between scroll actions
autoDownload: true, // Auto-download JSON on completion
sections: {
profile: true,
tweets: true,
likes: true,
bookmarks: true,
following: true,
followers: true,
},
};
Output Format
backupAccount.js exports a single JSON with:
{
"meta": { "createdAt": "...", "source": "XActions Backup Tool", "version": "2.0.0" },
"profile": { ... },
"tweets": [ ... ],
"likes": [ ... ],
"bookmarks": [ ... ],
"following": [ ... ],
"followers": [ ... ]
}
Notes
backupAccount.jsscrapes live DOM — accuracy improves with higher scroll countsdownloadAccountData.jsrelies on X's official export, which can take hours to days- Official export includes full history; browser scrape is limited to visible/scrolled content
- Increase
maxTweets/maxFollowersin CONFIG for deeper exports (slower)
Related Skills
- twitter-scraping — Scrape any profile, not just your own
- bookmarks-management — Export and organize bookmarks
- follower-monitoring — Track follower changes over time
- content-cleanup — Delete tweets and likes after backing up
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
articles-longform
Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles.
x-pro-management
Navigate to X Pro (TweetDeck), set up monitoring columns, and manage multi-column view. Use when users want to use X Pro / TweetDeck features or set up a multi-column dashboard.
business-ads
Manages X/Twitter business intelligence including brand monitoring, audience insights, competitor analysis, tweet A/B testing, auto-plug replies for promotion, and content performance optimization. Use when users want brand monitoring, audience analysis, competitor comparison, or promotion optimization on X.
engagement-interaction
Automates X/Twitter engagement actions — like, unlike, reply, bookmark, hide replies, and auto-like by keyword. Also bulk-unlikes all posts. Use when users want to automate likes, send replies, manage bookmarks on tweets, hide replies, or clear their entire likes history.
unfollow-management
Mass unfollow on X/Twitter via browser console scripts. Unfollows everyone, only non-followers, non-followers with username logging, smart time-based unfollow with whitelists, and follow/following ratio management. Use when cleaning up a following list, removing non-followers, bulk unfollowing accounts, or optimizing your follow ratio.
follower-monitoring
Monitors X/Twitter follower changes using browser console scripts. Detects who unfollowed, tracks new followers with welcome messages, monitors any public account, runs continuous monitoring with alerts, tracks follower growth over time, and analyzes follower demographics. Use when tracking follower changes, detecting unfollowers, or monitoring Twitter accounts.
Didn't find tool you were looking for?