Retrieving Twitter Twitter Status via REST API Does Not Always Return Multimedia URLs

I can not force the embedded URL in status, for example in id = 780804331608109057 -

https://twitter.com/i/web/status/780804331608109057

When I get this through GET /statuses/:id, when include_entitiesset to true, the answer is as follows:

"text":"Here\u2019s WSJ \"An Underwhelming Trump-Clinton Debate\u201d trying to spin this as something other than a Clinton triumph\u2026 https:\/\/t.co\/dpkmphGI8k", "truncated":true, "entities": {"hashtags":[],"symbols":[],"user_mentions":[],"urls":
[{"url":"https:\/\/t.co\/dpkmphGI8k", "expanded_url":"https:\/\/twitter.com\/i\/web\/status\/780804331608109057", "display_url":"twitter.com\/i\/web\/status\/7\u2026","indices":[114,137]}]}, "source":"\u003ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\"rel=\"nofollow\"\u003eTweetDeck\u003c\/a\u003e",....

When viewed on my web client, a link to WSJ is displayed instead (via t.co). I would like for one or both of these URLs to appear in the API response:

What am I doing wrong here?

+4

Source: https://habr.com/ru/post/1655989/


All Articles