$ man twitter-x-api
/twitter-x-api
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
twitter-x-api — twitter x api / x api v2 wrapper / tweet search and username lookup / social data api
SYNOPSIS
POST https://x402.agentutility.ai/twitter-x-api
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Twitter X API / X API v2 wrapper / tweet search and username lookup / social data API. Read-only endpoint with mode='search' for recent public posts or mode='user' for public profile lookup. Uses X_BEARER_TOKEN or TWITTER_BEARER_TOKEN. No posting, replying, liking, following, DM access, or account mutation.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| mode | string | Lookup mode. Defaults to 'search' unless username is supplied without query. enum: search · user | optional |
| query | string | Recent-search query for mode='search'. | optional |
| username | string | Handle for mode='user', with or without @. | optional |
| max_results | number | Search result count, clamped to 10-50. | optional |
| language | string | Optional two-letter language filter for search. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| mode | string | — |
| result_count | string | — |
| source | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/twitter-x-api \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the twitter-x-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- web-probetwitterxapitwitter-x-api
- methods
- POST
- cluster
- webprobe
- price
- $0.01 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| company-enrich | Company enrichment API / domain enrichment / organization enrichment / firmographic lite. | $0.01 |
| domain-enrich | Domain enrichment API / company enrichment / firmographic lite. | $0.01 |
| lead-enrich | Lead enrichment API / person enrichment / people enrich / email enrichment lite. | $0.01 |
| people-enrich | People enrichment API / person enrichment / email enrichment / lead enrichment lite / Apollo alternative for agents. | $0.01 |
| people-search | People search API / lead lookup / lightweight people enrichment. | $0.01 |
| person-enrich | Person enrichment API / people enrichment / email-to-person profile lite. | $0.01 |
| pubmed-search | PubMed search / biomedical literature search / medical journal lookup / NIH paper search / clinical-research finder / MeSH-term query / N… | $0.01 |
| search | Search API / web search API / SERP search / agent search endpoint. | $0.01 |
SEE ALSO