How can I implement a modal with a website search?

Like the title, I want to have a modal with articles from an external website that is the easiest way to implement this. for example, I want to search Wikipedia and show a modal neatly layout presenting info to the client.
Wiki maybe has API and SDK but how I go about it with an ordinary website and need to modify maybe
All feedback welcome!