social-intelligence

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Social 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
https://enrichx402.com/api/{provider}/{action}
. You MUST either:
  1. Copy exact URLs from the Quick Reference table below, OR
  2. Run
    x402.discover_api_endpoints(url="https://enrichx402.com")
    to get the correct paths
Guessing paths will fail with 405 errors (wrong path) or 404 errors (missing
/api/
prefix).
Access X/Twitter (via Grok) and Reddit through x402-protected endpoints.
注意——调用任何API前请仔细阅读。 enrichx402.com的接口并非各平台的原生API。所有路径均采用
https://enrichx402.com/api/{provider}/{action}
格式。你必须:
  1. 复制下方快速参考表中的准确URL,或者
  2. 运行
    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

快速参考

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

Reddit

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:
  • 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中搜索帖子:
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

标准流程

  1. (Optional) Check balance:
    x402.get_wallet_info
  2. Discover endpoints (required before first fetch):
    x402.discover_api_endpoints(url="https://enrichx402.com")
  3. Check endpoint schema:
    x402.check_endpoint_schema(url="...")
    to verify parameters and pricing
  4. Call endpoint with
    x402.fetch
    using exact URL from discovery or Quick Reference table above
  5. Parse and present results
  1. (可选)查看余额:
    x402.get_wallet_info
  2. 发现接口(首次调用前必填)
    x402.discover_api_endpoints(url="https://enrichx402.com")
  3. 检查接口 schema:
    x402.check_endpoint_schema(url="...")
    验证参数和定价
  4. 使用从发现功能或上方快速参考表中获取的准确URL,通过
    x402.fetch
    调用接口
  5. 解析并展示结果

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帖子字段

  • 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