Card data in Entities


#1

How can developers get access to the cards via the API?

Tweets with cards display extra information - such as this tweet with a KickStarter link - https://twitter.com/asfaltboy/status/211421708639416322

However, the API call to the status doesn’t show the card information in the entities - https://api.twitter.com/1.1/statuses/show/211421708639416322.json&include_entities=true

At the moment, we are using a third party service to get the OEmbed data - http://oembed.io/api?url=kck.st/JdMvCc

Is there an official way to get Card OEbeds via the API?


#2

Hello @edent,

There is a API endpoint that will return oEmbed markup for a specified Tweet.

https://dev.twitter.com/rest/reference/get/statuses/oembed

It is rate limited, so you should cache these responses so you don’t hit the API for the same Tweet repeatedly.


#3

Hi Jon,

Sorry, I didn’t make myself clear. I run a Twitter client. I want the OEmbed representation of the card not the specific tweet.

Thanks

Terence


#4

Hi Terence, at this time the rendered Cards are not available via the API. This is partly because the cards themselves are rendered differently on different platforms (natively on Android and iOS, and in HTML on the web). I don’t know of any plans for this to change at the moment.