Skip to main content
The Twitter Data Export skill handles bulk data extraction from Twitter/X. It supports keyword-based search, author-based search, date filtering, and boolean query syntax. Results are exported as CSV files with up to 500K rows per export.

Example Prompts

  • “Export tweets about Claude Code to CSV”
  • “Download @OpenAI tweets from January 2026”
  • “Export all tweets mentioning ‘artificial intelligence’ AND ‘healthcare’ to CSV”
  • “Get a CSV of tweets from @elonmusk in the last 30 days”

Available Fields

FieldDescription
idTweet unique identifier
textFull tweet text
authorUsernameAuthor’s Twitter handle
authorIdAuthor’s unique identifier
createdAtDatePublication date
likeCountNumber of likes
retweetCountNumber of retweets
quoteCountNumber of quote tweets
impressionCountNumber of impressions
replyCountNumber of replies
languageTweet language code
isRetweetWhether this is a retweet
isReplyWhether this is a reply

How It Works

1

Build query

Constructs a search query using keywords, boolean operators, date ranges, or author filters.
2

Execute search

Calls Xpoz tools with responseType="csv" for bulk export or standard mode for smaller datasets.
3

Monitor export

For large exports, monitors the async operation via checkOperationStatus until the CSV file is ready.
4

Deliver results

Returns the CSV download link or displays results inline for smaller datasets.

Xpoz Tools Used

ToolPurpose
getTwitterPostsByKeywordsSearch Twitter posts by keyword query
getTwitterPostsByAuthorGet posts from a specific Twitter user
checkOperationStatusMonitor async CSV export progress

Query Syntax

Boolean operators let you build precise queries:
SyntaxExample
Simpleartificial intelligence
Phrase"machine learning"
ANDAI AND healthcare
ORChatGPT OR "Claude AI"
Combined("generative AI" OR LLM) AND startup

Get Started

Get a free access key at xpoz.ai/get-token. See the installation guide to add this skill to your agent.