← Back to marketplace

Twitter/X API

external

**Twitter/X API** on x402 Atlas — pay-per-call over the [x402 protocol](https://x402.org). Paid routes are billed per call in USDC on Base, Polygon, or Arbitrum, starting at $0.005; each operation states its exact price below. Request a route with no payment to receive the `402` challenge, then repeat it with an `X-PAYMENT` header — an x402 client (`x402-fetch` / `x402-axios`) performs that exchange for you. Full onboarding, quickstart, and the other APIs: https://use.x402atlas.com/docs

by X402atlas22 endpoints100% uptime1044ms avg

Price

from $0.0050

per request

Network

base

Category

finance

On-chain txns

889

Uptime

100%

Avg latency

1044ms

Checks

83

Status

Healthy

Base URL

https://twitter.use.x402atlas.com

Endpoints (22)

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

POST/autocomplete
base$0.0050

Get X search suggestions for a partial query.

POST/community-details
base$0.0050

Get complete public information for an X community.

POST/community-media
base$0.0050

Get media posts from an X community.

POST/community-members
base$0.0050

Get members of an X community.

POST/community-tweets
base$0.0050

Get top or latest posts from an X community.

POST/list-details
base$0.0050

Get complete public information for an X list.

POST/list-followers
base$0.0050

Get followers of a public X list.

POST/list-members
base$0.0050

Get members of a public X list.

POST/list-tweets
base$0.0050

Get posts from a public X list.

POST/locations
base$0.0050

List the geographic locations available for Twitter/X trends, including WOEIDs, place types and country details.

POST/search
base$0.0050

Search Twitter/X with structured filters or raw advanced-search syntax. Returns up to 20 normalized tweets with full text, author details, engagement metrics and a pagination cursor.

POST/search
base$0.0050

Search Twitter/X with structured filters or raw advanced-search syntax. Returns up to 20 normalized tweets with full text, author details, engagement metrics and a pagination cursor.

POST/search-communities
base$0.0050

Search public X communities by query.

POST/search-lists
base$0.0050

Search public X lists by query.

POST/trends
base$0.0050

Get ranked Twitter/X trends for a geographic WOEID with normalized search queries, context, post counts and related trends.

POST/tweet-details
base$0.0050

Get the complete public data for one X post.

POST/user-about
base$0.0050

Get the extended About information for a public X user.

POST/user-details
base$0.0050

Get a complete public X user profile by username.

POST/user-highlights
base$0.0050

Get the highlighted posts selected on an X user profile.

POST/user-media
base$0.0050

Get a paginated timeline of media posts from an X user.

POST/user-replies
base$0.0050

Get a paginated timeline of replies from an X user.

POST/user-tweets
base$0.0050

Get a paginated timeline of posts from an X user.

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://twitter.use.x402atlas.com \
  -X POST \
  -d '{ /* check provider docs for input */ }'

# or save it to Claude/Cursor/Codex
npx @apihubio/cli install
npx @apihubio/cli add https://twitter.use.x402atlas.com
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://twitter.use.x402atlas.com", {
  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.