social-intelligence
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSocial Intelligence with x402 APIs
基于x402 APIs的社交情报获取
STOP — Read before making any API call. enrichx402.com endpoints are not the same as each provider's native API. All paths use the format. You MUST either:https://enrichx402.com/api/{provider}/{action}
- Copy exact URLs from the Quick Reference table below, OR
- Run
to get the correct pathsx402.discover_api_endpoints(url="https://enrichx402.com")Guessing paths will fail with 405 errors (wrong path) or 404 errors (missingprefix)./api/
Access X/Twitter (via Grok) and Reddit through x402-protected endpoints.
注意——调用任何API前请仔细阅读。 enrichx402.com的接口并非各平台的原生API。所有路径均采用格式。你必须:https://enrichx402.com/api/{provider}/{action}
- 复制下方快速参考表中的准确URL,或者
- 运行
获取正确路径x402.discover_api_endpoints(url="https://enrichx402.com")猜测路径会导致调用失败,返回405错误(路径错误)或404错误(缺少前缀)。/api/
通过x402提供的受保护接口访问X/Twitter(通过Grok)和Reddit。
Setup
设置
See rules/getting-started.md for installation and wallet setup.
请查看rules/getting-started.md了解安装和钱包设置步骤。
Quick Reference
快速参考
| Task | Endpoint | Price | Description |
|---|---|---|---|
| Search X posts | | $0.02 | Search tweets by keywords |
| Find X users | | $0.02 | Search users by criteria |
| Get user posts | | $0.02 | Recent posts from user |
| Search Reddit | | $0.02 | Search Reddit posts |
| Get comments | | $0.02 | Comments on a post |
See rules/rate-limits.md for usage guidance.
| 任务 | 接口 | 价格 | 描述 |
|---|---|---|---|
| 搜索X平台帖子 | | $0.02 | 通过关键词搜索推文 |
| 查找X平台用户 | | $0.02 | 根据条件搜索用户 |
| 获取用户帖子 | | $0.02 | 获取用户近期帖子 |
| 搜索Reddit内容 | | $0.02 | 搜索Reddit帖子 |
| 获取评论 | | $0.02 | 获取帖子的评论 |
请查看rules/rate-limits.md了解使用限制说明。
X/Twitter via Grok
通过Grok调用X/Twitter接口
Search Posts
搜索帖子
Search for X posts by keywords:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/x-search",
method="POST",
body={
"query": "AI agents"
}
)Parameters:
- - Search keywords (required)
query
Returns:
- Post text and author info
- Engagement metrics (likes, retweets, replies)
- Timestamps and URLs
- Media attachments
通过关键词搜索X平台帖子:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/x-search",
method="POST",
body={
"query": "AI agents"
}
)参数:
- - 搜索关键词(必填)
query
返回内容:
- 帖子文本和作者信息
- 互动数据(点赞、转发、回复)
- 时间戳和链接
- 附加媒体
Search Users
搜索用户
Find X users matching criteria:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-search",
method="POST",
body={
"query": "AI researcher San Francisco"
}
)Returns:
- Username and display name
- Bio/description
- Follower/following counts
- Verification status
- Profile links
根据条件查找X平台用户:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-search",
method="POST",
body={
"query": "AI researcher San Francisco"
}
)返回内容:
- 用户名和显示名称
- 个人简介/描述
- 关注者/关注的用户数量
- 认证状态
- 主页链接
Get User's Posts
获取用户帖子
Fetch recent posts from a specific user:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-posts",
method="POST",
body={
"username": "elonmusk"
}
)Parameters:
- - X username without @ (required)
username
Returns: Recent posts with full engagement metrics.
获取特定用户的近期帖子:
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-posts",
method="POST",
body={
"username": "elonmusk"
}
)参数:
- - X平台用户名(不含@,必填)
username
返回内容: 包含完整互动数据的近期帖子。
Reddit接口
Search Posts
搜索帖子
Search Reddit for posts:
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={
"query": "best programming languages 2024"
}
)Parameters:
- - Search terms (required)
query - - Limit to specific subreddit
subreddit - - relevance, hot, new, top
sort - - hour, day, week, month, year, all
time
Returns:
- Post title and content
- Author and subreddit
- Upvotes and comment count
- Post URL
在Reddit中搜索帖子:
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={
"query": "best programming languages 2024"
}
)参数:
- - 搜索关键词(必填)
query - - 限定在特定子版块
subreddit - - 排序方式:相关性、热门、最新、最佳
sort - - 时间范围:小时、天、周、月、年、全部
time
返回内容:
- 帖子标题和内容
- 作者和子版块
- 点赞数和评论数
- 帖子链接
Search in Subreddit
在指定子版块搜索
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={
"query": "typescript vs javascript",
"subreddit": "programming",
"sort": "top",
"time": "year"
}
)mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={
"query": "typescript vs javascript",
"subreddit": "programming",
"sort": "top",
"time": "year"
}
)Get Post Comments
获取帖子评论
Get comments from a Reddit post:
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/post-comments",
method="POST",
body={
"postUrl": "https://reddit.com/r/programming/comments/abc123/..."
}
)Returns:
- Comment text and author
- Upvotes/downvotes
- Reply threads
- Comment timestamps
获取Reddit帖子的评论:
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/post-comments",
method="POST",
body={
"postUrl": "https://reddit.com/r/programming/comments/abc123/..."
}
)返回内容:
- 评论文本和作者
- 点赞/点踩数
- 回复线程
- 评论时间戳
Workflows
工作流程
Standard
标准流程
- (Optional) Check balance:
x402.get_wallet_info - Discover endpoints (required before first fetch):
x402.discover_api_endpoints(url="https://enrichx402.com") - Check endpoint schema: to verify parameters and pricing
x402.check_endpoint_schema(url="...") - Call endpoint with using exact URL from discovery or Quick Reference table above
x402.fetch - Parse and present results
- (可选)查看余额:
x402.get_wallet_info - 发现接口(首次调用前必填):
x402.discover_api_endpoints(url="https://enrichx402.com") - 检查接口 schema:验证参数和定价
x402.check_endpoint_schema(url="...") - 使用从发现功能或上方快速参考表中获取的准确URL,通过调用接口
x402.fetch - 解析并展示结果
Brand Monitoring
品牌监控
- (Optional) Check balance:
x402.get_wallet_info - Search X for brand mentions
- Search Reddit for discussions
- Summarize sentiment and key mentions
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/x-search",
method="POST",
body={"query": "YourBrand OR @YourBrand"}
)mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "YourBrand", "sort": "new"}
)- (可选)查看余额:
x402.get_wallet_info - 在X平台搜索品牌提及
- 在Reddit搜索相关讨论
- 总结情感倾向和关键提及内容
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/x-search",
method="POST",
body={"query": "YourBrand OR @YourBrand"}
)mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "YourBrand", "sort": "new"}
)Competitor Research
竞品研究
- Search Reddit for competitor reviews
- Search X for competitor mentions
- Analyze common complaints and praise
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "competitor name review", "sort": "top", "time": "year"}
)- 在Reddit搜索竞品评测
- 在X平台搜索竞品提及
- 分析常见投诉和好评
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "competitor name review", "sort": "top", "time": "year"}
)Influencer Discovery
意见领袖挖掘
- Define criteria (topic, follower range)
- Search for matching users
- Get recent posts for top candidates
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-search",
method="POST",
body={"query": "tech blogger 100k followers"}
)- 定义筛选条件(主题、粉丝数量范围)
- 搜索符合条件的用户
- 获取候选用户的近期帖子
mcp
x402.fetch(
url="https://enrichx402.com/api/grok/user-search",
method="POST",
body={"query": "tech blogger 100k followers"}
)Community Sentiment
社区情感分析
- Identify relevant subreddit
- Search for discussions on topic
- Get comments from top posts
- Synthesize overall sentiment
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "new feature name", "subreddit": "relevant_community", "sort": "hot"}
)mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/post-comments",
method="POST",
body={"postUrl": "https://reddit.com/..."}
)- 确定相关子版块
- 搜索主题相关讨论
- 获取热门帖子的评论
- 综合整体情感倾向
mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/search",
method="POST",
body={"query": "new feature name", "subreddit": "relevant_community", "sort": "hot"}
)mcp
x402.fetch(
url="https://enrichx402.com/api/reddit/post-comments",
method="POST",
body={"postUrl": "https://reddit.com/..."}
)Response Data
响应数据字段
X/Twitter Post Fields
X/Twitter帖子字段
- - Post content
text - - Username, display name, verified status
author - - Likes, retweets, replies, quotes, views
metrics - - Timestamp
createdAt - - Link to post
url - - Attached images/videos
media
- - 帖子内容
text - - 用户名、显示名称、认证状态
author - - 点赞、转发、回复、引用、浏览量
metrics - - 时间戳
createdAt - - 帖子链接
url - - 附加图片/视频
media
X/Twitter User Fields
X/Twitter用户字段
- - Handle without @
username - - Full name
displayName - - Bio
description - /
followers- Countsfollowing - - Verification status
verified - - Avatar
profileImageUrl
- - 用户名(不含@)
username - - 全名
displayName - - 个人简介
description - /
followers- 数量following - - 认证状态
verified - - 头像链接
profileImageUrl
Reddit Post Fields
Reddit帖子字段
- - Post title
title - - Post body (for text posts)
selftext - - Username
author - - Subreddit name
subreddit - - Upvotes minus downvotes
score - - Comment count
numComments - - Link to post
url - - Timestamp
createdUtc
- - 帖子标题
title - - 帖子正文(仅文本帖子)
selftext - - 用户名
author - - 子版块名称
subreddit - - 点赞数减去点踩数
score - - 评论数
numComments - - 帖子链接
url - - 时间戳
createdUtc
Reddit Comment Fields
Reddit评论字段
- - Comment text
body - - Username
author - - Net upvotes
score - - Nested replies
replies - - Timestamp
createdUtc
- - 评论文本
body - - 用户名
author - - 净点赞数
score - - 嵌套回复
replies - - 时间戳
createdUtc
Cost Estimation
成本估算
| Task | Calls | Cost |
|---|---|---|
| Quick X search | 1 | $0.02 |
| User profile + posts | 2 | $0.04 |
| Reddit thread + comments | 2 | $0.04 |
| Full monitoring scan | 4-6 | $0.08-0.12 |
| 任务 | 调用次数 | 费用 |
|---|---|---|
| 快速X平台搜索 | 1 | $0.02 |
| 用户资料+帖子 | 2 | $0.04 |
| Reddit帖子+评论 | 2 | $0.04 |
| 完整监控扫描 | 4-6 | $0.08-0.12 |