X (Twitter) post counts API

Count posts matching a search query. 2 endpoints from X (Twitter), from $0.0055 per call.

Providers

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.

Router call with a router API key
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>"
    }
  }'