import pywikibot as pwb
from pywikibot import pagegenerators as pg
site = pwb.Site("wikidata", "wikidata")
repo = site.data_repository()
item = pwb.ItemPage(repo, "Q4115189") # sandbox
item.oldest_revision
{'revid': 5799323, 'text': None, 'timestamp': Timestamp(2013, 2, 5, 0, 30, 16), 'user': 'Sven Manguard', 'anon': False, 'comment': '/* special-create-item:2|en */ Wikidata Live Test Page, Please do not delete this, this is a live test page', 'minor': False, 'rollbacktoken': None, '_parent_id': 0, '_content_model': 'wikibase-item', '_sha1': 'ce631642ceff88eb6d2e1df0a7db2972a7e3aac2'}