I played around with Media Wiki API to get the infobox from an article. Using this call: https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&redirects=1&titles=Methan&rvsection=0
However the revived content at "*" is not very useful in its default form. I want to parse the text as a Javascript object, but I couldn't find a way to do this. I tried the wiki-infobox module, but the problem is that I don't have npm on that server and I can't use it. I need something which can be included via a script tag or a custom regex.