X (Twitter) automation API
Send DMs, scrape leads, and automate X — programmatically.
Connect an X account once — we keep the session alive — then drive DMs, lead scraping, and engagement from one clean REST API. Simple credit billing, no browser automation.
curl https://api.xautodm.com/v1/users/nasa \
-H "Authorization: Bearer $XAUTODM_API_KEY"
curl -X POST https://api.xautodm.com/v1/dm/send \
-H "Authorization: Bearer $XAUTODM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"account_id":"...","recipient_username":"jack","text":"hey"}'Endpoints
Full API reference →Simple pricing
Each plan bundles connectable X accounts plus a monthly credit allowance for API calls. Top up anytime.
Starter
$50/mo
Up to 10 X accounts
50,000 credits / month
10 requests / sec
50,000 credits / month
10 requests / sec
Growth
$199/mo
Up to 25 X accounts
250,000 credits / month
25 requests / sec
250,000 credits / month
25 requests / sec
Scale
$499/mo
Up to 75 X accounts
700,000 credits / month
50 requests / sec
700,000 credits / month
50 requests / sec