llama-index-tools-xpoz
Xpoz social media intelligence tools for LlamaIndex agents: search and analyze Twitter/X, Instagram, Reddit, and TikTok (posts, user profiles, comments, engagement data) with no social media API keys required.
Installation
pip install llama-index-tools-xpoz
Get a free access key at xpoz.ai/get-token (no credit card) and set it:
export XPOZ_API_KEY=your-access-key
Usage
Five tool specs, one per domain. Give an agent only the platforms it needs:
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.tools.xpoz import XpozTwitterToolSpec, XpozRedditToolSpec
tools = XpozTwitterToolSpec().to_tool_list() + XpozRedditToolSpec().to_tool_list()
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-5.4"),
system_prompt="You are a social media research assistant. Use the Xpoz tools for data.",
)
response = await agent.run("What are people saying about AI agents on Twitter and Reddit?")
print(response)
Or call tools directly:
from llama_index.tools.xpoz import XpozTwitterToolSpec
spec = XpozTwitterToolSpec()
result = spec.search_twitter_posts("AI agents", limit=5)
Pass api_key explicitly instead of using the environment variable: XpozTwitterToolSpec(api_key="...").
Tool specs
| Spec | Tools |
|---|---|
XpozTwitterToolSpec |
search posts, user profile, user posts, post comments, search users, followers/following, users by keywords, count posts |
XpozInstagramToolSpec |
search posts, user profile, user posts, post comments, search users, users by keywords |
XpozRedditToolSpec |
search posts, post with comments, search comments, user profile, search subreddits, subreddit with posts, subreddits by keywords |
XpozTiktokToolSpec |
search videos, videos by hashtags, creator profile, creator videos, video comments, search creators, creators by hashtags |
XpozTrackingToolSpec |
list/add/remove tracked items, account details |
Tips
- When you want the most recent posts, omit
start_date/end_date. - Use the
fieldsparameter to keep responses small, e.g.["text", "like_count", "created_at"]. - Tracked keywords and users are crawled continuously, which gives later searches better coverage.
Links
Xpoz · Docs · Get a token · support@xpoz.ai
License
MIT
Release files for llama-index-tools-xpoz 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_tools_xpoz-0.1.1.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_tools_xpoz-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / llama_index_tools_xpoz-0.1.1.tar.gz
| Download URL | llama_index_tools_xpoz-0.1.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d23888a70031b2d7eb2ddb391f0855daf4a6e7293da8030c3879005c04e4cdd7
|
|
BLAKE2b-256 checksum How to use checksums |
efd8271759935f9bfa86917aebfcfa52eb8c56968c71f56a785329fb7aad1e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.
Transparency logRelease files / llama_index_tools_xpoz-0.1.1-py3-none-any.whl
| Download URL | llama_index_tools_xpoz-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
998ef0686b2b96643735ec6a337c1a9e7e438e907b13c0f0d495936f4e57a6ba
|
|
BLAKE2b-256 checksum How to use checksums |
8c43d9f2e7d0ab36d5ca4864ac9294faebbf5e9aba0146d91c3d705de328bd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.
Transparency log