FOR PUBLISHERS, PROPERTY PORTALS AND COUNCILS
Put "what's in the tap water here" on your own page.
One script tag. The widget reads each council's own lab results, released under official information law, and shows the numbers for any New Zealand suburb or postcode against both the legal limit and the international health guideline. Free to embed, with attribution. Nothing to install, nothing to maintain - the data stays live from our record.
THE SNIPPET
Paste this. That is the whole install.
Add the script once, then place a div wherever you want a report. Set the suburb (or postcode) for the page you are on - a listing, a district page, a news story. One script can drive any number of widgets on the same page.
<script async src="https://nobrainerwater.co.nz/embed.js"></script> <div data-nbw-water data-suburb="Riccarton"></div>
Leave out the suburb and postcode and the widget shows a small search box instead, so a reader can type their own place.
ATTRIBUTES
| Attribute | What it does | Default |
|---|---|---|
data-nbw-water | Marks the element as a widget mount. Required. | - |
data-suburb | Suburb or town name, matched against the same place list the site's own report uses. Any spelling with the place name in it works, for example "Riccarton, Christchurch". | none (search box) |
data-postcode | Four-digit NZ postcode. Checked first when given, so it is the most precise way to pick a supply zone. Combine with data-suburb to control the displayed name. | none |
data-theme | light or dark. Dark is the report navy with white type, for dark host pages. | light |
data-attribution-name | The publisher name shown in the footer line. Keep the link to the full report either way. | What's In My Water by No Brainer Water Co. |
Pages that render content after load can call window.NBWWater.scan() to mount any widget added since.
LIVE DEMO
Three places, three answers.
A covered council supply, an Auckland Watercare zone, and a town whose council has not answered yet. All rendered by the widget on this page, from the live data file.
TERMS
Free to embed, with attribution.
You may embed the widget on any website at no cost, provided the attribution line and its link to the full report stay in place. The data stays live from our record, so numbers update as councils release new results - you never need to touch the snippet. We may update the design of the widget over time; the attributes above are stable. The data is council monitoring, reproduced as released, and is not health advice.
Questions, a district you want covered, or a custom build: hello@nobrainerwater.co.nz.