News for hackers. Stuff that matters.
Re:Why it took a long time to build the tiny link preview on... by vanillaboy on Monday April 23, 2018 @05:05AM (#16901752)
Can I access this API externally, e.g. by sending a http get request to some endpoint, to get the summary content in JSON format?
Re:Why it took a long time to build the tiny link preview on... by Findus23 on Monday April 23, 2018 @06:05AM (#16902007)
Yes you can, there is a nice API returning the Popup-data in JSON

https://stackoverflow.com/a/48527419/4398037

Documentation: https://en.wikipedia.org/api/rest_v1/#!/Page_content/get_pag...

Re:Why it took a long time to build the tiny link preview on... by saagarjha on Monday April 23, 2018 @05:30AM (#16901855)
You can get a similar effect by hitting Wikipedia for its extract. For example: https://en.wikipedia.org/w/api.php?action=query&prop=extract...