Platform Subcommands
The CLI organizes commands by platform. Each platform exposes the same tools available through the MCP server and SDKs.| Subcommand | Platform | Example tools |
|---|---|---|
twitter | Twitter/X | get_user, search_posts, get_post_comments, get_user_connections |
instagram | get_user, search_posts, get_post_comments, search_users | |
reddit | get_user, search_posts, search_comments, get_subreddit | |
tiktok | TikTok | get_user, search_posts, get_posts_by_hashtags, get_post_comments |
tracking | Cross-platform | add_tracked_items, get_tracked_items, remove_tracked_items |
Command Discovery
Use--help at any level to explore available commands and parameters:
Global Flags
These flags work with any command:| Flag | Environment Variable | Default | Description |
|---|---|---|---|
--api-key KEY | XPOZ_API_KEY | Stored config | Override the stored access key |
--server-url URL | XPOZ_SERVER_URL | https://mcp.xpoz.ai/mcp | Custom MCP server endpoint |
--output json|pretty | — | json | Output format |
--all-pages | — | Off | Automatically walk through all pages |
--max-pages N | — | — | Safety cap when using --all-pages |
--page N | — | — | Jump to a specific page |
--export-csv-url | — | Off | Return a CSV download URL instead of rows |
--timeout SECS | — | 300 | Operation timeout in seconds |
Examples
TikTok
Tracking
Output Formatting
By default, the CLI outputs raw JSON. Use--output pretty for human-readable formatting:
- JSON (default)
- Pretty
Pagination
Search commands return paginated results (100 items per page). You have three options for navigating pages:| Strategy | Flag | Use case |
|---|---|---|
| Walk all pages | --all-pages | Collect the full result set |
| Capped walk | --all-pages --max-pages 5 | Collect up to N pages as a safety limit |
| Jump to page | --page 3 | Resume or inspect a specific page |
When using
--all-pages on broad queries, set --max-pages to avoid unexpectedly large result sets. Each page consumes one call.CSV Export
Use--export-csv-url to get a download URL for the full result set as a CSV file, hosted on S3. This is useful for bulk data collection and analysis in spreadsheet tools.
Next Steps
Authentication
Manage your access key and auth credentials.
Query Syntax
Write effective search queries with boolean operators and phrases.

