PrerequisitesBefore you begin, you’ll need:
- A developer account with an approved App
- User Access Tokens (this endpoint requires user authentication)
Step 1: Get the user ID
You need the user ID for the account whose home timeline you want to retrieve. Find it using the username lookup endpoint:cURL
Step 2: Request the home timeline
Make a GET request with the user ID and User Access Token:cURL
Step 3: Review the response
Step 4: Add fields and expansions
Request additional data with query parameters:cURL
Step 5: Paginate through results
The SDKs handle pagination automatically. For cURL, use thenext_token from the response to get more results:
Common parameters
| Parameter | Description | Default |
|---|---|---|
max_results | Results per page (1-100) | 10 |
start_time | Oldest Post timestamp (ISO 8601) | — |
end_time | Newest Post timestamp (ISO 8601) | — |
since_id | Return Posts after this ID | — |
until_id | Return Posts before this ID | — |
exclude | Exclude retweets, replies, or both | — |