Hey,

This API call works when I do it in Python using requests:

requests.get("https://en.wikipedia.org/w/api.php", params={"action":"parse","page":"Aphrodisiac","prop":"wikitext","format":"json"})

but when I do it with wget or curl like this:

wget https://en.wikipedia.org/w/api.php?action=parse&page=Aphrodisiac&prop=wikitext&format=json

it doesn’t return pure JSON, it returns some kind of HTML and I don’t think I even see the desired data inside.

But that URL works in the browser.

Why would it have this behavior? How do curl/wget differ from a browser calling this string?

Thank you,
Julius