cURL
curl --request GET \ --url https://api.zilodata.com/api/v1/x/user/{username}/tweets \ --header 'Authorization: Bearer <token>'
{ "tweets": [ { "id": "1234567890123456789", "text": "Just launched a new product! Check it out #innovation", "author": "elonmusk", "likeCount": 50000, "retweetCount": 10000, "replyCount": 2000, "quoteCount": 500, "viewCount": 1000000, "createdAt": "2025-01-15T10:30:00.000Z", "isRetweet": false, "retweetedTweet": "<unknown>", "url": "https://twitter.com/elonmusk/status/1234567890123456789", "media": [ { "type": "photo", "url": "<string>" } ] } ], "nextToken": "<string>" }
Retrieve tweets from a user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
x <= 200
Get tweets after this tweet ID
Get tweets before this tweet ID
Successful response
Show child attributes
"1234567890123456789"
"Just launched a new product! Check it out #innovation"
"elonmusk"
50000
10000
2000
500
1000000
"2025-01-15T10:30:00.000Z"
false
"https://twitter.com/elonmusk/status/1234567890123456789"
photo
video
gif
Was this page helpful?