CrewAI tools for Xpoz social media intelligence — Twitter/X, Instagram, Reddit, TikTok
Project description
crewai-xpoz
CrewAI tools for Xpoz social media intelligence — access Twitter/X, Instagram, Reddit, and TikTok data in your CrewAI agents.
Installation
pip install crewai-xpoz
Or via the CrewAI Tool Repository:
crewai tool install crewai-xpoz
Quick Start
import os
from crewai import Agent, Task, Crew
from crewai_xpoz import XpozTwitterSearch, XpozInstagramUser
os.environ["XPOZ_API_KEY"] = "your-xpoz-key" # Get one at xpoz.ai/get-token
os.environ["OPENAI_API_KEY"] = "your-openai-key"
tools = [
XpozTwitterSearch(),
XpozInstagramUser(),
]
researcher = Agent(
role="Social Media Analyst",
goal="Analyze social media trends and brand presence",
backstory="An expert social media analyst with deep knowledge of online trends",
tools=tools,
verbose=True,
)
task = Task(
description="What are people saying about AI agents on Twitter this week?",
expected_output="A summary of the key themes and sentiment around AI agents on Twitter",
agent=researcher,
)
crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()
You can also pass the API key directly:
tools = [
XpozTwitterSearch(api_key="your-xpoz-key"),
]
Available Tools
Twitter/X (13 tools)
| Tool | Description |
|---|---|
XpozTwitterSearch |
Search posts by keywords, hashtags, or phrases |
XpozTwitterUser |
Get a user profile by username or ID |
XpozTwitterUserPosts |
Get tweets posted by a specific user |
XpozTwitterPostComments |
Get replies/comments on a post |
XpozTwitterSearchUsers |
Search for users by name |
XpozTwitterUserConnections |
Get a user's followers or following |
XpozTwitterUsersByKeywords |
Find users who posted about specific topics |
XpozTwitterCountPosts |
Count posts matching a phrase |
XpozTwitterPostsByIds |
Get specific posts by their IDs |
XpozTwitterPostRetweets |
Get retweets of a post |
XpozTwitterPostQuotes |
Get quote tweets of a post |
XpozTwitterPostInteractingUsers |
Get users who liked/retweeted/quoted a post |
XpozTwitterUsers |
Get multiple user profiles by usernames or IDs |
Instagram (9 tools)
| Tool | Description |
|---|---|
XpozInstagramSearch |
Search posts by keywords or phrases |
XpozInstagramUser |
Get a user profile by username or ID |
XpozInstagramUserPosts |
Get posts by a specific user |
XpozInstagramPostComments |
Get comments on a post |
XpozInstagramSearchUsers |
Search for users by name |
XpozInstagramUsersByKeywords |
Find users who posted about specific topics |
XpozInstagramPostsByIds |
Get specific posts by their IDs |
XpozInstagramUserConnections |
Get a user's followers or following |
XpozInstagramPostInteractingUsers |
Get users who liked or commented on a post |
Reddit (9 tools)
| Tool | Description |
|---|---|
XpozRedditSearch |
Search posts by keywords or phrases |
XpozRedditUser |
Get a user profile by username |
XpozRedditPostWithComments |
Get a post with its comments |
XpozRedditSearchComments |
Search comments by keywords |
XpozRedditSearchSubreddits |
Search for subreddits by name or topic |
XpozRedditSubreddit |
Get a subreddit's info and recent posts |
XpozRedditUsersByKeywords |
Find users who posted about specific topics |
XpozRedditSearchUsers |
Search for users by name |
XpozRedditSubredditsByKeywords |
Find subreddits related to keywords |
TikTok (9 tools)
| Tool | Description |
|---|---|
XpozTiktokSearch |
Search posts by keywords or phrases |
XpozTiktokUser |
Get a user profile by username or ID |
XpozTiktokUserPosts |
Get videos posted by a specific user |
XpozTiktokPostComments |
Get comments on a video |
XpozTiktokSearchUsers |
Search for users by name |
XpozTiktokPostsByHashtags |
Search posts by hashtags |
XpozTiktokUsersByKeywords |
Find creators who posted about specific topics |
XpozTiktokPostsByIds |
Get specific videos by their IDs |
XpozTiktokUsersByHashtags |
Find creators who posted with specific hashtags |
Tracking (3 tools)
| Tool | Description |
|---|---|
XpozGetTrackedItems |
List all currently tracked items |
XpozAddTrackedItems |
Add items to track across platforms |
XpozRemoveTrackedItems |
Remove items from tracking |
Account (1 tool)
| Tool | Description |
|---|---|
XpozAccountDetails |
Get account details, plan info, and credit usage |
Authentication
Get a free API key at xpoz.ai/get-token.
Set it via environment variable:
export XPOZ_API_KEY=your-key
Or pass it directly when creating tools:
tool = XpozTwitterSearch(api_key="your-key")
Publishing
To publish to the CrewAI Tool Repository:
crewai tool publish --public
Links
Project details
Release history Release notifications | RSS feed
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 crewai_xpoz-0.1.2.tar.gz.
File metadata
- Download URL: crewai_xpoz-0.1.2.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d782a5c6392c7cbd5f2bbba688cb4c5d291e363a1b917955be2b4eb4d7b968c9
|
|
| MD5 |
4b10c29bbcc68286a9546c3034b461d6
|
|
| BLAKE2b-256 |
da7adce1f29d96107015b534f16a398c5ef92104d2c183a130aa1505de958c46
|
Provenance
The following attestation bundles were made for crewai_xpoz-0.1.2.tar.gz:
Publisher:
release.yml on XPOZpublic/crewai-xpoz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewai_xpoz-0.1.2.tar.gz -
Subject digest:
d782a5c6392c7cbd5f2bbba688cb4c5d291e363a1b917955be2b4eb4d7b968c9 - Sigstore transparency entry: 2339997451
- Sigstore integration time:
-
Permalink:
XPOZpublic/crewai-xpoz@1f7b0e001c78897a84dd99194c046032d31784d9 -
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@1f7b0e001c78897a84dd99194c046032d31784d9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file crewai_xpoz-0.1.2-py3-none-any.whl.
File metadata
- Download URL: crewai_xpoz-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.8 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 |
ca4f0dbd4fc147e3f8c019ad41903bba97bd1d3a9f3825895b2b08ce51565237
|
|
| MD5 |
5f1416a01b6c8cf0ef7c0dde56e09104
|
|
| BLAKE2b-256 |
d2dff70051a115504dc326d4c0165c64908c7b6d5f752ec4aca3b57734492970
|
Provenance
The following attestation bundles were made for crewai_xpoz-0.1.2-py3-none-any.whl:
Publisher:
release.yml on XPOZpublic/crewai-xpoz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewai_xpoz-0.1.2-py3-none-any.whl -
Subject digest:
ca4f0dbd4fc147e3f8c019ad41903bba97bd1d3a9f3825895b2b08ce51565237 - Sigstore transparency entry: 2339997475
- Sigstore integration time:
-
Permalink:
XPOZpublic/crewai-xpoz@1f7b0e001c78897a84dd99194c046032d31784d9 -
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@1f7b0e001c78897a84dd99194c046032d31784d9 -
Trigger Event:
workflow_dispatch
-
Statement type: