Skip to main content
The Xpoz REST API exposes the same social media data layer as the MCP server and the SDKs through ordinary HTTPS requests. Use it when your stack has no SDK, when you want to call Xpoz from a serverless function or a shell script, or when you prefer to work directly with JSON. Base URL: https://api.xpoz.ai

Endpoint reference

Every endpoint with parameters, responses, and an interactive request builder, generated from the live OpenAPI spec.

Swagger UI

The same spec rendered by Swagger, served by the API itself.

OpenAPI spec (JSON)

Import into Postman, Insomnia, or a code generator.

OpenAPI spec (YAML)

The same document in YAML.

Endpoint families

Live data endpoints fetch from the platform on demand and return one page plus a cursor. See Pagination. Account, billing, and crawl settings endpoints are the ones the Xpoz dashboard uses and are documented for completeness.

First request

Search Twitter/X for recent posts about a topic. Get a free access key from xpoz.ai/get-token.
Pass next_page_cursor back as cursor to fetch the next page.

Common query parameters

Most data endpoints accept the same options: The exact parameters and allowed field names for each endpoint are listed on its reference page.

Errors

Error bodies are JSON. Each endpoint’s reference page lists the exact statuses it returns.

Same data, other interfaces

The REST API, the MCP server, the SDKs, and the CLI all read the same data and meter the same credits. The SDKs’ live methods call these endpoints under the hood. Pick whichever fits your runtime; see how to access Xpoz.