lookup

fun Statuses.lookup(    ids: List<Long>,     includeEntities: Boolean? = null,     trimUser: Boolean? = null,     map: Boolean? = null,     includeExtAltText: Boolean? = null,     includeCardUri: Boolean? = null,     tweetMode: TweetMode = TweetMode.Default,     vararg options: Option): JsonArrayApiAction<Status>

Returns fully-hydrated Tweet objects for up to 100 Tweets per request, as specified by comma-separated values passed to the id parameter. This method is especially useful to get the details (hydrate) a collection of Tweet IDs. GET statuses/show/:id is used to retrieve a single Tweet object.

There are a few things to note when using this method.

  • You must be following a protected user to be able to see their most recent Tweets. If you don't follow a protected user their status will be removed.

  • The order of Tweet IDs may not match the order of Tweets in the returned array.

  • If a requested Tweet is unknown or deleted, then that Tweet will not be returned in the results list, unless the map parameter is set to true, in which case it will be returned with a value of null.

  • If none of your lookup criteria matches valid Tweet IDs an empty array will be returned for map=false.

  • You are strongly encouraged to use a POST for larger requests.

Twitter API reference

Receiver

Statuses endpoint instance.

Return

JsonArrayApiAction for Status model.

Parameters

ids

A list of Tweet IDs, up to 100 are allowed in a single request.

includeEntities

The entities node that may appear within embedded statuses will not be included when set to false.

trimUser

When set to either true , t or 1 , each Tweet returned in a timeline will include a user object including only the status authors numerical ID. Omit this parameter to receive the complete user object.

map

When using the map parameter, Tweets that do not exist or cannot be viewed by the current user will still have their key represented but with an explicitly null value paired with it.

includeExtAltText

If alt text has been added to any attached media entities, this parameter will return an ext_alt_text value in the top-level key for the media entity. If no value has been set, this will be returned as null.

includeCardUri

When set to either true , t or 1 , each Tweet returned will include a card_uri attribute when there is an ads card attached to the Tweet and when that card was attached using the card_uri value.

options

Optional. Custom parameters of this request.