I found out that I can use:
https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Stack%20Overflow
To retrieve the intro section of a Wikipedia page. But now I would like to get the URL of the same page.