Description | Standard v1.1 | X API v2 |
---|---|---|
HTTP methods supported | GET | GET |
Host domain | https://api.x.com | https://api.x.com |
Endpoint path | /1.1/statuses/show.json , /1.1/statuses/lookup.json | /2/tweets |
Authentication | OAuth 1.0a User Context | OAuth 1.0a User Context, OAuth 2.0 App-Only, OAuth 2.0 Authorization Code with PKCE |
Post JSON format | Standard v1.1 format | X API v2 format, determined by fields and expansions parameters (not backward-compatible with v1.1) |
Supports selecting specific fields | ✔ | |
Supports the annotations fields | ✔ | |
Supports new metrics fields | ✔ | |
Supports conversation_id field | ✔ | |
Provides Post edit history | ✔ | ✔ |
Requires credentials from a developer App associated with a Project | ✔ |
ids
parameter as a query parameter with a comma-separated list of Post IDs.
Support for Post Edit History and Metadata
Both versions provide metadata that describes any edit history. Check out the Post lookup API References and the Edit Posts fundamentals page for more details.
https://api.x.com/1.1/statuses/show
https://api.x.com/1.1/statuses/lookup
https://api.x.com/2/tweets
https://api.x.com/2/tweets/:id
id
and text
fields by default. Additional fields and objects require the use of fields and expansions parameters. The expanded fields return in an includes
object within the response, which can be matched to the primary Post object by matching IDs.
For more on using fields and expansions, see the guide on how to use fields and expansions. A data format migration guide also maps standard v1.1 fields to the newer v2 fields.
Additionally, X API v2 introduces new JSON designs for objects, including the Post and user objects:
statuses
array, while X API v2 uses a data
array.like
replaces terms like favorites
and favourites
.null
) are not included in X API v2 payloads.conversation_id
context
and entities
)reply_setting
field showing who can reply to a given PostStandard | X API v2 |
---|---|
id | ids |
Standard | Comment |
---|---|
tweet_mode | Replaced by fields and expansions functionality. |
trim_user | Replaced by fields and expansions. Use author_id expansion and user.fields for user data. |
include_my_retweet | Provides the ID of the source Post for Retweeted Posts by the authenticating user. |
include_entities | Use fields and expansions to control entities in the payload. |
include_ext_alt_text | Adds ext_alt_text field in media entity if alt text is present. |
include_card_uri | Adds card_uri when an ads card is attached. |
map | Returns the Post ID and error message for unavailable Posts in X API v2, as opposed to nullified fields in v1.1. |
ACCESS_TOKEN
in the header with your app access token. For v2 endpoints, the token must belong to a developer App within a Project.
The response payloads from v1.1 will differ from v2. With v2, you can request different fields with the fields and expansions parameters.
Standard v1.1 GET statuses/lookup
and v2 GET /tweets
endpoints
GET statuses/show/:id
and v2 GET /tweets/:id
endpoints