API keys, filters and limits
LINZ Data Service web services require an LDS API key. This is different from the temporary key used by LINZ Basemaps.
Create an LDS API key
- Open LINZ Data Service.
- Sign in. If you do not yet have an LDS account, create one first.
- Click your name in the top menu.
- Choose API Keys.
- Click Create API Key.
- Enter a useful label such as
QGIS desktop. - Choose Data access only for normal GIS use.
- Click Add.
- Copy the key and keep it somewhere you can retrieve it when setting up QGIS connections.
Official instructions: Creating an API key.
Do not manually invent a layer URL
The easiest method is to let LDS generate the correct service URL for the dataset.
- Open LINZ Data Service.
- Search for the dataset you need.
- Open the dataset page.
- Open its Services tab.
- Choose the service you need, usually WFS for vector features or WMTS for raster/map tiles.
- If you are signed in, LDS inserts your API key into the URL automatically.
- Copy the complete URL and paste it into QGIS.
For example, the public dataset page for current primary cadastral parcels is NZ Primary Parcels.
A layer-specific WFS address follows this pattern:
https://data.linz.govt.nz/services;key=YOUR_API_KEY/wfs/layer-LAYER_ID?service=WFS&request=GetCapabilities
You normally do not need to type this from scratch. Copy it from the dataset's Services tab.
Keep large requests small
National parcels, addresses and similar datasets can contain millions of features. Do not connect to a large national layer and immediately request every feature.
In QGIS WFS connections:
- Zoom the map to the rohe or study area first.
- Open Data Source Manager → WFS / OGC API - Features.
- Select the connection.
- Enable Only request features overlapping the view extent.
- Click Connect and add the layer.
- If QGIS offers WFS paging, enable it and use a moderate page size. LINZ's QGIS guidance recommends no more than 10,000 features per page.
For analysis that needs a fixed local copy, export the resulting features to a GeoPackage after loading them.
Filters for repeatable requests
LDS WFS supports spatial and attribute filtering. Useful approaches include:
- map/view extent in QGIS
- bounding box filters
- attribute or ECQL filters
IntersectsandWithin- WFS paging
- layer-specific connections instead of the national all-layers service
LINZ documents the filter syntax at WFS filter methods and parameters and WFS spatial filtering.
Keep the key out of public files
An LDS key is a credential. Do not put your real key into a public GitHub repository, public screenshot or training document. If a QGIS project containing a service URL will be published, remove or replace the key first.
If a service times out
Reduce the request before retrying. Zoom to a smaller area, use a filter, use paging, or download a cropped extract from LDS instead. See LINZ WFS timeouts.
Last reviewed: 27 August 2026