TwexAPI Logo
TwexAPI
DocsPricingReferralsXTools
Integrations

Twitter/X API integrations for AI agents and CLI

Use Skills if you want AI to search tweets, inspect users, and preview requests for you. Use the CLI if you want direct terminal, scripting, or automation workflows.

TwexAPI integrations quick answer

TwexAPI integrations let developers use the same Twitter/X API from AI agents or from a terminal. Install the Skill with `npx skills add twexapi-dev/x-api-scraper-cli` for AI tools such as Claude Code or Codex, or install the CLI with `npm install -g @twexapi-dev/x-api-scraper-cli` and run `x-api-scraper --help` for shell scripts, debugging, and automation. Both paths use the TwexAPI API platform for tweet search, user inspection, request previews, and production workflows documented at docs.twexapi.io.

Skills

Install it in your AI tool and let the agent call TwitterXAPI for you.

CLI

Run x-api-scraper directly in your terminal for scripts, debugging, and automation.

Integrations

Let AI call TwitterXAPI, or run it in your terminal

Use Skills if you want AI to search tweets, inspect users, and preview requests for you. Use the CLI if you want direct terminal, scripting, or automation workflows.

For AI agents
Let AI call it for you

Best for Claude Code, Codex, and other AI tools. Once installed, your agent can search tweets, inspect users, and preview requests.

For terminal
Run it directly in your terminal

Best for shell workflows, scripting, and debugging. Install once and run x-api-scraper directly.

Available now
Use in AI tools with SkillsRun directly in your terminalSame TwitterXAPI, two ways to use it
quickstart
AI AGENT
Skills

Install inside an AI tool that supports Skills, then let the agent call twexapi for you.

npx skills add twexapi-dev/x-api-scraper-cli

You do not need to learn everything first. Pick the workflow that fits you: AI-assisted or terminal-first.

Frequently Asked Questions

TwexAPI Integrations

TwexAPI integrations let developers use the same Twitter/X API from AI agents or from a terminal. Install the Skill with `npx skills add twexapi-dev/x-api-scraper-cli` for AI tools such as Claude Code or Codex, or install the CLI with `npm install -g @twexapi-dev/x-api-scraper-cli` and run `x-api-scraper --help` for shell scripts, debugging, and automation. Both paths use the TwexAPI API platform for tweet search, user inspection, request previews, and production workflows documented at docs.twexapi.io.

Integration Methods

  • TwexAPI Skills: npx skills add twexapi-dev/x-api-scraper-cli. Install TwexAPI into AI tools so an agent can search tweets, inspect users, and preview API requests during a coding or research workflow.
  • x-api-scraper CLI: npm install -g @twexapi-dev/x-api-scraper-cli. Install the command-line interface for direct terminal usage, local debugging, scripted requests, and repeatable automation jobs.

Integrations FAQ

What integrations does TwexAPI support?
TwexAPI currently provides two developer-focused integration paths: Skills and CLI. Skills are for AI agents in tools such as Claude Code or Codex; install with `npx skills add twexapi-dev/x-api-scraper-cli` and let the agent call TwexAPI for tweet search, user lookup, or request previews. The CLI is for direct terminal usage; install with `npm install -g @twexapi-dev/x-api-scraper-cli` and run `x-api-scraper --help`. Both routes point developers toward the same TwexAPI API platform and documentation at docs.twexapi.io.
When should I use the TwexAPI Skill instead of the CLI?
Use the TwexAPI Skill when you want an AI agent to choose and run Twitter/X data tasks inside your workflow. It is useful when you are asking an assistant to inspect a profile, search tweets, compare examples, or draft API calls while it is already working in your codebase. The Skill reduces manual command selection because the agent can use the TwexAPI tooling as part of the conversation. For repeatable scripts, CI tasks, or manual shell debugging, the CLI is usually the better fit.
When should I use the x-api-scraper CLI?
Use the x-api-scraper CLI when you need direct terminal control, shell scripting, local debugging, cron jobs, or automation that should run without an AI assistant. Install it with `npm install -g @twexapi-dev/x-api-scraper-cli`, then run `x-api-scraper --help` to view commands. The CLI is a practical bridge between quick manual checks and production API usage: you can prototype a request in the terminal, then move the same workflow into application code using the REST API documented at docs.twexapi.io.
Do TwexAPI integrations require a separate product from the REST API?
No. Skills and CLI are access paths for the same TwexAPI developer platform. The production API, dashboard, credits, and documentation remain centered on TwexAPI and docs.twexapi.io. Integrations simply make the API easier to use in different working styles: AI-assisted workflows for Skills, and terminal-first workflows for CLI. For production scale, create a TwexAPI account, get an API key, and follow the endpoint documentation.

TwexAPI Integrations

TwexAPI Integrations 让开发者用两种方式调用同一套 Twitter/X API:在 Claude Code、Codex 等 AI 工具里用 `npx skills add twexapi-dev/x-api-scraper-cli` 安装 Skill,让 agent 帮你查推文、查用户、预览请求;或用 `npm install -g @twexapi-dev/x-api-scraper-cli` 安装 CLI,在终端、脚本和自动化任务中直接运行 `x-api-scraper --help`。两种入口都连接 TwexAPI 的生产 API 能力,文档见 docs.twexapi.io。

Integration Methods

  • TwexAPI Skills: npx skills add twexapi-dev/x-api-scraper-cli. Install TwexAPI into AI tools so an agent can search tweets, inspect users, and preview API requests during a coding or research workflow.
  • x-api-scraper CLI: npm install -g @twexapi-dev/x-api-scraper-cli. Install the command-line interface for direct terminal usage, local debugging, scripted requests, and repeatable automation jobs.

Integrations FAQ

TwexAPI 支持哪些接入方式?
TwexAPI 目前提供两种面向开发者的接入方式:Skills 和 CLI。Skills 适合 Claude Code、Codex 等 AI agent 工具,使用 `npx skills add twexapi-dev/x-api-scraper-cli` 安装后,可让 agent 帮你做推文搜索、用户查询和请求预览。CLI 适合终端使用,执行 `npm install -g @twexapi-dev/x-api-scraper-cli` 后运行 `x-api-scraper --help`。两种方式都指向同一套 TwexAPI API 能力与 docs.twexapi.io 文档。
什么时候应该用 TwexAPI Skill,而不是 CLI?
如果你希望 AI agent 在对话或代码工作流中主动选择并运行 Twitter/X 数据任务,就用 TwexAPI Skill。比如让助手查用户资料、搜索推文、对比样例、生成或预览 API 请求时,Skill 更自然,因为 agent 可以直接把 TwexAPI 工具纳入当前任务。若是固定脚本、CI 任务或手动终端调试,通常 CLI 更合适。
什么时候应该用 x-api-scraper CLI?
当你需要直接在终端控制、写 shell 脚本、本地调试、跑 cron 或不依赖 AI 助手的自动化任务时,就用 x-api-scraper CLI。执行 `npm install -g @twexapi-dev/x-api-scraper-cli` 安装后,用 `x-api-scraper --help` 查看命令。CLI 适合从手动验证过渡到生产 API:先在终端验证请求,再按 docs.twexapi.io 把同样流程迁移到应用代码中。
这些集成方式是否和 REST API 是不同产品?
不是。Skills 和 CLI 是同一套 TwexAPI 开发者平台的不同入口。生产 API、控制台、Credits 和文档仍以 TwexAPI 与 docs.twexapi.io 为中心。Integrations 只是让不同工作方式更顺手:Skills 面向 AI 辅助流程,CLI 面向终端优先流程。生产使用仍建议注册 TwexAPI、获取 API Key,并按端点文档接入。

TwexAPI Integrations

TwexAPI Integrations は、同じ Twitter/X API を AI agent またはターミナルから使うための入口です。Claude Code や Codex などの AI ツールでは `npx skills add twexapi-dev/x-api-scraper-cli` で Skill を導入し、CLI では `npm install -g @twexapi-dev/x-api-scraper-cli` と `x-api-scraper --help` を使います。ツイート検索、ユーザー確認、リクエストのプレビュー、自動化ワークフローは docs.twexapi.io の API と同じ基盤です。

Integration Methods

  • TwexAPI Skills: npx skills add twexapi-dev/x-api-scraper-cli. Install TwexAPI into AI tools so an agent can search tweets, inspect users, and preview API requests during a coding or research workflow.
  • x-api-scraper CLI: npm install -g @twexapi-dev/x-api-scraper-cli. Install the command-line interface for direct terminal usage, local debugging, scripted requests, and repeatable automation jobs.

Integrations FAQ

TwexAPI はどの連携方法に対応していますか?
TwexAPI は開発者向けに Skills と CLI の 2 つの入口を提供します。Skills は Claude Code や Codex などの AI agent 向けで、`npx skills add twexapi-dev/x-api-scraper-cli` で導入できます。CLI はターミナル向けで、`npm install -g @twexapi-dev/x-api-scraper-cli` の後に `x-api-scraper --help` を実行します。どちらも docs.twexapi.io の同じ API 基盤を利用します。
CLI ではなく TwexAPI Skill を使うべき場面は?
AI agent に Twitter/X データ作業を会話やコード作業の中で実行させたい場合は Skill が向いています。プロフィール確認、ツイート検索、例の比較、API 呼び出しの下書きなどを agent に任せる場合に自然です。反復スクリプト、CI、手動デバッグでは CLI の方が適しています。
x-api-scraper CLI はいつ使うべきですか?
直接ターミナルで操作したい場合、シェルスクリプト、ローカルデバッグ、cron、自動化など AI assistant なしで実行する用途では CLI が適しています。`npm install -g @twexapi-dev/x-api-scraper-cli` でインストールし、`x-api-scraper --help` でコマンドを確認します。REST API への移行前の検証にも便利です。
これらの連携は REST API と別製品ですか?
別製品ではありません。Skills と CLI は同じ TwexAPI 開発者プラットフォームへの入口です。本番 API、ダッシュボード、Credits、ドキュメントは TwexAPI と docs.twexapi.io が中心です。Skills は AI 補助ワークフロー、CLI はターミナル中心のワークフローを使いやすくします。