GET /2/tweets/search/all

Returns Posts that match a search query.

Servers

Query parameters

Name Type Required Description
expansions[] Array No

A comma separated list of fields to expand.

next_token String No

This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.

start_time String No

YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Posts will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute).

place.fields[] Array No

A comma separated list of Place fields to display.

media.fields[] Array No

A comma separated list of Media fields to display.

pagination_token String No

This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified.

query String Yes

One query/rule/filter for matching Posts. Refer to https://t.co/rulelength to identify the max query length.

until_id String No

Returns results with a Post ID less than (that is, older than) the specified ID.

max_results Integer No

The maximum number of search results to be returned by a request.

Default value: 10

sort_order String No

This order in which to return results.

Possible values:

  • "recency"
  • "relevancy"
poll.fields[] Array No

A comma separated list of Poll fields to display.

tweet.fields[] Array No

A comma separated list of Tweet fields to display.

since_id String No

Returns results with a Post ID greater than (that is, more recent than) the specified ID.

user.fields[] Array No

A comma separated list of User fields to display.

end_time String No

YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Posts will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute).

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.