Website logo

Retrieve site statistics

Retrieves statistics about the Trade Me website, including the number of active members and the number of active listings.

URL: https://api.trademe.co.nz/v1/SiteStats.{file_format}
HTTP Method: GET
Requires Authentication? No
Permission Required: Public
Supported Formats: XML, JSON
Rate Limited? No

URL parameters

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

Returns

<SiteStats>

General statistics, including the number of active members and the number of active listings.

MembersOnline Integer MembersOnline
ActiveMembers Integer ActiveMembers
ActiveListings Integer ActiveListings
AverageTimeSpent String or null AverageTimeSpent

This field is deprecated and will return a default value of the empty string

AverageVisitorsPerDay Integer AverageVisitorsPerDay

This field is deprecated and will return a default value of 0

BusiestDayOfWeek String or null BusiestDayOfWeek

This field is deprecated and will return a default value of the empty string

ReportMonthAndYear String or null ReportMonthAndYear

This field is deprecated and will return a default value of the empty string

ReportSource String or null ReportSource

This field is deprecated and will return a default value of the empty string

Example XML Response (switch to JSON)

<SiteStats xmlns="http://api.trademe.co.nz/v1">
  <MembersOnline>123</MembersOnline>
  <ActiveMembers>123</ActiveMembers>
  <ActiveListings>123</ActiveListings>
  <AverageTimeSpent>ABC</AverageTimeSpent>
  <AverageVisitorsPerDay>123</AverageVisitorsPerDay>
  <BusiestDayOfWeek>ABC</BusiestDayOfWeek>
  <ReportMonthAndYear>ABC</ReportMonthAndYear>
  <ReportSource>ABC</ReportSource>
</SiteStats>

Example JSON Response (switch to XML)

{
  "MembersOnline": 123,
  "ActiveMembers": 123,
  "ActiveListings": 123,
  "AverageTimeSpent": "ABC",
  "AverageVisitorsPerDay": 123,
  "BusiestDayOfWeek": "ABC",
  "ReportMonthAndYear": "ABC",
  "ReportSource": "ABC"
}