Hi,
the autocomplete box is using the wbsearchentities api. You could try to
copy the jquery.wikibase.entityselector.js from
wikibase/lib/resources/jquery.wikibase it looks like it works independently
from wikibase. It needs the jqueryui suggester.
best regards,
Christian
2014-04-28 18:40
Hi Maxime,
After some quick reverse engineering of the site with the Chrome
Developer Tools, here's the API it is using:
http://www.wikidata.org/w/api.php
?callback=[YOUR CALLBACK NAME]
action=wbsearchentities
format=json
language=en
type=item
continue=0
_=[TIMESTAMP (as a cache buster)]
Small correction:
If you don't need the callback, then the API is as follows (note the
missing cache buster):
http://www.wikidata.org/w/api.php
action=wbsearchentities
?action=wbsearchentities (replace '' with '?', copy and paste
oversight, sorry).
--
Thomas Steiner, Employee, Google Inc.