Retrieve Property, Jobs and Services individual suburb
Returns a specific suburb. These values are used in Trade Me Property, Trade Me Jobs and Services.
| URL: | https://api.trademe.co.nz/v1/localities/region/{regionId}/{districtId}/{suburbId}.{file_format} |
|---|---|
| HTTP Method: | GET |
| Requires Authentication? | No |
| Permission Required: | Public |
| Supported Formats: | XML, JSON |
| Rate Limited? | No |
URL parameters
| regionId | Integer (required) |
The region ID. |
||||
|---|---|---|---|---|---|---|
| districtId | Integer (required) |
The district ID. |
||||
| suburbId | Integer (required) |
The suburb ID. |
||||
| file_format | Enumeration (required) | The format of the response. | ||||
|
||||||
Query String parameters
| listing_type | String (optional) |
The type of listing to include in the count property, if with_counts is true. Valid values are "HOUSES_TO_BUY", "HOUSES_TO_RENT", "COMMERCIAL_FOR_SALE", "COMMERCIAL_FOR_LEASE", "FLATMATES_WANTED", "RURAL", "RETIREMENT_VILLAGES" and "LIFESTYLE". Defaults to "HOUSES_TO_BUY". |
|---|---|---|
| with_counts | Boolean (optional) |
Indicates whether to include the listing count for each suburb. Defaults to false. |
Returns
Collection of <Locality>
| LocalityId | Integer |
The ID of the region. |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | String or null |
The name of the region. |
||||||||||||||||||||||||||||||||||||||||||||||
| Districts | Collection of <District> or null |
The list of districts that belong to this region. |
||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Count | Integer |
The number of items being sold in this region. |
||||||||||||||||||||||||||||||||||||||||||||||
| SeoDrivenUrl | <SeoDrivenUrl> or null |
Canonical URL to this region |
||||||||||||||||||||||||||||||||||||||||||||||
| (This type has already been defined) | ||||||||||||||||||||||||||||||||||||||||||||||||
Examples
https://api.trademe.co.nz/v1/Localities/Region/9/2/3055.xml - Retrieves the suburb Central Whangarei within Whangarei.