Skip to main content
The TwexAPI Paperclip plugin adds six read-only Twitter/X tools to Paperclip agents. It wraps documented TwexAPI REST routes with typed tool schemas, secret-backed authentication, and predictable JSON results. Use this plugin when a Paperclip agent needs tweet search, profile lookup, user search, timeline reads, or global trending tweets without writing raw HTTP calls.

Tools

This plugin does not export followers or publish posts. Use the REST API, CLI, or MCP Server for those tasks.

Prerequisites

  • Node.js 18 or newer
  • Paperclip CLI (paperclipai)
  • A TwexAPI API key from the dashboard
  • A Paperclip secret reference for the API key

Install

Pin the current release when you need reproducible installs:
npm: @twexapi-dev/paperclip-plugin-x-api-scraper Source: twexapi-dev/paperclip-plugin-x-api-scraper

Configure

Create an API key in the TwexAPI dashboard. Store it in a Paperclip secret and reference it from the plugin config. Paperclip resolves the API key at call time and sends Authorization: Bearer. Example plugin config shape:
Never commit API keys to plugin config files checked into source control.

Example agent tasks

Search tweets

Ask the agent to search recent posts about a topic. The plugin calls POST /twitter/advanced_search/page through twexapi.search_tweets. Suggested prompt:

Read a profile and timeline

Handoff checklist

When Paperclip agents hand results to downstream systems, preserve stable identifiers. See Agent MCP Handoff when mixing Paperclip tools with MCP-based agents in the same workflow.

Error handling

Develop locally

pnpm check runs type checks, tests, and the build.