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. | ||||
|
||||||
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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OfficeDailyStatistics | Collection of <OfficeDailyListingStatistics> or null |
The daily statistics for the office's combined live listings for the requested date range. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||