Get office listing statistics
Returns a page of listing statistics for all current listings listed by the calling office, including a break up by day and suburb. The office is the authenticated member making the request, so this call takes no member ID.
Authentication: requires the MyTradeMeRead permission. This is the office-level view: statistics are returned for the listings of the authenticated member, so call it with the office account's credentials. There is no way to request another member's listings. To see one agent's listings use Agents/{memberId}/LiveListingStatistics. Errors: HTTP 429 with "You have exceeded your API call quota for the current hour." when the hourly rate limit is exceeded. 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/Office/ListingStatistics.{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
| file_format | Enumeration (required) | The format of the response. | ||||
|---|---|---|---|---|---|---|
|
||||||
Query String parameters
| days | Integer (optional) |
The number of days of statistical data to retrieve, ending yesterday. Defaults to 30. 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. |
| page | Integer (optional) |
The page number of the set of results to return, starting from 1. Defaults to 1 when omitted or less than 1. |
| 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
<ListingStatisticsPagedCollection>
A ListingStatisticsPagedCollection with one entry per listing. TotalCount, Page, PageSize and TotalPages describe the paging.
| TotalCount | Integer |
The total number of results in the collection. Can be larger than the number of returned results. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Page | Integer |
The index of the current page of results (starts at 1). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PageSize | Integer |
The number of results in the current page. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| List | Collection of <ListingStatistics> or null |
A list of the results in the current page. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TotalPages | Integer or null |
Total number of pages available |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||