TheyWorkForYou API
convertURL function

Converts a Hansard URL into a TheyWorkForYou one, if possible.


url (required)
The URL you wish to convert, e.g.

Example Response

    gid : "",
    url : ""

Example Use

This probably counts as "AJAX", though it doesn't use XMLHTTP, asynchronicity, or XML, only cross-site JavaScript... It's definitely Web 2.1, at least.

  • Hansard prettifier - drag this bookmarklet to your bookmarks bar, or bookmark it. Then if you ever find yourself on the official site, clicking this will try and take you to the equivalent page on TheyWorkForYou. (Tested in IE, Firefox, Opera.)


Try out this function without writing any code!