Skip to main content

Installation

Requires Python 3.10+.

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

The Python SDK provides both synchronous and asynchronous clients.

Configuration Options

Your First Call

Context Managers

Use context managers to automatically close the client when done.

Field Selection

All methods accept a fields parameter. Use snake_case field names — the SDK automatically converts to camelCase for the API.
Requesting fewer fields significantly improves response time and reduces memory usage, especially for large result sets.

Query Syntax

The query parameter on search_posts, get_users_by_keywords, 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 (author_username, language, start_date, end_date) instead.

Environment Variables

Next Steps