Answers / X (Twitter)
How much does it cost to read X (Twitter) posts with an API?
PostToData lists X calls at $0.003 per successful call, paid from a prepaid balance: $10 buys $10, $50 buys $55 and $200 buys $240 of balance, and it does not expire. Failed calls cost nothing, and dry_run=1 shows the price before you run a call.
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=ai+agents&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": "ai agents", "limit": 5},
)
for item in r.json()["data"]["items"]:
print(item["url"], item.get("text") or item.get("title"))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 posts about AI agents from this week and summarize the three most-liked, with links.”
The model calls search_posts with platform x.
Good to know
- Search, post detail, replies, profiles and a user's posts are available.
- There is no trending action for X yet.
- Check X's own developer terms if you need write access or the full firehose: PostToData is read-only.
Full reference in the docs. All X (Twitter) endpoints are on the X (Twitter) API page.
More answers