Use field selection
Always specify thefields parameter to retrieve only the data you need. This dramatically improves response time and reduces memory usage.
- TypeScript
- Python
Choose the right response mode
- TypeScript
- Python
Pagination patterns
Do not fetch all pages unless you actually need the full dataset. Common patterns:Sample the first page, then decide
- TypeScript
- Python
Jump to a specific page
Query optimization
Be specific with keywords
Use date ranges
Always includestartDate (and optionally endDate) to limit results to a relevant time window:
- TypeScript
- Python
Use platform-specific filters
Do not embed filters in the query string. Use dedicated parameters:Error handling
Build retry logic for timeouts and transient failures:- TypeScript
- Python
Authentication errors (
401) should never be retried. Timeout errors are safe to retry. Failed operations may indicate a server-side issue — check the operationError field for details.Caching
Xpoz caches operation results server-side with a TTL:- Running operations: 30-minute TTL (auto-expire if stalled)
- Completed operations: 15-minute TTL (retrieve results within this window)
- Paginated tables: Remain available for page navigation after creation
Client lifecycle
Always close the client when done to release resources:- TypeScript
- Python
Summary checklist
- Always specify
fieldsto reduce response size - Use
Fastmode for quick lookups,Pagingfor iteration,CSVfor bulk export - Include date ranges to narrow results
- Use dedicated filter parameters instead of embedding filters in queries
- Handle
AuthenticationErrorandOperationTimeoutErrorseparately - Close the client when done
Next steps
Query Syntax
Master boolean operators and phrase matching
CSV Exports
Export large datasets for offline analysis
Field Selection
Full list of available fields per platform
MCP Tools
Browse all 48 available tools

