GetXAPI
Users

User Tweets and Replies

Get tweets and replies posted by a user

GET /twitter/user/tweets_and_replies

Query Parameters

ParameterTypeRequiredDescription
userNamestringYesScreen name (without @)
cursorstringNoPagination cursor

Notes

  • Returns tweets and replies posted by the user.
  • Pagination uses next_cursor until has_more is false.

Response (200)

{
  "userName": "druv_kotwani",
  "userId": "1345154135381794816",
  "tweet_count": 20,
  "has_more": true,
  "next_cursor": "DAABCgABHAY...",
  "tweets": [
    {
      "type": "tweet",
      "id": "2010705621524292007",
      "text": "soon people will realize, claude code is a beast.",
      "author": {
        "userName": "druv_kotwani"
      }
    }
  ]
}

Error Responses

400 - Missing userName

{
  "error": "Missing required query param: userName"
}

Example

curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/user/tweets_and_replies?userName=druv_kotwani"

# With pagination
curl -H "Authorization: Bearer API_KEY" "https://api.getxapi.com/twitter/user/tweets_and_replies?userName=druv_kotwani&cursor=DAABCgABHAY..."

On this page