Skip to content
pascalchevrel edited this page Nov 12, 2012 · 13 revisions

There is a simple JSON / JSONP API to transvision allowing any normal search to be sent as a json feed:

Reminder of common search parameters:

  • &sourcelocale = The locale used as the source for comparizon
  • &locale = the locale for which we want results
  • &repo = the repository (central, beta, release, gaia)
  • &recherche = your searched terms

Additional JSON parameters:

  • &json => get a json feed
  • &callback=myFunction => get a jsonp feed

Examples:

Normal search http://transvision.mozfr.org/?sourcelocale=en-US&locale=fr&repo=central&recherche=home

JSON feed for the search http://transvision.mozfr.org/?sourcelocale=en-US&locale=fr&repo=central&recherche=home&json

JSONP feed for the search http://transvision.mozfr.org/?sourcelocale=en-US&locale=fr&repo=central&recherche=home&json&callback=myFunction

Additional notes:

  • Data generated as JSON or JSONP output is sent with CORS headers.
  • JSON data is sent with the application/json Mime Type
  • JSONP data is sent with the application/javascript Mime Type
Clone this wiki locally