For a project, I download some Wikipedia city pages like the page for my hometown Markdorf. As you can see on the Wikipedia page, the area of the city is displayed next to "Fläche" and the population is displayed next to "Einwohner".
How can I get this data from the api? When I download the json version of the Wikipedia page of Markdorf the response of course contains "Fläche" and "Einwohner" but without value next to it. I expected to get this value like "Landkreis", that is returned as "key value pair" in the json version of the Wikipedia page: Landkreis = Bodenseekreis
.
Fläche
is listed as Fläche<ref name="Daten & Fakten">[http://markdorf.de/index.php?id=351 ''Daten & Fakten''] auf der Internetseite der Stadt Markdorf, abgerufen am 29. Mai 2015.</ref> |
without any data. The referenced website http://markdorf.de/index.php?id=351 of course contains the information, but in no parsable way.
So: How can I access the information like Fläche
and Einwohner
using the Wikipedia api? Also Bevölkerungsdichte
is not returned at all.