Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 2.52 KB

File metadata and controls

60 lines (48 loc) · 2.52 KB
title TwexAPI X (Twitter) Scraper API
sidebarTitle Home
description Search tweets, read profiles, paginate followers, and call TwexAPI REST, SDKs, MCP, CLI, Terraform, n8n, Prefect, Haystack, Paperclip, or Apify with an API key. Not affiliated with X Corp.

TwexAPI is an X (Twitter) Scraper API and X API alternative. Search tweets, read profiles, and paginate followers with one API key.

You need an X_API_SCRAPER_KEY from the dashboard. You do not need an official X developer account for supported public reads.

First request

export X_API_SCRAPER_KEY='replace_me'

curl --request POST 'https://api.twexapi.io/twitter/advanced_search/page' \
  --header "Authorization: Bearer ${X_API_SCRAPER_KEY}" \
  --header 'content-type: application/json' \
  --data '{
    "searchTerms": ["from:elonmusk"],
    "sortBy": "Latest",
    "next_cursor": ""
  }'

Pass next_cursor from the previous page unchanged to fetch the next page.

Create a key and confirm authentication with `GET /balance`. `POST /twitter/advanced_search/page` with `searchTerms` and `sortBy`. Hosted MCP at `https://api.twexapi.io/mcp` with `explore` and `twexapi_request`. TypeScript, Python, Go, Java, Kotlin, C#, Ruby, PHP, CLI, Terraform, n8n, Prefect, Haystack, and Paperclip.

What the REST API covers

The OpenAPI contract used by the SDKs currently documents 66 operations. Public docs focus on API-key public reads:

Area Typical routes
Search Advanced search, hashtags, cashtags
Users Profile about, user search, batch lookup
Followers v3 followers, following, verified followers
Timelines User timeline pages, tweets and replies
Tweets Detail, lookup, thread, similar tweets, replies, quotes
Trending Countries, topics, content tags, trending tweets
Communities and lists Search, members, tweets, subscribers
Account GET /balance

Deleted, protected, restricted, or unavailable content may stay inaccessible. TwexAPI omits unavailable optional fields. It never invents missing content.

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