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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_xpoz-0.1.1.tar.gz.
File metadata
- Download URL: llama_index_tools_xpoz-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d23888a70031b2d7eb2ddb391f0855daf4a6e7293da8030c3879005c04e4cdd7
|
|
| MD5 |
82cd427c3988ca0ae47329f1231b6227
|
|
| BLAKE2b-256 |
efd8271759935f9bfa86917aebfcfa52eb8c56968c71f56a785329fb7aad1e47
|
Provenance
The following attestation bundles were made for llama_index_tools_xpoz-0.1.1.tar.gz:
Publisher:
release.yml on XPOZpublic/llama-index-tools-xpoz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_xpoz-0.1.1.tar.gz -
Subject digest:
d23888a70031b2d7eb2ddb391f0855daf4a6e7293da8030c3879005c04e4cdd7 - Sigstore transparency entry: 2340536273
- Sigstore integration time:
-
Permalink:
XPOZpublic/llama-index-tools-xpoz@9a6ba1320a9b8d164ad2c2094add71f1b8ac644c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/XPOZpublic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9a6ba1320a9b8d164ad2c2094add71f1b8ac644c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file llama_index_tools_xpoz-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_xpoz-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
998ef0686b2b96643735ec6a337c1a9e7e438e907b13c0f0d495936f4e57a6ba
|
|
| MD5 |
b8cca92ac2014a174d8c35a047663bdd
|
|
| BLAKE2b-256 |
8c43d9f2e7d0ab36d5ca4864ac9294faebbf5e9aba0146d91c3d705de328bd67
|
Provenance
The following attestation bundles were made for llama_index_tools_xpoz-0.1.1-py3-none-any.whl:
Publisher:
release.yml on XPOZpublic/llama-index-tools-xpoz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_xpoz-0.1.1-py3-none-any.whl -
Subject digest:
998ef0686b2b96643735ec6a337c1a9e7e438e907b13c0f0d495936f4e57a6ba - Sigstore transparency entry: 2340536280
- Sigstore integration time:
-
Permalink:
XPOZpublic/llama-index-tools-xpoz@9a6ba1320a9b8d164ad2c2094add71f1b8ac644c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/XPOZpublic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9a6ba1320a9b8d164ad2c2094add71f1b8ac644c -
Trigger Event:
workflow_dispatch
-
Statement type: