Entity "media" URLs should have a media_key
This (pastebin.com/WGD0fp8D) is a Tweet that has a couple random links, a manually pasted in link to a Twitter photo and an uploaded photo.
When parsing entities.urls, there should be a way match the two image entity URLs to a media_key.
Problem #1. There’s no indication that a particular URL is a media URL.
Problem #2. There’s no direct key to match the appropriate attachment.
Adding a media_key KV to the entity.urls would fix these two problems.
just a dev commented
Absolutely. I was about to ask them to bring back v1.1's "indices" property of a media object (to give the start and end of that media's URL in the tweet), but this is just as good if not better.