i would like to retrieve properties of a wikidata entry (eg I want to retrieve date of birth (P569) of Donald Trump (Q22686)). I tried to use wbgetentities as action but failed to retrieve more than the description of the wikidata entry. Is it possible to retrieve the properties with wbgetentities?
import requests
API_ENDPOINT = "https://www.wikidata.org/w/api.php"
query = "Q66505"
params = {
'action': 'wbgetentities',
'format': 'json',
'languages': 'de',
'ids': query,
'props': 'labels|descriptions'
}
r = requests.get(API_ENDPOINT, params = params)
print(r.json())
I looked at the description but I could not find the solution: https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities