Skip to main content
Glama
Br0ski777

twitter-scraper

by Br0ski777

Twitter Scraper API

MCP Server x402 License: MIT

抓取 Twitter/X 个人资料、推文和搜索结果。无需 API 密钥。返回结构化 JSON,包含个人简介、数据统计、推文、互动指标。面向 AI 智能体的社交情报层。通过 x402 按次付费(使用 Base L2 上的 USDC)——无需 API 密钥、无需注册、无速率限制。

作为 klymax402 平台的一部分——面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,基于 Base 的 USDC。

快速开始 -- MCP

添加到 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等)中:

{
  "mcpServers": {
    "twitter-scraper": {
      "url": "https://twitter-scraper.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: Pylon MCP Server

快速开始 -- HTTP (x402)

curl -X POST "https://twitter-scraper.api.klymax402.com/api/profile" \
  -H "Content-Type: application/json" \
  -d '{"username":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetchx402-agent-tools、ATXP)都会自动完成 402 -> 签名 -> 重试 的循环。

工具

工具

方法

路径

价格

描述

twitter_scrape_profile

POST

/api/profile

$0.012

抓取一个 Twitter/X 用户资料——bio、统计、头像、banner、置顶推文、认证状态。

twitter_search_tweets

POST

/api/search

$0.012

在 Twitter/X 搜索与查询匹配的推文——最多返回 20 条结果,包含文本、互动量、作者、时间戳。

twitter_get_user_tweets

POST

/api/tweets

$0.012

获取某个 Twitter/X 用户的最近推文——返回其最新推文及互动指标。

twitter_scrape_profile

你需要按用户名或 URL 查找一个有 Twitter/X 用户资料时使用此工具。返回结构化 profile 数据,包括 bio、关注者/关注数、推文数、认证状态和近期动态。

参数

名称

类型

必填

描述

username

string

不带 @ 的 Twitter/X 用户名(如 elonmusk')或完整 URL(如 https://x.com/elonmusk')

**返回 **

  • username -- @handler

  • displayName -- 全名

  • bio -- 资料描述文本

  • followers -- 关注者数目

  • following -- 正在关注的数目

  • tweetCount -- 推文总数

  • verified -- 蓝勾认证状态

  • createdAt -- 账号创建日期

  • avatarUrl -- 头像图片 URL

  • bannerUrl -- 封面图片 URL

  • location -- 填写的所在地

  • website -- 关联的链接

  • pinnedTweet -- 置顶推文的文本(如果有)

示例响应:

{ "username": "elonmusk", "displayName": "Elon Musk", "bio": "...", "followers": 195000000, "following": 850, "tweetCount": 45000, "verified": true, "createdAt": "2009-06-02" }

适用场景:社媒尽调、influencer 调研、竞争对手监控,或者在采信某账号内容前核实其真实性。

不适用: 推文搜索(使用 twitter_search_tweets)、信任/安全评分(用 trust_score_evaluate)、通过社交资料查邮箱(用 email_find_by_name)。

twitter_search_tweets

当你想查找关于某个话题、品牌、活动或关键词的推文时使用此工具。返回与 query 匹配的最多 20 条最近推文,比较全文、互动指标、作者信息和时间戳。

参数

名称

类型

必填

描述

query

string

搜索 query——支持关键词、短语、hashtag(#) 、提及(@)和 from:usersince:2026-01-01 等运算符

count

number

可选

返回的推文条数(1-20,默认 10)

返回值

  • query -- 使用的搜索关键词

  • results -- 推文对象数组

  • resultCount -- 找到的推文数量

示例响应:

{ "query": "x402 protocol", "resultCount": 15, "results": [{ "id": "1234567890", "text": "x402 is the future of agent payments...", "author": { "username": "web3dev", "displayName": "Web3 Dev" }, "likes": 42, "retweets": 12, "replies": 5, "views": 1200, "createdAt": "2026-04-13T09:30:00Z" }] }

适用场景: 市场情感分析、品牌监控、竞品追踪、新闻发现、趋势检测,或者实时了解人们对你关注的某话题的看法。

不适用: 个人资料数据(用 twitter_scrape_profile)、文本情感分析(用 text_analyze_sentiment)、alpha 类别 use crypto_get_news

twitter_get_user_tweets

当你需要查看某个特定 Twitter/X 用户近期发布了什么内容时使用此工具。返回该用户的最新推文,包括全文、互动指标和时间戳。

参数

名称

类型

必填

描述

username

string

不带 @ 的 Twitter/X 用户名(比如 `VitalikButerin')

count

number

可选

返回的推文条数(1-20,默认 10)

返回

  • username -- 被查询的 @ 用户名

  • tweets -- 推文对象数组,包含 createdAtlikesretweetsrepliesviewsisRetweetisReply 字段

  • tweetCount -- 返回的推文条数

示例响应:

{ "username": "VitalikButerin", "tweetCount": 10, "tweets": [{ "id": "...", "text": "Excited about the new EIP proposal...", "likes": 5200, "retweets": 890, "views": 250000, "createdAt": "2026-04-12T14:00:00Z", "isRetweet": false }] }

适用场景: 监测特定账号、追踪影响者动态、分析发布规律、或收集思想领袖的内容。

不适用: 个人资料信息(用 twitter_scrape_profile)、主题搜索(用 twitter_search_tweets)、跨平台社交资料查询(用 social_lookup_profile)。

智能体提示示例

  • "look up a Twitter/X user profile by username or URL"

  • find tweets about a topic, brand, event or keyword

  • see what someone specific posts recently

支付

  • 协议: "x402 - - HTTP 原生按调付费,无需注册,无 API 密钥

  • 网络: Base L2 (eip155:8453)

  • 资产: USDC

  • 处理方: Coinbase CDP(主),PayAI(备用)

  • 也可通过 ATXP 使用(OAuth 封装 x402 / RFC 9728 受保护资源元数据)

属于 klymax402 的一部分

100 个面向 AI 智能体的 x402 微支付 API——一个钱包,Base 上 USDC,零注册。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/twitter-scraper-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server