Standard v1.1 | X API v2 |
user_timeline: 900 requests per 15 min with OAuth 1.0a User Context 1500 requests per 15 min with OAuth 2.0 App-Only | User Posts timeline: 900 requests per 15-minute window with OAuth 1.0a User Context 1500 requests per 15-minute window with OAuth 2.0 App-Only |
Standard timelines v1.1 | timelines v2 |
since_id (exclusive) max_id (inclusive) | since_id (exclusive) until_id (also exclusive, vs max_id which was inclusive) |
Standard timelines v1.1 | timelines v2 |
Response filtering parameters: * include_rts * exclude_replies | Response filtering parameters: * exclude=retweets,replies |
Example https://api.x.com/1.1/statuses/user\_timeline.json?user\_id=2244994945&include\_rts=0&&exclude\_replies=1 | Example: https://api.x.com/2/users/2244994945/tweets?max_results=100&exclude=retweets,replies |
Notes: For user_timeline: * Using include_rts=0 does not change the possible historical Post limit of the most recent 3200 | Notes: For user Posts timeline: * Using exclude=retweets does not change the possible historical Post limit of the most recent 3200 * Using exclude=replies reduces the possible historical Post limit to the most recent 800 replies |
mentions_timeline: 75 requests per 15 min with OAuth 1.0a User Context | **user mention timeline: ** 180 requests per 15-minute window with OAuth 1.0a User Context 450 requests per 15-minute window with OAuth 2.0 Bearer Token |
home_timelime: 15 requests per 15 minutes Up to 800 Posts are obtainable on the home timeline | reverse chronological home timeline: 180 requests per 15 minutes You can return every Post created on a timeline over the last 7 days as well as the most recent 800 regardless of creation date. |
Standard timelines v1.1 | timelines v2 |
Daily request limit * 100,000 request cap within a 24 hour period. | No daily request limits, only limited by consumption volume. |
Standard timelines v1.1 | timelines v2 |
Consumption limited only by request limits * 100,000 request cap within a 24 hour period. | Consumption limited by only Project-level monthly Post cap (across multiple v2 endpoints) based on access level. * 500,000 Posts per month with Essential access. * 2 million Posts per month with Elevated access * 10 million Posts per month with Academic Research access Reverse chronological home timeline is not subject to the monthly Post cap. |
Standard timelines v1.1 | timelines v2 |
Required: user_id or screen_name | Required: The specific user ID is specified in the path parameter |
Optional: count - sets the maximum results returned per request exclude_replies - removes replies from the results Include_rts - when set to 0 removes retweets from the results trim_user - removes rehydrated user objects from the results tweet_mode - sets the data format returned for the results, set to extended for Posts longer than 140 since_id - sets the earliest Post ID in result (exclusive) max_id - sets the latest Post ID in result (inclusive) | Optional: max_results - sets the maximum results returned per request exclude=retweets,replies - removes Retweets or replies from the results tweet.fields - sets the Post object fields to return user.fields - sets the User object fields to return place.fields - sets the place object fields to return media.fields - sets the media object fields to return poll.fields - sets the poll object fields to return expansions - sets the expanded fields and data to return start_time - sets the earliest created_at time for the results end_time - sets the latest created_at time for the results since_id - sets the earliest Post ID for the results (exclusive) until_id - sets the latest Post ID in result (exclusive) |
Standard search v1.1 | Search Posts v2 |
[ tweet object, tweet object ] | “data”: [id,text,id,text], “meta”: “oldest_id”: “1337085692623646724”, “newest_id”: “1334183616172019713”, “previous_token”: “77qpymm88g5h9vqkluldpw91lr0qzfz1sqydh841iz48k”, “result_count”: 10, “next_token”: “7140dibdnow9c7btw3w29gqolns6a1ipl3kzeae41vsxk” |