X (Twitter) post counts API
Count posts matching a search query. 2 endpoints from X (Twitter), from $0.0055 per call.
Providers
X (Twitter)
- Count tweets matching a query — full archive$0.011 per call
- Count tweets matching a query — last 7 days$0.0055 per call
Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.
Call it
This example calls Count tweets matching a query — full archive. Each endpoint takes its own inputs, which its page lists. A Joshu assistant makes the same call with its own token.
curl https://hello.joshu.me/api/router/call \
-H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "x.x.get-posts-counts-all",
"params": {
"query": "<query>"
}
}'