Skip to content
rogerbraun edited this page Nov 23, 2011 · 4 revisions

#API

Standard searches also return json and xml

There are json and xml variants of the standard search routes.

/search/index?search=foo => /search/index.xml?search=foo

Optional parameters

JSON-requests take the additional parameter full. If this is set to true, html representations will be returned. If it is absent or any other value, only a count of results will be returned.

Translation equivalents and headwords

There are special routes to return only headwords or translation equivalents for a search:

/entries/tres?search=bla
/entries/headwords?search=bla

###Optional parameters

  • callback: If this is present, JSON-P will be returned, wrapped in the method name you provided.
  • max: If this is present, a maximum of max results will be returned. This is 10 by default.