Get property office live listing statistics
Retrieves the live (currently open) property listings of an office, together with basic statistics for each listing and daily statistics for the office as a whole. The listings returned are those of all agents in the office. This endpoint is available for all Trade Me partner API accounts. It is rate limited per consumer per hour.
Authentication: requires the MyTradeMeRead permission. This is the office-level view: the caller must act for the office identified by officeMemberId, either by being that office or by being a member with a confirmed connection to it. Any other caller receives HTTP 403. To see one agent's listings use Agents/{memberId}/LiveListingStatistics instead. 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 office. 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. The call fails with HTTP 500 and a generic server error message if officeMemberId has no office profile.
| URL: | https://api.trademe.co.nz/v1/Property/Office/{officeMemberId}/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
| officeMemberId | Integer (required) |
The Trade Me member ID of the office (agency) account. Must be an integer and must belong to an office account. |
||||
|---|---|---|---|---|---|---|
| file_format | Enumeration (required) | The format of the response. | ||||
|
||||||
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) |
Start date (yyyy-MM-dd) for date range query. Must be provided with to_date. Overrides the days parameter. Maximum 31-day range. |
| to_date | String (optional) |
End date (yyyy-MM-dd) for date range query. Must be provided with from_date. Overrides the days parameter. Maximum 31-day range. |
Returns
<LivePropertyListingStatistics>
A LivePropertyListingStatistics containing one entry per live listing in the office and one entry per day for the office.
| 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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OfficeDailyStatistics | Collection of <OfficeDailyListingStatistics> or null |
The daily statistics for the office's combined live listings for the requested date range. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||