What Live Data Is
Most SDK methods read from the Xpoz database, topping up from the crawler when results look stale. Theinstagram_live namespace is different: it bypasses the database entirely and fetches straight from the crawler API, so every call returns what Instagram is serving right now.
That trade-off is deliberate:
Reach for
instagram_live when freshness matters more than latency — checking a post’s engagement right now, or pulling a follower list that changed this morning. For analysis over large historical sets, the database-backed methods are faster and support CSV export.
Live methods require a paid account. They always trigger a live fetch, so they are not available on trial access and raise
AuthenticationError (HTTP 403).CursorResult
Live methods return aCursorResult[T] rather than the PaginatedResult[T] used elsewhere. The upstream API pages with an opaque cursor and reports no totals, so there is no page number, no total_pages, and no get_page(n).
Navigating Pages
- Sync
- Async
Methods
All methods acceptfields to select which fields come back, and all paged methods accept cursor to resume from a previous response.
interaction_type is "commenters" or "likers". connection_type is "followers" or "following".
get_post and get_user are single-item lookups and return the object directly, or None if nothing was found.
Examples
Resuming From a Cursor
Cursors are opaque strings you can persist and reuse later, which is useful for long-running or resumable jobs:A cursor is only valid for the same query on the same endpoint. Reusing one elsewhere is rejected with a
400.Field Selection
Live methods accept the samefields values as their database-backed counterparts — see the Python SDK Reference for the full Instagram field lists. Field names are snake_case and mapped automatically.
Live methods do not support since / until date filtering. The upstream API accepts only the query and a cursor, so use client.instagram.search_posts() when you need a date range.
Connection Details
Live methods talk to the Xpoz REST API (https://api.xpoz.ai) rather than the MCP server, using the same API key. Override the base URL when needed:
XPOZ_API_URL environment variable does the same thing.
