So I need a function. An example input would be like "donald trump" (I don't want it to be case-sensitive) If an article about the person exists on Wikipedia, function returns a summary and a picture. If not returns false Is this even possible? I couldn't figure out the correct API call.
I've tried Wikidata API. It returns multiple objects for some inputs and I didn't know how to redirect it.
I created simple repo.
You can check how it work on GitHub Page.
This is search function: