Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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...


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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: