$919:31:06Claim
    xAutoDM LogoxAutoDM
    Users

    Get a user

    Look up one profile by handle, including whether you can DM it.

    GET/v1/users/{handle}60 credits

    Path parameters

    FieldTypeRequiredDescription
    handlestringRequiredX username, without the @.

    Request

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

    Response

    Response
    {
      "data": {
        "user": { "id": "44196397", "handle": "elonmusk", "name": "Elon Musk",
          "followers": 200000000, "verified": true, "can_dm": false, "bio": "..." }
      },
      "meta": { "credits_charged": 500, "credits_remaining": 49500, "request_id": "req_..." }
    }

    Errors use one shape for every endpoint. See errors and rate limits.