Answers / X (Twitter)
What is a pay-as-you-go alternative to the expensive X (Twitter) API?
PostToData provides a read-only alternative to the official X API starting at $0.003 per successful call from a prepaid balance. Unlike the official $100/month or $200/month basic subscriptions, you only pay for the individual searches, post details, or reply threads you fetch, with zero monthly commitments and free dry_run price previews.
X (Twitter) · search posts · $0.003 a call · one verified website trial · updated 2026-11-13
Run it live
Calls run only when you press Run. Opening this page does not spend credit.
Loading…
Your results will appear here. Choose a platform and action, then press Run.
Real API calls require verification for one trial, or a signed-in account with prepaid credit.
From code
curl "https://posttodata.com/v1/x/search?query=model+context+protocol&limit=5" -H "Authorization: Bearer YOUR_API_KEY"import requests
r = requests.get(
"https://posttodata.com/v1/x/search",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"query": "model context protocol", "limit": 5},
)
for item in r.json()["data"]["items"]:
print(item["url"], item.get("text") or item.get("title"))const url = new URL("https://posttodata.com/v1/x/search");
url.searchParams.set("query", "model context protocol");
url.searchParams.set("limit", "5");
const res = await fetch(url, {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await res.json();
console.log(data.data.items);req, _ := http.NewRequest("GET", "https://posttodata.com/v1/x/search?query=model+context+protocol&limit=5", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)From your AI
Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Then ask
“Search X for recent discussions about the Model Context Protocol (MCP) using PostToData and summarize key points with tweet links.”
The model calls search_posts with platform x.
Response Schema & Data Sample
Normalized JSON output structure returned by PostToData. All fields are strongly typed; missing upstream metrics return null rather than being omitted.
{
"meta": {
"platform": "x",
"action": "search",
"total_items": 1,
"currency": "USD",
"price_usd": "0.003"
},
"data": {
"items": [
{
"id": "model context protocol",
"type": "post",
"url": "https://x.com/example_id",
"published_at": "2026-11-15T12:00:00Z",
"title": "model context protocol insights & discussion",
"text": "Structured body content retrieved from the public social post, ready for AI indexing or sentiment analysis.",
"author": {
"id": "creator_01",
"username": "creator_name",
"name": "Creator",
"url": null
},
"metrics": {
"likes": 215,
"comments": 34,
"shares": 12,
"views": 5400,
"score": null
}
}
]
}
}Good to know
- Only $0.003 per successful call — 1,000 searches cost $3.00 instead of a $100/month base tier.
- Prepaid balance never expires; test calls with dry_run=1 are completely free.
- Full MCP support for Claude, Cursor, and ChatGPT.
- Includes search, post details, replies, user profiles and recent timelines.
Full reference in the docs. All X (Twitter) endpoints are on the X (Twitter) API page.
More answers