Installation
Get an Access Key
Sign up and get your token at xpoz.ai/get-token.Create a Client
Configuration Options
Your First Call
Connection Lifecycle
You must callconnect() before making any calls and close() when done.
Manual connect/close
Async disposal (recommended)
With TypeScript 5.2+ or Node.js 18.2+ (with--experimental-vm-modules), you can use Symbol.asyncDispose to auto-close the client:
Field Selection
All methods accept afields option. Requesting fewer fields significantly improves response time.
Query Syntax
Thequery parameter on searchPosts, getUsersByKeywords, and similar methods supports Lucene-style full-text search:
Do not use
from:, lang:, since:, or until: in the query string. Use the dedicated parameters (authorUsername, language, startDate, endDate) instead.Environment Variables
Next Steps
- Pagination — navigate large result sets and export CSV
- Error Handling — handle errors gracefully
- SDK Reference — full list of methods and type models
- Python SDK Quickstart — equivalent guide for the Python SDK

