Skip to main content


Wikidata is a free and open knowledge base that can be read and edited by both humans and machines. Wikidata is one of the world’s largest open knowledge bases.

First, you need to install wikibase-rest-api-client and mediawikiapi python packages.

%pip install --upgrade --quiet  wikibase-rest-api-client mediawikiapi
from import WikidataAPIWrapper, WikidataQueryRun

wikidata = WikidataQueryRun(api_wrapper=WikidataAPIWrapper())
print("Alan Turing"))