The New Zealand Companies Office is pretty special - the extent of publicly available information is world class. Particularly when compared with ASIC where users have to pay for search results. Access to full historical directorships, major shareholdings and key data is pretty useful.


There are some technical difficulties with the ‘Restful’ API which can make even the simplest functionality or reporting incredibly a little frustrating in a production application! Some significant functionality is not available through the API but can be retrieved with a little bit of HTTP trickery.



Packaged in a Gem


I’ve just released a Ruby Gem to make any Rails integration a walk in the park. The key features include full authentication (a real lifesaver), search functions and returning ready-to-parse xml.

Simple and fast authenticating API wrapper for the New Zealand Companies Office. Full functionality to search by company name, company number and director.

Usage Example:

    # View
	<%= NZcoapi.find_company(973228).css('companyName').text %>

    # Returns
	Trade Me Limited

    # (Magic !)

Flick me a message @t_pearse if there are any queries on development using the above gem (or API).