Skip to main content

Installation

Requires Node.js 18+.

Get an Access Key

Sign up and get your token at xpoz.ai/get-token.
Start instantly — no account needed. Generate a free token and use it as your API key:
This returns a preview of up to 5 results per call. To get full data, pagination, and CSV export, create a free account — no credit card required.

Create a Client

Configuration Options

Your First Call

Connection Lifecycle

You must call connect() before making any calls and close() when done.

Manual connect/close

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 a fields option. Requesting fewer fields significantly improves response time.
Use fields to request only the data you need. This reduces response time and memory usage, especially for large result sets.

Query Syntax

The query 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