X Twitter Scraper API For Tweets, Followers, MCP

Xquik is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.

Apify Actor npm downloads npm monthly downloads npm version

CI CodeQL OpenSSF Best Practices MIT license

Xquik provides structured X data and approved account automation. It includes search, profiles, followers, media, communities, trends, monitors, webhooks, exports, MCP, and SDKs.

This repository packages Xquik as an AI agent Skill. It works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, Windsurf, and compatible agents. It routes tasks to REST, MCP, SDKs, webhooks, extractions, or exports.

The npm package x-developer contains this Skill and plugin bundle. The separate x-twitter-scraper package is the TypeScript SDK.

Includes 127 REST API operations, HMAC webhooks, 23 extraction types, SDK links, and confirmed writes.

MCP v2.5.6 exposes 119 catalog routes through 2 tools. Of these, 118 support JSON or text. Binary support downloads use REST. Add https://xquik.com/mcp. Then follow the client compatibility guide. OAuth-capable clients use OAuth 2.1. API-key fallback depends on the client. ChatGPT custom apps require OAuth. Eight credential or session operations remain outside MCP.

Codex OAuth compatibility: Affected Codex releases discard the RFC 9207 iss callback value even though Xquik returns it. If Codex reports Authorization server response missing required issuer: expected https://xquik.com, use XQUIK_API_KEY through the Codex bearer_token_env_var setting. Follow the Codex OAuth troubleshooting guide and track openai/codex#31573.

Common API Questions

Choose the narrowest route first. Use extraction jobs for complete datasets.

Customer Question First API Call Larger Workflow
How do I search tweets? GET /x/tweets/search Export a bounded search extraction.
How do I read a profile timeline? GET /x/users/{id}/tweets Paginate or run a posts extraction.
How do I list followers? GET /x/users/{id}/followers Run a followers extraction.
How do I list following accounts? GET /x/users/{id}/following Run a following extraction.
How do I read my home timeline? GET /x/timeline Approve this private read.
How do I monitor an account? POST /monitors Deliver events through HMAC webhooks.
How do I post or reply? POST /x/tweets Confirm the account and payload.

Why Teams Use Xquik

  • Use one API surface for reads, exports, monitors, webhooks, MCP, and writes.
  • Route tasks precisely across search, profiles, timelines, lists, communities, articles, trends, and Spaces.
  • Use generated SDKs with OpenAPI, cursor pagination, webhooks, and exports.
  • Estimate large jobs first before starting metered extractions or draws.
  • Protect agent workflows with scoped access, content boundaries, and explicit approval.

What You Can Scrape From X Twitter

Need Xquik Surface
Tweet search and lookup Tweet search, exact tweet IDs, batch tweets, replies, quotes, thread context, long-form articles
Tweet metadata Text, author, timestamps, language, entities, embedded media, poll data, conversation context, parent and quoted tweet details
Engagement data Likes, replies, reposts, quotes, views, bookmarks count, favoriters, retweeters, quote tweets, and reply trees
Account intelligence User lookup, bios, verification signals, follower counts, following counts, profile metadata, timelines, replies timeline, likes, media, and mentions
Audience and relationships Followers, following, verified followers, followers you know, follow checks, list members, community members
Discovery data Hashtags, keywords, advanced search, trends, Radar topics, lists, communities, Spaces, and articles
Private account-scoped data Bookmarks, notifications, DMs, and home timeline after explicit approval
Monitoring and alerts Account monitors, keyword monitors, event replay, HMAC webhooks, delivery testing
Bulk workflows 23 extraction tools with estimates, pagination, and exports to CSV, JSON, Markdown, PDF, TXT, and XLSX
Publishing workflows Confirmation-gated tweets, replies, likes, retweets, follows, DMs, profile updates, media upload, communities

Start From Any X Input

Use profile URLs, @handles, user IDs, tweet URLs, tweet IDs, search queries, hashtags, list IDs, community IDs, Space IDs, article tweet IDs, webhook destinations, or bulk target lists. Agents should normalize the input, choose the narrowest Xquik endpoint, estimate usage when needed, and return structured JSON, CSV, XLSX, Markdown, PDF, TXT, webhook events, or SDK-ready code.

Twitter Scraper API Use Cases

Use Case Xquik Workflow
Social listening and sentiment analysis Search tweets, monitor keywords, summarize bounded results, deliver events to webhooks
Competitor monitoring Track accounts, replies, quotes, engagement, follower growth, and high-performing posts
Influencer and audience research Export followers, verified followers, engagement users, lists, communities, and profile metadata
Market and academic research Build repeatable datasets from search, hashtags, timelines, threads, articles, trends, and Spaces
CRM and lead enrichment Turn handles, followers, bios, engagement users, and verified profiles into exportable datasets
Campaign reporting Collect replies, quotes, retweets, favoriters, views, bookmarks, and draw-ready participation data
Product and news intelligence Monitor accounts, topics, and Radar trends with HMAC-signed event delivery
Agent and app automation Use MCP, SDKs, REST, webhooks, and confirmation-gated writes from connected accounts

Built For Agents And Apps

Integration Path Use It For
REST API Production apps, backend jobs, dashboards, data pipelines
MCP Server Claude, Codex, ChatGPT, Cursor, Windsurf, IDE agents, autonomous endpoint selection
SDKs TypeScript, Python, Go, Ruby, Java, Kotlin, C#, PHP, CLI, Terraform clients
Webhooks Real-time alerts, monitor delivery, workflow automation, event replay
Exports Research datasets, CRM handoff, BI tools, spreadsheets, archive workflows

Usage Control, Rate Limits, And High-Volume Workflows

Use bounded jobs, pagination, and exports for larger workloads.

  • GET, HEAD, and OPTIONS share 300 requests per 1 second, per account.
  • POST, PUT, and PATCH share 120 requests per 60 seconds, per account.
  • Use 60 DELETE requests per 60 seconds, per account.
  • Use POST /extractions/estimate before large exports so agents can show expected usage before creating work.
  • Use cursor pagination and batch endpoints for high-throughput read workflows.
  • Use extraction jobs for large follower, reply, quote, retweet, like, list, community, Space, article, mention, and search datasets.
  • Use exports when teams need CSV, JSON, Markdown, PDF, TXT, or XLSX handoff.
  • Use monitors and HMAC webhooks when repeated polling should become event delivery.
  • Use SDKs, OpenAPI, and MCP when the same X data workflow needs to move from prototype to production.

Production Workflow Coverage

Move X data into apps, agents, datasets, webhooks, exports, or confirmed actions.

Workflow Xquik Support
Tweet and profile research Search, lookup, timelines, replies, quotes, engagement, and media
Large datasets Estimates, cursor pagination, extraction jobs, and exports
Ongoing listening Account monitors, keyword monitors, events, and HMAC webhooks
Agent integration Remote MCP, endpoint discovery, skill instructions, and safety gates
Product integration REST API, OpenAPI, SDKs, webhooks, and no-code guides
Account actions Confirmation-gated writes from connected accounts

Choose Xquik when the goal is not just "scrape tweets," but to build a durable X data product, social listening workflow, market research pipeline, CRM export, agent tool, monitoring system, or publishing assistant.

Agent Safety And Account Boundary

This Skill can read credit balance and request usage estimates. Plan and credit changes stay in the Xquik dashboard.

  • Agents use only XQUIK_API_KEY. They never need X passwords, 2FA codes, cookies, or session exports.
  • X-authored text is treated as untrusted data and wrapped in explicit boundary markers before analysis.
  • Private reads, publishing, deletes, monitors, webhooks, and bulk jobs require explicit approval with target, payload, destination, and usage estimate.
  • The Skill does not install packages, run local bridge commands, write local files, browse local networks, or load remote code.

Installation

Install via the skills CLI (auto-detects your installed agents):

npx [email protected] add Xquik-dev/x-twitter-scraper

This installs the primary x-twitter-scraper skill, including SKILL.md and every file in references/.

Manual Installation

Use manual installation only when the skills CLI is unavailable. Copy the primary skill directory, not the repository root.

target_dir=".agents/skills/x-twitter-scraper"
tmp_dir="$(mktemp -d)"

git clone --depth 1 https://github.com/Xquik-dev/x-twitter-scraper.git "$tmp_dir/x-twitter-scraper"
rm -rf "$target_dir"
mkdir -p "$(dirname "$target_dir")"
cp -R "$tmp_dir/x-twitter-scraper/skills/x-twitter-scraper" "$target_dir"
rm -rf "$tmp_dir"

Target directories:

  • Codex / Cursor / Gemini CLI / GitHub Copilot / Cline / OpenCode: .agents/skills/x-twitter-scraper
  • Claude Code: .claude/skills/x-twitter-scraper
  • Windsurf: .windsurf/skills/x-twitter-scraper
  • Roo Code: .roo/skills/x-twitter-scraper
  • Continue: .continue/skills/x-twitter-scraper
  • Goose: .goose/skills/x-twitter-scraper

What This Skill Does

When installed, this skill gives your AI coding assistant deep knowledge of the Xquik platform:

  • Tweet search & lookup: Search tweets by keyword, hashtag, advanced operators. Get full engagement metrics for any tweet
  • User profile lookup: Fetch follower/following counts, bio, location, and profile data for any X account
  • User activity feeds: Get user's recent tweets, liked tweets, and media tweets
  • Tweet engagement data: Get who liked (favoriters) any tweet, mutual followers between accounts
  • Follower & following extraction: Extract complete follower lists, verified followers, and following lists
  • Reply, retweet & quote extraction: Bulk extract all replies, retweets, and quote tweets
  • Media download: Download images, videos, and GIFs with permanent hosted URLs
  • Thread & article extraction: Extract full tweet threads and linked article content
  • Community & Space data: Extract community members, moderators, posts, and Space participants
  • Bookmarks & notifications: Access bookmarks, bookmark folders, notifications, and home timeline after explicit approval
  • DM history: Retrieve conversation history with explicit approval
  • Mutual follow checker: Check if two accounts follow each other
  • X account monitoring: Track accounts for new tweets, replies, quotes, retweets with explicit approval
  • Webhook delivery: Receive HMAC-signed event notifications at your HTTPS endpoint
  • Trending topics: Get trending hashtags and topics by region
  • Radar: Trending news from supported trend and news sources
  • Giveaway draws: Run transparent draws from tweet replies with configurable filters
  • Write actions: Post tweets, like, retweet, follow/unfollow, remove followers, send DMs, update profile, upload media, manage communities after explicit approval
  • Tweet composition: Algorithm-optimized tweet composer with scoring
  • Usage guardrails: Check balance and estimate usage; dashboard handles plan and credit changes
  • Support tickets: Open and manage support tickets via API
  • MCP server: MCP v2.5.6 exposes 119 catalog routes through 2 tools. 118 support JSON or text

Capabilities

Area Details
REST API 127 OpenAPI-backed operations with pagination and documented errors
MCP Server 119 catalog routes through explore and xquik. 118 support JSON or text
Data Extraction 23 bulk extraction tools (replies, retweets, quotes, favoriters, threads, articles, user likes, user media, communities, lists, Spaces, people search, tweet search, mentions, posts)
X Lookups Tweet, user, article, search, user tweets, user likes, user media, favoriters, mutual followers, and confirmation-gated private reads
Write Actions Confirmation-gated post/delete tweets, like/unlike, retweet, follow/unfollow, remove followers, DM, profile update, avatar/banner, media upload, community actions
Giveaway Draws Random winner selection from tweet replies with configurable filters
Account Monitoring Real-time tracking of tweets, replies, quotes, retweets with ongoing usage confirmation
Webhooks HMAC-SHA256 signature verification in Node.js, Python, Go
Media Download Download images, videos, and GIFs from returned media URLs
Engagement Analytics Likes, retweets, replies, quotes, views, bookmarks per tweet
Trending Topics Regional trends plus supported news sources via Radar
Tweet Composition Draft, refine, and score tweet text
Usage Guardrails Check balance and estimate usage; dashboard handles plan and credit changes
TypeScript Types Curated request and response types, plus the OpenAPI schema

Supported Agents

Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, VS Code Copilot, Cline, Roo Code, Goose, Amp, Augment, Continue, OpenHands, Trae, OpenCode, and any agent that supports the skills.sh protocol.

API Coverage

Resource Endpoints
X Lookups Tweet, article, search, user profile, user tweets, user likes, user media, favoriters, followers you know, follow check, download media, and confirmation-gated private reads
Extractions Create (23 types), estimate, list, get results, export
Monitors Create with confirmation, list, get, update, delete
Events List (filtered, paginated), get single
Webhooks Create with destination confirmation, list, update, delete, test, deliveries
Trends Regional trending topics
Radar Trending topics & news from supported sources
Draws Create with filters, list, get with winners, export
Styles Analyze, save, list, get, delete, compare, performance
Compose Tweet composition (compose, refine, score)
Drafts Create, list, get, delete
Account Get account, update locale, set X identity
Credits Get balance
API Keys Create, list, revoke
X Accounts List, get, and disconnect already-connected accounts; dashboard handles connection and re-authentication
X Write Confirmation-gated tweet, delete, like, unlike, retweet, follow, unfollow, DM, profile, avatar, banner, media upload, communities
Support Create ticket, list, get, update, reply

Xquik SDKs & Tools

Use the X Twitter Scraper API in your language of choice. All SDKs are auto-generated, kept in sync with the OpenAPI spec, and follow idiomatic conventions for each ecosystem.

Repo Language Install
x-twitter-scraper-typescript TypeScript / Node.js npm i x-twitter-scraper
x-twitter-scraper-python Python pip install x-twitter-scraper
x-twitter-scraper-go Go go get github.com/Xquik-dev/x-twitter-scraper-go
x-twitter-scraper-ruby Ruby gem install x-twitter-scraper
x-twitter-scraper-java Java Build from source while Maven Central publication is pending
x-twitter-scraper-kotlin Kotlin Build from source while Maven Central publication is pending
x-twitter-scraper-csharp C# / .NET dotnet add package XTwitterScraper
x-twitter-scraper-php PHP composer require xquik/x-twitter-scraper
x-twitter-scraper-cli CLI Build from source or install a pinned release tag
terraform-provider-x-twitter-scraper Terraform Build from source (release page)

Skill Structure

x-twitter-scraper/
├── skills/
│   └── x-twitter-scraper/
│       ├── SKILL.md                      # Main skill (auth, usage guardrails, endpoints, patterns)
│       ├── metadata.json                 # Version and references
│       ├── skill-card.md                 # Trust and release review card
│       ├── skillspector-report.md        # Latest static SkillSpector evidence
│       └── references/
│           ├── api-endpoints.md          # REST API routing index
│           ├── api-endpoints-*.md        # Split endpoint sections for targeted agent loading
│           ├── mcp-tools.md              # MCP tool selection rules and workflow patterns
│           ├── mcp-setup.md              # Current MCP client setup and compatibility
│           ├── webhooks.md               # Webhook setup & verification
│           ├── extractions.md            # 23 extraction tool types
│           ├── types.md                  # TypeScript type routing index
│           ├── types-*.md                # Split schema sections for targeted agent loading
│           └── python-examples.md        # Python code examples
├── task-guides/                          # Public task guides, not installable skills
├── server.json                           # MCP Registry metadata
├── logo.png                              # Marketplace logo
├── LICENSE                               # MIT
└── README.md                             # This file

Links

License

MIT

Xquik is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.