GetXAPI
Users

User Tweets

Fetch all tweets posted by a Twitter user via API. $0.001 per call, ~20 tweets per call — just $0.05 per 1,000 tweets. GetXAPI user tweets endpoint.

GET/twitter/user/tweets

This endpoint costs $0.001 per API call and returns ~20 tweets per page.

Query Parameters

ParameterTypeRequiredDescription
userNamestringYesScreen name (without @)
cursorstringNoPagination cursor

Notes

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

Response (200)

{
  "userName": "example_user",
  "userId": "1234567890123456789",
  "tweet_count": 20,
  "has_more": true,
  "next_cursor": "DAABCgABHAY...",
  "tweets": [
    {
      "type": "tweet",
      "id": "2010705621524292007",
      "text": "Hello from GetXAPI.",
      "author": {
        "userName": "example_user"
      }
    }
  ]
}

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?userName=example_user"

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

On this page