Get wikidata ID from specific property id and value - Stack Overflow

admin2025-05-01  0

I need to get the wikidata id (i.e. Q38655111) of an item and I know the property id "Property:P961" and the property value (i.e. 310980-1).

If I call this API .php?action=query&format=xml&generator=backlinks&gblnamespace=0&gbllimit=5000&prop=info&gbltitle=Property:P961 I get all records. How may I filter for a specific property value?

I need to get the wikidata id (i.e. Q38655111) of an item and I know the property id "Property:P961" and the property value (i.e. 310980-1).

If I call this API https://www.wikidata.org/w/api.php?action=query&format=xml&generator=backlinks&gblnamespace=0&gbllimit=5000&prop=info&gbltitle=Property:P961 I get all records. How may I filter for a specific property value?

Share Improve this question asked Jan 2 at 21:32 LucaLuca 9921 gold badge15 silver badges34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

That can be done via cirrusSearch. The call you need is: https://www.wikidata.org/w/api.php?action=query&list=search&srsearch=haswbstatement:P961=310980-1&format=json

转载请注明原文地址:http://anycun.com/QandA/1746095833a91606.html