Skip to main content
The Timelines endpoints let you retrieve Posts from user timelines, mention feeds, and home feeds. Get a user’s posted content, see what Posts mention them, or view their personalized home timeline.

Overview

User Posts

Get Posts authored by a user

User mentions

Get Posts mentioning a user

Home timeline

Get personalized home feed

Reverse chronological

Posts in time order

Endpoints

MethodEndpointDescription
GET/2/users/:id/tweetsGet Posts by a user
GET/2/users/:id/mentionsGet Posts mentioning a user
GET/2/users/:id/timelines/reverse_chronologicalGet home timeline

User Posts timeline

Get the most recent Posts authored by a specific user.

Features

  • Up to 3,200 most recent Posts
  • Filter out replies and retweets
  • Pagination support
  • Historical access with time-based filtering

User mentions timeline

Get Posts that mention a specific user.

Features

  • Up to 800 most recent mentions
  • Includes replies and quote Posts
  • Pagination support

Reverse chronological home timeline

Get the authenticated user’s home timeline in reverse chronological order.

Features

  • Posts from followed accounts
  • Most recent 3,200 Posts (or 7 days)
  • Excludes algorithmic ranking
  • Requires user authentication

Filtering options

Exclude parameter

Filter out specific Post types:
ValueEffect
retweetsExclude retweets
repliesExclude replies
curl "https://api.x.com/2/users/123/tweets?exclude=retweets,replies" \
  -H "Authorization: Bearer $BEARER_TOKEN"

Time-based filtering

ParameterDescription
start_timeOldest Post timestamp (ISO 8601)
end_timeNewest Post timestamp (ISO 8601)
since_idReturn Posts after this ID
until_idReturn Posts before this ID

Getting started

Prerequisites