The Auckland Traffic API lets you access real time data on traffic conditions in Auckland. The API makes available three sets of data:
These are REST XML services. Access to the REST XML services is restricted requires a username and password to be supplied as custom HTTP headers. You will need to register for a user name and password.
(external link)
Host:infoconnect1.highwayinfo.govt.nz User-Agent: Custom Application Accept-Encoding:gzip,deflate username: Your API Username password: Your API Password
To preview the services, we would recommend using a tool such as cURL(external link).
curl -k -H "username: Your API Username" -H "password: Your API Password" https://infoconnect1.highwayinfo.govt.nz/ic/jbi/TrafficCameras/REST/FeedService/
Alternatively, you can install the Tamper Data(external link) plug-in for the Firefox web browser, which will allow you to add the custom HTTP header variables for the username and password to the request, so that you view the XML in your browser.