Standard search v1.1 | Search Posts v2 |
---|---|
q | query |
start_time (YYYY-MM-DDTHH:mm:ssZ) | |
until (YYYY-MM-DD) | end_time (YYYY-MM-DDTHH:mm:ssZ) |
since_id | since_id |
max_id | until_id |
count | max_results |
Response provides search_metadata.next_results | next_token |
Standard v1.1 parameter | Details |
---|---|
geocode | Search Posts at the Basic Access level does not support geo operators. |
locale | With standard search, this was used to specify the language of the query but never fully implemented. |
lang | Search Posts endpoints provide a lang query operator for matching on languages of interest. |
include_entities | Post entities are always included. |
result_type | Search Posts endpoints deliver all matching Posts, regardless of engagement level. |
extended | X API v2 is built from the ground up to support Posts with up to 280 characters. With v2, there is no concept of ‘extended’ Posts. |
Standard v1.1 | X API v2 |
https://api.x.com/1.1/search/tweets.json?q=snow&count=50 | https://api.x.com/2/tweets/search/recent?query=snow&max_results=50 |
X API v2 |
https://api.x.com/2/tweets/search/recent?query=snow&max\_results=50&tweet.fields=id,created\_at,author_id,text,source,entities,attachments&user.fields=id,name,username,description |
conversation_id: