← Back to marketplace

Twit.sh - Plug AI agents into X

external

Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402.

by Twit24 endpoints100% uptime372ms avg

Price

from $0.0025

up to $0.0100 per request

Network

base

Category

ai

On-chain txns

75

Uptime

100%

Avg latency

372ms

Checks

160

Status

Healthy

Base URL

https://x402.twit.sh

Endpoints (24)

Discovered from on-chain x402 payment activity. Prices shown are per-call in USDC.

POST/articles/by/id
base$0.0100

Retrieve the full content of an X Article by the tweet ID of the post that hosts it. Returns article title, preview text, cover image, publish date, and full article_content as Markdown (headings, bold, italic, lists, images). Not available in the official X API. Query param: id (string, required) - numeric tweet ID of the article post, e.g. GET /articles/by/id?id=2010751592346030461.

POST/communities/by/id
base$0.0025

Retrieve full details of a specific X Community by its numeric ID. Returns name, description, member count, moderator count, join policy, topic, rules, banner image, and admin/creator profiles. Query param: id (string, required) - numeric community ID, e.g. GET /communities/by/id?id=1693573582226665701. Returns X v2 API-compatible JSON with additional fields.

POST/communities/members
base$0.0100

Get a paginated list of members belonging to a specific X Community. Returns full user profiles with community role (Admin, Moderator, Member). This endpoint has no equivalent in the official X API. Query params: id (string, required) - numeric community ID; next_token (string, optional) - pagination cursor, e.g. GET /communities/members?id=1693573582226665701. Returns X v2 API-compatible JSON.

POST/communities/posts
base$0.0100

Get the latest posts from a specific X Community. Returns paginated tweets with author profiles. This endpoint has no equivalent in the official X API. Query params: id (string, required) - numeric community ID; next_token (string, optional) - pagination cursor, e.g. GET /communities/posts?id=1693573582226665701. Returns X v2 API-compatible JSON.

POST/lists/by/id
base$0.0025

Retrieve details of a specific Twitter/X List by its numeric ID. Returns name, description, mode, member count, subscriber count, creation date, banner image, and owner profile. Query param: id (string, required) - numeric List ID, e.g. GET /lists/by/id?id=84839422. Returns X v2 API-compatible JSON.

POST/lists/followers
base$0.0100

Retrieves a list of Users who follow a specific Twitter/X List by its ID. Returns up to 20 user profiles per page with pagination support. Query params: id (string, required) - numeric List ID; next_token (string, optional) - pagination cursor, e.g. GET /lists/followers?id=84839422. Returns X v2 API-compatible JSON.

POST/lists/members
base$0.0100

Get the members of a Twitter/X List by its numeric List ID. Returns up to 100 user profiles per page with pagination support. Query params: id (string, required) - numeric List ID; next_token (string, optional) - pagination cursor, e.g. GET /lists/members?id=84839422. Returns X v2 API-compatible JSON.

POST/lists/tweets
base$0.0100

Get the latest tweets from a Twitter/X List by its numeric List ID. Returns ~100 tweets per page with pagination support. Query params: id (string, required) - numeric List ID; next_token (string, optional) - pagination cursor, e.g. GET /lists/tweets?id=84839422. Returns X v2 API-compatible JSON.

POST/tweets
base$0.0100

Bulk look up multiple Twitter/X tweets by their numeric tweet IDs in a single request. Each tweet includes full text, author profile, and engagement metrics. Query param: ids (string, required) - comma-separated numeric tweet IDs, max 50, e.g. GET /tweets?ids=1110302988,1234567890. Returns X v2 API-compatible JSON.

POST/tweets/bookmark
base$0.0025

Adds a Post to the authenticated user's Bookmarks by its ID. Query params: id (string, required) - numeric tweet ID to bookmark; auth_token (string, required) - Twitter auth_token cookie; ct0 (string, required) - Twitter ct0 cookie. Returns { bookmarked: true } on success.

POST/tweets/by/id
base$0.0025

Look up a single Twitter/X tweet by its numeric tweet ID. Returns full tweet data including text, author profile, creation date, engagement metrics (likes, retweets, replies, quotes, bookmarks), and referenced tweets. Query param: id (string, required) - numeric tweet ID, e.g. GET /tweets/by/id?id=1110302988. Returns X v2 API-compatible JSON.

POST/tweets/like
base$0.0075

Causes the authenticated user to Like a specific Post by its ID. Query params: id (string, required) - numeric tweet ID to like; auth_token (string, required) - Twitter auth_token cookie; ct0 (string, required) - Twitter ct0 cookie. Returns { liked: true } on success.

POST/tweets/quote_tweets
base$0.0100

Get a list of tweets that quote a specific tweet. Returns paginated quote tweets with author profiles for a given tweet ID. Query params: id (string, required) - numeric tweet ID; next_token (string, optional) - pagination cursor, e.g. GET /tweets/quote_tweets?id=1110302988. Returns X v2 API-compatible JSON.

POST/tweets/replies
base$0.0100

Get replies to a specific Twitter/X tweet. Returns paginated reply tweets for a given tweet ID. Query params: id (string, required) - numeric tweet ID; next_token (string, optional) - pagination cursor, e.g. GET /tweets/replies?id=1110302988. Returns X v2 API-compatible JSON.

POST/tweets/retweet
base$0.0075

Causes the authenticated user to repost a specific Post by its ID. Query params: id (string, required) - numeric tweet ID to retweet; auth_token (string, required) - Twitter auth_token cookie; ct0 (string, required) - Twitter ct0 cookie. Returns { retweeted: true } on success.

POST/tweets/retweeted_by
base$0.0100

Get the list of Twitter/X users who reposted a specific tweet. Returns paginated user profiles for a given tweet ID. Query params: id (string, required) - numeric tweet ID; next_token (string, optional) - pagination cursor, e.g. GET /tweets/retweeted_by?id=1110302988. Returns X v2 API-compatible JSON.

POST/tweets/search
base$0.0100

Search Twitter/X tweets with advanced filters. Returns up to 20 tweets per page, most recent first, with pagination. At least one filter required. Params: words, phrase, anyWords, noneWords, hashtags, from, to, mentioning, minReplies, minLikes, minReposts, since (YYYY-MM-DD), until, next_token. e.g. GET /tweets/search?words=bitcoin&from=elonmusk&minLikes=100. Returns X v2 API-compatible JSON.

POST/tweets/user
base$0.0100

Get the latest tweets (timeline) from a specific Twitter/X user by their username. Returns up to 20 tweets per page sorted by most recent first, with pagination support. Query params: username (string, required) - Twitter screen name; next_token (string, optional) - pagination cursor, e.g. GET /tweets/user?username=elonmusk. Returns X v2 API-compatible JSON.

POST/users
base$0.0100

Bulk look up multiple Twitter/X user profiles by their numeric user IDs in a single request. Returns an array of full user profiles. Query param: ids (string, required) - comma-separated numeric Twitter user IDs, max 50, e.g. GET /users?ids=44196397,12,783214. Returns X v2 API-compatible JSON.

POST/users/by/id
base$0.0050

Look up a single Twitter/X user profile by their numeric user ID. Returns full profile data including id, name, username, bio, follower count, following count, tweet count, and verification status. Query param: id (string, required) - numeric Twitter user ID, e.g. GET /users/by/id?id=44196397. Returns X v2 API-compatible JSON.

POST/users/by/username
base$0.0050

Look up a Twitter/X user profile by their screen name. Returns full profile data including id, name, username, bio, follower count, following count, tweet count, verification status, and profile image URL. Query param: username (string, required) - Twitter screen name without @, e.g. GET /users/by/username?username=elonmusk. Returns X v2 API-compatible JSON.

POST/users/followers
base$0.0100

Get the list of Twitter/X users who follow a specific user. Returns up to 50 follower profiles per page with pagination support. Query params: id (string, required) - numeric Twitter user ID; next_token (string, optional) - pagination cursor, e.g. GET /users/followers?id=44196397. Returns X v2 API-compatible JSON.

POST/users/following
base$0.0075

Causes the authenticated user to follow a specific user by their ID or username. Query params: id (string, optional) - numeric user ID to follow; username (string, optional) - screen name to follow (one of id/username required); auth_token (string, required) - Twitter auth_token cookie; ct0 (string, required) - Twitter ct0 cookie. Returns { following: true } on success.

POST/users/search
base$0.0100

Search Twitter/X for user accounts matching a keyword or phrase. Returns up to 20 matching user profiles per page with pagination support. Useful for discovering users by topic, name, or keyword. Query params: query (string, required) - search keyword or phrase; next_token (string, optional) - pagination cursor from previous response, e.g. GET /users/search?query=bitcoin. Returns X v2 API-compatible JSON.

Payment

Protocolx402 (direct payment, USDC)
Networkbase

How to call

Via APIHub (recommended)No wallet · pay with credits · gasless
# one-time setup
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call it
npx @apihubio/cli call https://x402.twit.sh \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://x402.twit.sh
APIHub pays the provider on your behalf and debits your credit balance for the exact amount. No wallet setup, no gas, no per-call signing.
Via direct x402 (advanced)Bring your own wallet
import { wrapFetchWithPayment } from "@x402/fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";

const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = createWalletClient({ account, chain: base, transport: http() });
const x402Fetch = wrapFetchWithPayment(client);

const res = await x402Fetch("https://x402.twit.sh", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ /* check provider docs for input */ }),
});
const data = await res.json();
Requires USDC on Base and gas on each call. The @x402/fetch client signs EIP-3009 transferWithAuthorization for each 402 response and retries.

This is an external service not operated by APIHub. Listing data is sourced from public on-chain records and third-party indexes. Payment goes directly to the service provider via the x402 protocol. APIHub does not guarantee availability, accuracy, or quality of external services.