Skip to main content
This guide walks you through retrieving Posts that mention a specific user.
PrerequisitesBefore you begin, you’ll need:
  • A developer account with an approved App
  • Your App’s Bearer Token (for public data) or User Access Token (for private metrics)

Get user mentions

1

Get the user ID

Find the user ID using the user lookup endpoint. For example, @XDevelopers has user ID 2244994945.
2

Request the mentions timeline

cURL
3

Review the response


Filter mentions

Exclude replies

Get only original Posts that mention the user:
cURL

Get mentions in a time range

cURL

Common parameters

ParameterDescriptionDefault
max_resultsResults per page (1-100)10
start_timeOldest Post timestamp (ISO 8601)
end_timeNewest Post timestamp (ISO 8601)
since_idReturn Posts after this ID
until_idReturn Posts before this ID
excludeExclude retweets, replies, or both
pagination_tokenToken for next page

Next steps

Home timeline

Get user’s home timeline

Integration guide

Key concepts and best practices

API Reference

Full endpoint documentation

Pagination guide

Navigate large result sets