social-intelligence

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Social 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

快速参考

TaskEndpointPriceDescription
Search X posts
https://stableenrich.dev/api/grok/x-search
$0.02Search tweets by keywords
Find X users
https://stableenrich.dev/api/grok/user-search
$0.02Search users by criteria
Get user posts
https://stableenrich.dev/api/grok/user-posts
$0.02Recent posts from user
Search Reddit
https://stableenrich.dev/api/reddit/search
$0.02Search Reddit posts
Get comments
https://stableenrich.dev/api/reddit/post-comments
$0.02Comments on a post
See rules/rate-limits.md for usage guidance.
任务接口价格描述
搜索X帖子
https://stableenrich.dev/api/grok/x-search
$0.02通过关键词搜索推文
查找X用户
https://stableenrich.dev/api/grok/user-search
$0.02根据条件搜索用户
获取用户帖子
https://stableenrich.dev/api/grok/user-posts
$0.02获取用户的近期帖子
搜索Reddit内容
https://stableenrich.dev/api/reddit/search
$0.02搜索Reddit帖子
获取评论
https://stableenrich.dev/api/reddit/post-comments
$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:
  • query
    - Search keywords (required)
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:
  • username
    - X username without @ (required)
Returns: Recent posts with full engagement metrics.
获取特定用户的近期帖子:
bash
npx agentcash fetch https://stableenrich.dev/api/grok/user-posts -m POST -b '{"username": "elonmusk"}'
参数:
  • username
    - 不带@的X用户名(必填)
返回结果: 包含完整互动数据的近期帖子。

Reddit

Reddit

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:
  • query
    - Search terms (required)
  • subreddit
    - Limit to specific subreddit
  • sort
    - relevance, hot, new, top
  • time
    - hour, day, week, month, year, all
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
    npx agentcash discover https://stableenrich.dev
    to list all endpoints
  • Use
    npx agentcash check <endpoint-url>
    to see expected parameters and pricing
  • 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帖子字段

  • text
    - Post content
  • author
    - Username, display name, verified status
  • metrics
    - Likes, retweets, replies, quotes, views
  • createdAt
    - Timestamp
  • url
    - Link to post
  • media
    - Attached images/videos
  • text
    - 帖子内容
  • author
    - 用户名、显示名称、认证状态
  • metrics
    - 点赞、转发、回复、引用、浏览量
  • createdAt
    - 时间戳
  • url
    - 帖子链接
  • media
    - 附加图片/视频

X/Twitter User Fields

X/Twitter用户字段

  • username
    - Handle without @
  • displayName
    - Full name
  • description
    - Bio
  • followers
    /
    following
    - Counts
  • verified
    - Verification status
  • profileImageUrl
    - Avatar
  • username
    - 不带@的用户名
  • displayName
    - 全名
  • description
    - 个人简介
  • followers
    /
    following
    - 数量
  • verified
    - 认证状态
  • profileImageUrl
    - 头像链接

Reddit Post Fields

Reddit帖子字段

  • title
    - Post title
  • selftext
    - Post body (for text posts)
  • author
    - Username
  • subreddit
    - Subreddit name
  • score
    - Upvotes minus downvotes
  • numComments
    - Comment count
  • url
    - Link to post
  • createdUtc
    - Timestamp
  • title
    - 帖子标题
  • selftext
    - 帖子正文(仅文本帖)
  • author
    - 用户名
  • subreddit
    - 子版块名称
  • score
    - 点赞数减去点踩数
  • numComments
    - 评论数
  • url
    - 帖子链接
  • createdUtc
    - 时间戳

Reddit Comment Fields

Reddit评论字段

  • body
    - Comment text
  • author
    - Username
  • score
    - Net upvotes
  • replies
    - Nested replies
  • createdUtc
    - Timestamp
  • body
    - 评论内容
  • author
    - 用户名
  • score
    - 净点赞数
  • replies
    - 嵌套回复
  • createdUtc
    - 时间戳

Cost Estimation

成本估算

TaskCallsCost
Quick X search1$0.02
User profile + posts2$0.04
Reddit thread + comments2$0.04
Full monitoring scan4-6$0.08-0.12
任务调用次数费用
快速X搜索1$0.02
用户资料+帖子2$0.04
Reddit帖子+评论2$0.04
完整监控扫描4-6$0.08-0.12