social-intelligence
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSocial Intelligence with x402 APIs
基于x402 API的社交媒体智能工具
Access X/Twitter (via Grok) and Reddit through x402-protected endpoints.
通过受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
X/Twitter(通过Grok)
Search Posts
搜索帖子
Search for X posts by keywords:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/x-search -m POST -b '{"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帖子:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/x-search -m POST -b '{"query": "AI agents"}'参数:
- - 搜索关键词(必填)
query
返回结果:
- 帖子内容和作者信息
- 互动数据(点赞、转发、回复)
- 时间戳和链接
- 媒体附件
Search Users
搜索用户
Find X users matching criteria:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-search -m POST -b '{"query": "AI researcher San Francisco"}'Returns:
- Username and display name
- Bio/description
- Follower/following counts
- Verification status
- Profile links
查找符合条件的X用户:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-search -m POST -b '{"query": "AI researcher San Francisco"}'返回结果:
- 用户名和显示名称
- 个人简介
- 关注者/关注人数
- 认证状态
- 个人主页链接
Get User's Posts
获取用户帖子
Fetch recent posts from a specific user:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-posts -m POST -b '{"username": "elonmusk"}'Parameters:
- - X username without @ (required)
username
Returns: Recent posts with full engagement metrics.
获取特定用户的近期帖子:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-posts -m POST -b '{"username": "elonmusk"}'参数:
- - 不带@的X用户名(必填)
username
返回结果: 包含完整互动数据的近期帖子。
Search Posts
搜索帖子
Search Reddit for posts:
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"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上的帖子:
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "best programming languages 2024"}'参数:
- - 搜索词(必填)
query - - 限制到特定子版块
subreddit - - 排序方式:相关性、热门、最新、最佳
sort - - 时间范围:小时、天、周、月、年、全部
time
返回结果:
- 帖子标题和内容
- 作者和子版块
- 点赞数和评论数
- 帖子链接
Search in Subreddit
在子版块内搜索
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{
"query": "typescript vs javascript",
"subreddit": "programming",
"sort": "top",
"time": "year"
}'bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{
"query": "typescript vs javascript",
"subreddit": "programming",
"sort": "top",
"time": "year"
}'Get Post Comments
获取帖子评论
Get comments from a Reddit post:
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/post-comments -m POST -b '{"postUrl": "https://reddit.com/r/programming/comments/abc123/..."}'Returns:
- Comment text and author
- Upvotes/downvotes
- Reply threads
- Comment timestamps
获取Reddit帖子的评论:
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/post-comments -m POST -b '{"postUrl": "https://reddit.com/r/programming/comments/abc123/..."}'返回结果:
- 评论内容和作者
- 点赞/点踩数
- 回复线程
- 评论时间戳
Workflows
工作流
Standard
标准流程
- (Optional) Check balance:
npx agentcash wallet info - Use to list all endpoints
npx agentcash discover https://stableenrich.dev - Use to see expected parameters and pricing
npx agentcash check <endpoint-url> - Call endpoint with
npx agentcash fetch - Parse and present results
- (可选)查看余额:
npx agentcash wallet info - 使用列出所有接口
npx agentcash discover https://stableenrich.dev - 使用查看预期参数和定价
npx agentcash check <endpoint-url> - 使用调用接口
npx agentcash fetch - 解析并展示结果
Brand Monitoring
品牌监控
- (Optional) Check balance:
npx agentcash wallet info - Search X for brand mentions
- Search Reddit for discussions
- Summarize sentiment and key mentions
bash
npx agentcash fetch https://stableenrich.dev/api/grok/x-search -m POST -b '{"query": "YourBrand OR @YourBrand"}'bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "YourBrand", "sort": "new"}'- (可选)查看余额:
npx agentcash wallet info - 在X上搜索品牌提及
- 在Reddit上搜索相关讨论
- 总结情感倾向和关键提及内容
bash
npx agentcash fetch https://stableenrich.dev/api/grok/x-search -m POST -b '{"query": "YourBrand OR @YourBrand"}'bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "YourBrand", "sort": "new"}'Competitor Research
竞品调研
- Search Reddit for competitor reviews
- Search X for competitor mentions
- Analyze common complaints and praise
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "competitor name review", "sort": "top", "time": "year"}'- 在Reddit上搜索竞品评价
- 在X上搜索竞品提及
- 分析常见的投诉和好评
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"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
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-search -m POST -b '{"query": "tech blogger 100k followers"}'- 定义筛选条件(主题、粉丝数量范围)
- 搜索符合条件的用户
- 获取优质候选人的近期帖子
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-search -m POST -b '{"query": "tech blogger 100k followers"}'Community Sentiment
社区情感分析
- Identify relevant subreddit
- Search for discussions on topic
- Get comments from top posts
- Synthesize overall sentiment
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "new feature name", "subreddit": "relevant_community", "sort": "hot"}'bash
npx agentcash fetch https://stableenrich.dev/api/reddit/post-comments -m POST -b '{"postUrl": "https://reddit.com/..."}'- 确定相关子版块
- 搜索主题相关讨论
- 获取热门帖子的评论
- 综合整体情感倾向
bash
npx agentcash fetch https://stableenrich.dev/api/reddit/search -m POST -b '{"query": "new feature name", "subreddit": "relevant_community", "sort": "hot"}'bash
npx agentcash fetch https://stableenrich.dev/api/reddit/post-comments -m POST -b '{"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 |