Search API not returning entities->media if tweet text is 140 characters

api

#1

Hello,

I posted a tweet with 140 characters and an image, but the entities->media is not returned in the search API.
Then i posted another tweet with 115 characters (the limit before being cropped by the short-link) and the image was returned. We have made multiple tests to replicate this behavior and it is consistent.

115 characters tweet:
https://twitter.com/Zeytoun33/status/794603724832407553

140 characters tweet:
https://twitter.com/Zeytoun33/status/794602996046974976

I believe this is a problem in the API not returning the entities->media if the text is longer than 115 chars.

Thanks,


#2

You’re going to want to take a look at the extended tweet mode.

Try playing with this: https://dev.twitter.com/rest/tools/console

And doing this.

https://api.twitter.com/1.1/statuses/show/794602996046974976.json?tweet_mode=extended

You’re going to want to take a peek at -> tweet->extended_entities->media


#3

Thank you!


#4

Please have someone review this article:

https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

Its not readable!

And the behavior is not consistent, sometimes it returns tweet->text and other times tweet->full_text …


#5

Sorry for the readability - working on fixing this.