Website logo

Get property agent live listing statistics

Retrieves the live (currently open) property listings of one agent, with basic statistics for each listing and daily statistics for the agent's office. This endpoint is available for all Trade Me partner API accounts, however it is rate limited to 100 calls per hour per consumer.

Authentication: requires the MyTradeMeRead permission. The caller must be the agent themselves, the office the agent belongs to, or a member with a confirmed connection to the agent (a delegate). An office can only request agents that belong to that office. Any other caller receives HTTP 403. A delegate cannot request an agent whose account is an administrator account. This is the agent-level view. To see statistics for all of an office's listings use the office endpoints (Office/{officeMemberId}/LiveListingStatistics or Office/ListingStatistics). Errors: HTTP 429 with "You have exceeded your API call quota for the current hour." when the hourly rate limit is exceeded. HTTP 403 when the caller is not permitted to act for the agent. HTTP 400 when days is outside 1 to 31, when only one of from_date and to_date is supplied, when a date is not a valid date, when from_date is after to_date, or when the date range is longer than 31 days.

URL: https://api.trademe.co.nz/v1/Property/Agents/{memberId}/LiveListingStatistics.{file_format}
HTTP Method: GET
Requires Authentication? Yes
Permission Required: MyTradeMeRead: Read your membership & listing data.
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

memberId Integer (required)

The Trade Me member ID of the agent (an individual agent, not the office). Must be an integer.

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

Query String parameters

days Integer (optional)

The number of days of statistics to retrieve, ending yesterday. Integer, defaults to 30 when omitted. Minimum 1, maximum 31. Ignored if from_date and to_date are provided.

from_date String (optional)

The start date for statistics (inclusive, format: yyyy-MM-dd). If provided, to_date must also be provided. Overrides the days parameter. Maximum 31-day range.

to_date String (optional)

The end date for statistics (inclusive, format: yyyy-MM-dd). If provided, from_date must also be provided. Overrides the days parameter. Maximum 31-day range.

Returns

<LivePropertyListingStatistics>

A LivePropertyListingStatistics containing one entry per live listing for the agent and one entry per day for the agent's office. If the member is not a property agent, an empty result is returned.

LiveListingStatistics Collection of <ListingStatistics> or null

The live listings with basic statistics for each. For the agent endpoint these are the agent's listings; for the office endpoint they are the office's listings.

ListingId Integer

The Trade Me listing ID. Always returned.

WatcherCount Integer

The number of watchers of this listing.

EnquiryCount Integer

The number of enquiries about this listing.

IsSuperFeatured Boolean

True if this is a Super Featured listing.

DailyStatistics Collection of <DailyListingStatistics> or null

The daily statistics for this listing for the requested date range (the days parameter or from_date and to_date).

Day DateTime

The calendar day these statistics relate to (a New Zealand date). Serialised in the Microsoft JSON date format, for example /Date(1735642800000+1300)/.

NewViewCount Integer

The number of times the listing was viewed on this day. Omitted from the response when 0.

NewImpressionsCount Integer

The number of impressions of this listing on this day. Omitted from the response when 0.

PerSuburbWatchersStatistics Collection of <PerSuburbListingStatistics> or null

The current number of watchers of this listing, broken down by the suburb and region of each watcher.

CurrentCount Integer

The number of watchers or views from this suburb, depending on which collection the item is in.

SuburbId Integer

The Trade Me ID of the suburb the watchers or viewers are in.

SuburbName String or null

The name of the suburb the watchers or viewers are in.

RegionId Integer

The Trade Me ID of the region the suburb is in.

RegionName String or null

The name of the region the suburb is in.

GSRegionId Integer

The ID of the geospatial region the suburb is in.

PerSuburbViewsStatistics Collection of <PerSuburbListingStatistics> or null

The current number of views of this listing, broken down by the suburb and region of each viewer.

(This type has already been defined)
ClickToCallCount Integer

The number of click to call actions for this listing.

MemberIds Collection of Integer or null

The Trade Me member IDs of the agents the listing is assigned to. A listing can be assigned to more than one agent.

ImpressionsCount Integer

The total number of impressions of this listing. 0 when no impression statistics are available. Always returned.

ImpressionsInPeriod Integer

The number of impressions in the requested date range, which is the total of NewImpressionsCount across DailyStatistics. Always returned.

ImpressionsCountAvgPerDay Integer

The average number of impressions per day for this listing, as a whole number. 0 when no impression statistics are available. Always returned.

OfficeDailyStatistics Collection of <OfficeDailyListingStatistics> or null

The daily statistics for the office's combined live listings for the requested date range.

Day DateTime

The calendar day these statistics relate to (a New Zealand date). Serialised in the Microsoft JSON date format, for example /Date(1735642800000+1300)/.

ListingCount Integer

The number of listings the office had on this day. Omitted from the response when 0.

NewViewCount Integer

The number of times the office's listings were viewed on this day. Omitted from the response when 0.

NewImpressionCount Integer

The number of impressions of the office's listings on this day. Omitted when 0, and always omitted by the agent endpoint, which does not return office impression counts.

Example XML Response (switch to JSON)

<LivePropertyListingStatistics xmlns="http://api.trademe.co.nz/v1">
  <LiveListingStatistics>
    <ListingStatistics>
      <ListingId>123</ListingId>
      <WatcherCount>123</WatcherCount>
      <EnquiryCount>123</EnquiryCount>
      <IsSuperFeatured>false</IsSuperFeatured>
      <DailyStatistics>
        <DailyListingStatistics>
          <Day>2018-01-01T00:00:00Z</Day>
          <NewViewCount>123</NewViewCount>
          <NewImpressionsCount>123</NewImpressionsCount>
        </DailyListingStatistics>
        <DailyListingStatistics>
          <Day>2018-01-01T00:00:00Z</Day>
          <NewViewCount>123</NewViewCount>
          <NewImpressionsCount>123</NewImpressionsCount>
        </DailyListingStatistics>
      </DailyStatistics>
      <PerSuburbWatchersStatistics>
        <PerSuburbListingStatistics>
          <CurrentCount>123</CurrentCount>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <RegionId>123</RegionId>
          <RegionName>ABC</RegionName>
          <GSRegionId>123</GSRegionId>
        </PerSuburbListingStatistics>
        <PerSuburbListingStatistics>
          <CurrentCount>123</CurrentCount>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <RegionId>123</RegionId>
          <RegionName>ABC</RegionName>
          <GSRegionId>123</GSRegionId>
        </PerSuburbListingStatistics>
      </PerSuburbWatchersStatistics>
      <PerSuburbViewsStatistics>
        <PerSuburbListingStatistics />
        <PerSuburbListingStatistics />
      </PerSuburbViewsStatistics>
      <ClickToCallCount>123</ClickToCallCount>
      <MemberIds>
        <int>123</int>
        <int>123</int>
      </MemberIds>
      <ImpressionsCount>123</ImpressionsCount>
      <ImpressionsInPeriod>123</ImpressionsInPeriod>
      <ImpressionsCountAvgPerDay>123</ImpressionsCountAvgPerDay>
    </ListingStatistics>
    <ListingStatistics>
      <ListingId>123</ListingId>
      <WatcherCount>123</WatcherCount>
      <EnquiryCount>123</EnquiryCount>
      <IsSuperFeatured>false</IsSuperFeatured>
      <DailyStatistics>
        <DailyListingStatistics>
          <Day>2018-01-01T00:00:00Z</Day>
          <NewViewCount>123</NewViewCount>
          <NewImpressionsCount>123</NewImpressionsCount>
        </DailyListingStatistics>
        <DailyListingStatistics>
          <Day>2018-01-01T00:00:00Z</Day>
          <NewViewCount>123</NewViewCount>
          <NewImpressionsCount>123</NewImpressionsCount>
        </DailyListingStatistics>
      </DailyStatistics>
      <PerSuburbWatchersStatistics>
        <PerSuburbListingStatistics>
          <CurrentCount>123</CurrentCount>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <RegionId>123</RegionId>
          <RegionName>ABC</RegionName>
          <GSRegionId>123</GSRegionId>
        </PerSuburbListingStatistics>
        <PerSuburbListingStatistics>
          <CurrentCount>123</CurrentCount>
          <SuburbId>123</SuburbId>
          <SuburbName>ABC</SuburbName>
          <RegionId>123</RegionId>
          <RegionName>ABC</RegionName>
          <GSRegionId>123</GSRegionId>
        </PerSuburbListingStatistics>
      </PerSuburbWatchersStatistics>
      <PerSuburbViewsStatistics>
        <PerSuburbListingStatistics />
        <PerSuburbListingStatistics />
      </PerSuburbViewsStatistics>
      <ClickToCallCount>123</ClickToCallCount>
      <MemberIds>
        <int>123</int>
        <int>123</int>
      </MemberIds>
      <ImpressionsCount>123</ImpressionsCount>
      <ImpressionsInPeriod>123</ImpressionsInPeriod>
      <ImpressionsCountAvgPerDay>123</ImpressionsCountAvgPerDay>
    </ListingStatistics>
  </LiveListingStatistics>
  <OfficeDailyStatistics>
    <OfficeDailyListingStatistics>
      <Day>2018-01-01T00:00:00Z</Day>
      <ListingCount>123</ListingCount>
      <NewViewCount>123</NewViewCount>
      <NewImpressionCount>123</NewImpressionCount>
    </OfficeDailyListingStatistics>
    <OfficeDailyListingStatistics>
      <Day>2018-01-01T00:00:00Z</Day>
      <ListingCount>123</ListingCount>
      <NewViewCount>123</NewViewCount>
      <NewImpressionCount>123</NewImpressionCount>
    </OfficeDailyListingStatistics>
  </OfficeDailyStatistics>
</LivePropertyListingStatistics>

Example JSON Response (switch to XML)

{
  "LiveListingStatistics": [
    {
      "ListingId": 123,
      "WatcherCount": 123,
      "EnquiryCount": 123,
      "IsSuperFeatured": false,
      "DailyStatistics": [
        {
          "Day": "\/Date(1514764800)\/",
          "NewViewCount": 123,
          "NewImpressionsCount": 123
        },
        {
          "Day": "\/Date(1514764800)\/",
          "NewViewCount": 123,
          "NewImpressionsCount": 123
        }
      ],
      "PerSuburbWatchersStatistics": [
        {
          "CurrentCount": 123,
          "SuburbId": 123,
          "SuburbName": "ABC",
          "RegionId": 123,
          "RegionName": "ABC",
          "GSRegionId": 123
        },
        {
          "CurrentCount": 123,
          "SuburbId": 123,
          "SuburbName": "ABC",
          "RegionId": 123,
          "RegionName": "ABC",
          "GSRegionId": 123
        }
      ],
      "PerSuburbViewsStatistics": [
        {
        },
        {
        }
      ],
      "ClickToCallCount": 123,
      "MemberIds": [
        123,
        123
      ],
      "ImpressionsCount": 123,
      "ImpressionsInPeriod": 123,
      "ImpressionsCountAvgPerDay": 123
    },
    {
      "ListingId": 123,
      "WatcherCount": 123,
      "EnquiryCount": 123,
      "IsSuperFeatured": false,
      "DailyStatistics": [
        {
          "Day": "\/Date(1514764800)\/",
          "NewViewCount": 123,
          "NewImpressionsCount": 123
        },
        {
          "Day": "\/Date(1514764800)\/",
          "NewViewCount": 123,
          "NewImpressionsCount": 123
        }
      ],
      "PerSuburbWatchersStatistics": [
        {
          "CurrentCount": 123,
          "SuburbId": 123,
          "SuburbName": "ABC",
          "RegionId": 123,
          "RegionName": "ABC",
          "GSRegionId": 123
        },
        {
          "CurrentCount": 123,
          "SuburbId": 123,
          "SuburbName": "ABC",
          "RegionId": 123,
          "RegionName": "ABC",
          "GSRegionId": 123
        }
      ],
      "PerSuburbViewsStatistics": [
        {
        },
        {
        }
      ],
      "ClickToCallCount": 123,
      "MemberIds": [
        123,
        123
      ],
      "ImpressionsCount": 123,
      "ImpressionsInPeriod": 123,
      "ImpressionsCountAvgPerDay": 123
    }
  ],
  "OfficeDailyStatistics": [
    {
      "Day": "\/Date(1514764800)\/",
      "ListingCount": 123,
      "NewViewCount": 123,
      "NewImpressionCount": 123
    },
    {
      "Day": "\/Date(1514764800)\/",
      "ListingCount": 123,
      "NewViewCount": 123,
      "NewImpressionCount": 123
    }
  ]
}