X (Twitter)

List an X (Twitter) user's public tweets

Retrieve a profile's public tweets, newest first by default or in X's ranked order, with the pinned tweet flagged and a URL for each tweet. Each successful request costs 1 account credit, including partial results. Failed requests cost 0 credits.

get/v1/twitter/user-tweets

Request

  • Base URL: https://api.scrapeatlas.com
  • URL: https://api.scrapeatlas.com/v1/twitter/user-tweets
  • Auth: API key in header x-api-key

Query parameters

handlestring required

X handle, 1–15 letters, digits or underscores; a leading @ is accepted.

trim'true' | 'false'

true returns each tweet as rest_id, views, source, legacy, quoted_status_result (when present), pinned and url.

sort'latest' | 'ranked'

latest (default): newest posts first; ranked: X's ranked selection in source order.

number
OR
string

Earliest publication time to include, ISO 8601 or Unix seconds.

number
OR
string

Publication time to stop before, ISO 8601 or Unix seconds; later than since.

Response

Inspect the response status and failure or coverage fields.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.