Website logo

Get region details based on regionId.

Get region details based on regionId. The regionId is the region's locality id, as used by v1/Localities/Region/{regionId}. E.g 3 for Canterbury

URL: https://api.trademe.co.nz/v1/Property/Sold/Region/{regionId}.{file_format}
HTTP Method: GET
Requires Authentication? Yes
Permission Required: None
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

regionId Integer (required)

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

Query String parameters

page Integer (optional)

Page of the LocalInsights "Latest performance" suburb table, 12 per page. Default is 1. Ignored without return_local_insights=true

return_local_insights Boolean (optional)

Returns LocalInsights, the region's market data from Property Core, and StaticMapsImage. Default is false

Returns

<SoldRegionSearchResponse>

Details of the region.

RegionId Integer

Region id, as used by v1/Localities/Region/{regionId}

RegionName String or null

Region name; E.g Canterbury

NearbyRegions Collection of <SoldRegionSummary> or null

Nearby regions from a fixed list, in display order. Empty when the region has none.

RegionId Integer

Region id, as used by v1/Localities/Region/{regionId}

RegionName String or null

Region name; E.g Canterbury

StaticMapsImage String or null

Signed Google Static Maps image URL (400x400, scale 2, POI labels hidden) centred on the region. Only returned with return_local_insights=true, and left out when the URL can't be made.

LocalInsights <RegionLocalInsights> or null

Local market data from Property Core (headline stats, sale and rental trends, "Latest performance" suburb table). Only returned with return_local_insights=true, and left out when the region has no market data or Property Core is unavailable.

AsOfDate Integer or null

When the figures were last refreshed, as a Unix timestamp in seconds (UTC)

Metrics Collection of <SuburbLocalInsightsMetric> or null

Headline stats. A stat with too little underlying data is left out

Key String or null

Stat key, e.g. medianSalePrice

Label String or null

Display label, e.g. Median Sale Price

Value String or null

Formatted value, e.g. $1,250,000

ChangeText String or null

Formatted change, e.g. -44.4% vs prior year

ChangeDirection String or null

Direction of the change: positive, negative or neutral

Trends <SuburbLocalInsightsTrends> or null

Sale and rental trend charts

Sale <SuburbLocalInsightsTrend> or null

Median sale price vs asking price

Title String or null

Chart title, e.g. Grey Lynn Price trends

Subtitle String or null

Chart subtitle

Chart <SuburbLocalInsightsChart> or null

Axis units and series styles for drawing the chart

XAxis String or null

X axis field, e.g. date

YAxisUnit String or null

Primary Y axis unit, e.g. NZD

SecondaryYAxisUnit String or null

Secondary Y axis unit, e.g. count

Series Collection of <SuburbLocalInsightsChartSeries> or null

Series drawn on the chart

Key String or null

Series key, e.g. salePrice

Label String or null

Display label, e.g. Sale Price

Style String or null

Line style: solid or dashed

YAxis String or null

Y axis the series is drawn against: primary or secondary

Ranges Collection of <SuburbLocalInsightsRange> or null

Chart ranges: 1y (monthly points) and 3y (quarterly points)

Period String or null

Range period: 1y or 3y

Label String or null

Display label, e.g. 1 Year

Grain String or null

Point grain: month or quarter

Series Collection of <SuburbLocalInsightsSeries> or null

Data points per series

Key String or null

Series key, matching SuburbLocalInsightsChartSeries.Key

Data Collection of <SuburbLocalInsightsDataPoint> or null

Data points in date order

Date Integer

Start of the period, as a Unix timestamp in seconds (UTC)

Value Number or null

Raw value, or null when the period has no data

ValueDisplay String or null

Formatted value, e.g. $1,250,000, or null when the period has no data

Metrics Collection of <SuburbLocalInsightsMetric> or null

Tiles shown with the range

(This type has already been defined)
Rental <SuburbLocalInsightsTrend> or null

Median weekly rental price and rental supply

(This type has already been defined)
SuburbPerformance <RegionSuburbPerformance> or null

One page of the "Latest performance" table of the region's suburbs. Left out when the region has no suburb data

Title String or null

Table title, e.g. Latest performance

AsOfDate Integer or null

When the table's figures were last refreshed, as a Unix timestamp in seconds (UTC)

Columns Collection of <RegionSuburbPerformanceColumn> or null

Column keys and display labels, in display order

Key String or null

Column key, e.g. medianSalePrice. The numeric column keys match the row's cell fields; the suburb column is rendered from the row's SuburbName and CityName

Label String or null

Display label, e.g. Median Sale Price

Page Integer

Page returned, starting at 1

PageSize Integer

Suburbs per page

TotalCount Integer

Total suburbs across all pages

TotalPages Integer

Total pages

List Collection of <RegionSuburbPerformanceRow> or null

The suburbs on this page. Named List (with Page, PageSize and TotalCount) so the API reference generator maps it as a paged result set; as Rows it was taken for the page-size number of paged params and its TypeScript did not compile

SuburbId Integer

Suburb id, as used by v1/Localities

SuburbName String or null

Suburb name, e.g. Fendalton

CityName String or null

The suburb's city (district) name, e.g. Christchurch, for linking to its suburb profile page. Left out when the suburb isn't known

MedianSalePrice <RegionSuburbPerformanceCell> or null

Median sale price over the last year

Value Number

Raw value. Always returned, so a growth of exactly 0 is not mistaken for missing data

ValueDisplay String or null

Formatted value, e.g. $1.25M or +3.1%

ChangeDirection String or null

Direction of the change: positive, negative or neutral. Only on the growth cells

AnnualCapitalGrowth <RegionSuburbPerformanceCell> or null

Annual change in median sale price, as a percentage

(This type has already been defined)
MedianRentWeekly <RegionSuburbPerformanceCell> or null

Median weekly rent over the last year

(This type has already been defined)
AnnualRentalGrowth <RegionSuburbPerformanceCell> or null

Annual change in median weekly rent, as a percentage

(This type has already been defined)

Example XML Response (switch to JSON)

<SoldRegionSearchResponse xmlns="http://api.trademe.co.nz/v1">
  <RegionId>123</RegionId>
  <RegionName>ABC</RegionName>
  <NearbyRegions>
    <SoldRegionSummary>
      <RegionId>123</RegionId>
      <RegionName>ABC</RegionName>
    </SoldRegionSummary>
    <SoldRegionSummary>
      <RegionId>123</RegionId>
      <RegionName>ABC</RegionName>
    </SoldRegionSummary>
  </NearbyRegions>
  <StaticMapsImage>ABC</StaticMapsImage>
  <LocalInsights>
    <AsOfDate>123</AsOfDate>
    <Metrics>
      <SuburbLocalInsightsMetric>
        <Key>ABC</Key>
        <Label>ABC</Label>
        <Value>ABC</Value>
        <ChangeText>ABC</ChangeText>
        <ChangeDirection>ABC</ChangeDirection>
      </SuburbLocalInsightsMetric>
      <SuburbLocalInsightsMetric>
        <Key>ABC</Key>
        <Label>ABC</Label>
        <Value>ABC</Value>
        <ChangeText>ABC</ChangeText>
        <ChangeDirection>ABC</ChangeDirection>
      </SuburbLocalInsightsMetric>
    </Metrics>
    <Trends>
      <Sale>
        <Title>ABC</Title>
        <Subtitle>ABC</Subtitle>
        <Chart>
          <XAxis>ABC</XAxis>
          <YAxisUnit>ABC</YAxisUnit>
          <SecondaryYAxisUnit>ABC</SecondaryYAxisUnit>
          <Series>
            <SuburbLocalInsightsChartSeries>
              <Key>ABC</Key>
              <Label>ABC</Label>
              <Style>ABC</Style>
              <YAxis>ABC</YAxis>
            </SuburbLocalInsightsChartSeries>
            <SuburbLocalInsightsChartSeries>
              <Key>ABC</Key>
              <Label>ABC</Label>
              <Style>ABC</Style>
              <YAxis>ABC</YAxis>
            </SuburbLocalInsightsChartSeries>
          </Series>
        </Chart>
        <Ranges>
          <SuburbLocalInsightsRange>
            <Period>ABC</Period>
            <Label>ABC</Label>
            <Grain>ABC</Grain>
            <Series>
              <SuburbLocalInsightsSeries>
                <Key>ABC</Key>
                <Data>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                </Data>
              </SuburbLocalInsightsSeries>
              <SuburbLocalInsightsSeries>
                <Key>ABC</Key>
                <Data>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                </Data>
              </SuburbLocalInsightsSeries>
            </Series>
            <Metrics>
              <SuburbLocalInsightsMetric />
              <SuburbLocalInsightsMetric />
            </Metrics>
          </SuburbLocalInsightsRange>
          <SuburbLocalInsightsRange>
            <Period>ABC</Period>
            <Label>ABC</Label>
            <Grain>ABC</Grain>
            <Series>
              <SuburbLocalInsightsSeries>
                <Key>ABC</Key>
                <Data>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                </Data>
              </SuburbLocalInsightsSeries>
              <SuburbLocalInsightsSeries>
                <Key>ABC</Key>
                <Data>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                  <SuburbLocalInsightsDataPoint>
                    <Date>123</Date>
                    <Value>123.0</Value>
                    <ValueDisplay>ABC</ValueDisplay>
                  </SuburbLocalInsightsDataPoint>
                </Data>
              </SuburbLocalInsightsSeries>
            </Series>
            <Metrics>
              <SuburbLocalInsightsMetric />
              <SuburbLocalInsightsMetric />
            </Metrics>
          </SuburbLocalInsightsRange>
        </Ranges>
      </Sale>
      <Rental />
    </Trends>
    <SuburbPerformance>
      <Title>ABC</Title>
      <AsOfDate>123</AsOfDate>
      <Columns>
        <RegionSuburbPerformanceColumn>
          <Key>ABC</Key>
          <Label>ABC</Label>
        </RegionSuburbPerformanceColumn>
        <RegionSuburbPerformanceColumn>
          <Key>ABC</Key>
          <Label>ABC</Label>
        </RegionSuburbPerformanceColumn>
      </Columns>
      <Page>123</Page>
      <PageSize>123</PageSize>
      <TotalCount>123</TotalCount>
      <TotalPages>123</TotalPages>
      <List>
        <RegionSuburbPerformanceRow>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <CityName>ABC</CityName>
          <MedianSalePrice>
            <Value>123.0</Value>
            <ValueDisplay>ABC</ValueDisplay>
            <ChangeDirection>ABC</ChangeDirection>
          </MedianSalePrice>
          <AnnualCapitalGrowth />
          <MedianRentWeekly />
          <AnnualRentalGrowth />
        </RegionSuburbPerformanceRow>
        <RegionSuburbPerformanceRow>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <CityName>ABC</CityName>
          <MedianSalePrice>
            <Value>123.0</Value>
            <ValueDisplay>ABC</ValueDisplay>
            <ChangeDirection>ABC</ChangeDirection>
          </MedianSalePrice>
          <AnnualCapitalGrowth />
          <MedianRentWeekly />
          <AnnualRentalGrowth />
        </RegionSuburbPerformanceRow>
      </List>
    </SuburbPerformance>
  </LocalInsights>
</SoldRegionSearchResponse>

Example JSON Response (switch to XML)

{
  "RegionId": 123,
  "RegionName": "ABC",
  "NearbyRegions": [
    {
      "RegionId": 123,
      "RegionName": "ABC"
    },
    {
      "RegionId": 123,
      "RegionName": "ABC"
    }
  ],
  "StaticMapsImage": "ABC",
  "LocalInsights": {
    "AsOfDate": 123,
    "Metrics": [
      {
        "Key": "ABC",
        "Label": "ABC",
        "Value": "ABC",
        "ChangeText": "ABC",
        "ChangeDirection": "ABC"
      },
      {
        "Key": "ABC",
        "Label": "ABC",
        "Value": "ABC",
        "ChangeText": "ABC",
        "ChangeDirection": "ABC"
      }
    ],
    "Trends": {
      "Sale": {
        "Title": "ABC",
        "Subtitle": "ABC",
        "Chart": {
          "XAxis": "ABC",
          "YAxisUnit": "ABC",
          "SecondaryYAxisUnit": "ABC",
          "Series": [
            {
              "Key": "ABC",
              "Label": "ABC",
              "Style": "ABC",
              "YAxis": "ABC"
            },
            {
              "Key": "ABC",
              "Label": "ABC",
              "Style": "ABC",
              "YAxis": "ABC"
            }
          ]
        },
        "Ranges": [
          {
            "Period": "ABC",
            "Label": "ABC",
            "Grain": "ABC",
            "Series": [
              {
                "Key": "ABC",
                "Data": [
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  },
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  }
                ]
              },
              {
                "Key": "ABC",
                "Data": [
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  },
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  }
                ]
              }
            ],
            "Metrics": [
              {
              },
              {
              }
            ]
          },
          {
            "Period": "ABC",
            "Label": "ABC",
            "Grain": "ABC",
            "Series": [
              {
                "Key": "ABC",
                "Data": [
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  },
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  }
                ]
              },
              {
                "Key": "ABC",
                "Data": [
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  },
                  {
                    "Date": 123,
                    "Value": 123.0,
                    "ValueDisplay": "ABC"
                  }
                ]
              }
            ],
            "Metrics": [
              {
              },
              {
              }
            ]
          }
        ]
      },
      "Rental": {
      }
    },
    "SuburbPerformance": {
      "Title": "ABC",
      "AsOfDate": 123,
      "Columns": [
        {
          "Key": "ABC",
          "Label": "ABC"
        },
        {
          "Key": "ABC",
          "Label": "ABC"
        }
      ],
      "Page": 123,
      "PageSize": 123,
      "TotalCount": 123,
      "TotalPages": 123,
      "List": [
        {
          "SuburbId": 123,
          "SuburbName": "ABC",
          "CityName": "ABC",
          "MedianSalePrice": {
            "Value": 123.0,
            "ValueDisplay": "ABC",
            "ChangeDirection": "ABC"
          },
          "AnnualCapitalGrowth": {
          },
          "MedianRentWeekly": {
          },
          "AnnualRentalGrowth": {
          }
        },
        {
          "SuburbId": 123,
          "SuburbName": "ABC",
          "CityName": "ABC",
          "MedianSalePrice": {
            "Value": 123.0,
            "ValueDisplay": "ABC",
            "ChangeDirection": "ABC"
          },
          "AnnualCapitalGrowth": {
          },
          "MedianRentWeekly": {
          },
          "AnnualRentalGrowth": {
          }
        }
      ]
    }
  }
}