Scrape leads

Build targeted lists of X users — followers, engagers, keyword matches — each with a reliable can_dm flag so you only message people who can receive DMs.

Scrape followers

GET/v1/users/{handle}/followers5 credits / lead

Returns a page of follower profiles. Filter on can_dm to keep only DM-able users before you spend credits sending.

curl https://api.xautodm.com/v1/users/naval/followers \
  -H "Authorization: Bearer $XAUTODM_API_KEY"

Response — each row is a normalized profile (100 profiles × 5 credits = 500):

Response
{
  "data": {
    "count": 100,
    "users": [
      { "id": "44196397", "handle": "elonmusk", "name": "Elon Musk",
        "followers": 200000000, "verified": true, "can_dm": false },
      ...
    ],
    "cursor": "HBaAgL...=="
  },
  "meta": { "credits_charged": 500, "credits_remaining": 4500, "request_id": "req_..." }
}
Lead endpoints charge per returned profile: 5 credits each for followers/following/search, 20 each for verified followers and tweet engagers.

All lead sources

  • GET /v1/users/{handle}/followers — a profile's followers.
  • GET /v1/users/{handle}/following — who a profile follows.
  • GET /v1/users/{handle}/verified-followers — verified followers only.
  • GET /v1/users/search?q= — keyword/bio search across users.
  • GET /v1/tweets/search?q= — users tweeting about a topic.
  • GET /v1/tweets/{id}/retweeters & /replies — engagers of a specific tweet.
  • GET /v1/users/{handle}/mentions — who mentioned a handle.
  • GET /v1/lists/{id}/members — members of an X List.

Pagination

Responses include a cursor when more results exist. Pass it back as ?cursor= to fetch the next page; stop when cursor is null.

curl https://api.xautodm.com/v1/users/naval/followers?cursor=HBaAgL...== \
  -H "Authorization: Bearer $XAUTODM_API_KEY"
GET/v1/trends5 credits

Trending topics for a location (woeid, default 1 = Worldwide) — useful for finding what to target right now.

curl https://api.xautodm.com/v1/trends?woeid=1 \
  -H "Authorization: Bearer $XAUTODM_API_KEY"
GET/v1/users/{handle}/media5 credits

A user's photo/video tweets.

curl https://api.xautodm.com/v1/users/nasa/media \
  -H "Authorization: Bearer $XAUTODM_API_KEY"
Send DMsEndpoint reference