X/User Posts
User Posts
GET
https://api.shofo.ai/x/user-postsGet tweets from a user's profile.
Pricing
Base cost: $0.0001 per post
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | Required | X/Twitter username |
count | integer | Required | Number of tweets to retrieve |
Response Format
{
"success": true,
"data": {
"tweets": [
{
"tweet_id": "1234567890123456789",
"content": "Just shipped a new feature! Check it out at...",
"like_count": 500,
"retweet_count": 100,
"reply_count": 45,
"quote_count": 20,
"view_count": 25000,
"created_at": "2024-01-15T14:30:00Z",
"is_retweet": false,
"is_reply": false,
"hashtags": ["buildinpublic", "tech"],
"media": []
}
],
"has_more": true,
"cursor": "next_page_token"
},
"cost": "$0.0010",
"request_id": "req_abc123"
}Try It
GET
https://api.shofo.ai/x/user-posts$0.0001
Send a request to see the response