Hi,
On 11/02/2016 09:31 AM, Delia Fernandez wrote:
Search request in Spanish: https://www.wikidata.org/w/api.php?action=wbsearchentities&search=Q2537&... Response: {"searchinfo":{"search":"Q2537"},"search":[{"id":"Q2537","concepturi":"http://www.wikidata.org/entity/Q2537%22,%22url%22:%22//www.wikidata.org/wiki... satellite","description":"celestial body that orbits a planet or smaller body","match":{"type":"entityId","text":"Q2537"},"aliases":["Q2537"]}],"success":1}
Actually, this API query means search for "Q2537", and you're saying that string is in Spanish. I think what you actually want is:
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q2537&fo...
And if you just want Spanish, you can do:
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q2537&la...
You can see the documentation and some examples for the wbgetentities API module at:
https://www.wikidata.org/w/api.php?modules=wbgetentities
-- Legoktm