The 'basic info' for every page includes its wikidata page id, e.g.  
http://en.wikipedia.org/w/index.php?title=Roy_Dowling&action=info

But I don't see anyway to retrieve this.  I might have thought it would be a property that could be retrieved as part of a query, but I don't see it.

Am I missing something or is it not available yet?

Thanks,
Tom