Is there any endpoint or API to query Wikipedia, DBpedia or something similar to get all the Wikipedia pages of all the countries and its respective administrative divisions?
I've tried to find in DBpedia the way to know the administrative sub-divisions of a given region but I couldn't do it.
I would instead query against Wikidata and then convert the reults to Wikipedia pages.
You can use Sweden as an example for how a country and its subdivisions are structured.
For the querying you can use either https://query.wikidata.org (SPARQL) or http://wdq.wmflabs.org
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With