Introduction
The XAutoDM API lets you automate X (Twitter) from your own code — send DMs, scrape leads, read replies, and run engagement actions — without browser automation or scraping infrastructure.
You connect an X account once (we store the session encrypted and keep it alive with automatic re-login), then drive everything through one REST API. Base URL:
https://api.xautodm.com/v1
What you can do
- Send DMs from your connected X account, with idempotency so retries never double-send.
- Scrape leads — followers, verified followers, keyword search, tweet engagers, list members — with an accurate
can_dmflag. - Read replies — list DM conversations and fetch message history.
- Engagement actions — follow, unfollow, like, retweet, and post tweets.
How it works
- Authentication — every request carries your API key as a bearer token.
- Managed sessions — connect an X account and reference it by
account_id; we handle session expiry. - Credits — API calls are metered in credits, charged only on success.
- Plans — connecting an X account requires an active subscription with an available account slot.
New here? Follow the Quickstart — sign up, get a key, and make your first call in a couple of minutes.
Response format
Every endpoint returns the same envelope — data plus a meta block with billing info:
Response
{
"data": { "user": { "handle": "NASA", "followers": 92000000 } },
"meta": { "credits_charged": 5, "credits_remaining": 4995, "request_id": "req_a1b2c3" }
}