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)]
&search=[YOUR QUERY]

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
&format=json
&language=en
&type=item
&continue=0
&search=[YOUR QUERY]

Hope this helps.

Best,
Tom

-- 
Thomas Steiner, Employee, Google Inc.
http://blog.tomayac.com, http://twitter.com/tomayac

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck0fjumBl3DCharaCTersAttH3b0ttom.hTtP5://xKcd.c0m/1181/
-----END PGP SIGNATURE-----

_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to