Log in to X (Twitter), go to "More" -> "Settings and Support" -> "Settings and Privacy".
Click "Your Account" -> "Download Data Archive", verify your identity and request the download.
Find grok_history.js in the extracted Data folder.
For AI services, exported JSON files may contain your private information (such as phone numbers, API keys). Please ensure proper sanitization before uploading to third-party analysis tools.