@Javivi Here is a way to produce plain text rather than an url result using the Wikipedia api
I hope it helps.