Thanks Andy for replying.
As far as my understanding goes the oEmbed endpoint would actually go to twitter and get the whole tweet with html. I dont want that to happen. I am downloading the tweet using REST API, translating it and then showing to the user. If I used oEmbed this would not be possible, right ?
Also I did find that twitter-text does give me html output. here is a sample
Input
var twttr = require( ‘twitter-text’ );
var textToAutolink = ‘#destacada Una víctima, a Rajoy: “¿Cuántos actos se han hecho por las víctimas de Hipercor?” https://t.co/sbm5m8WHow’;
var formattedText = twttr.autoLink(textToAutolink);
Output
#destacada Una víctima, a Rajoy: “¿Cuántos actos se han hecho por las víctimas de Hipercor?” https://t.co/sbm5m8WHow
There is another npm package I found that is helpful - Autolinker.