POST api/PropertyStatistics

Statistics API that retrieves all stats recorded between the specified time frame.

Request Information

URI Parameters

None.

Body Parameters

StatisticsDateRangeParamsModel
NameDescriptionTypeAdditional information
EndDate

date

None.

StartDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "2024-09-03T18:49:57.0112051+00:00",
  "EndDate": "2024-09-03T18:49:57.0112051+00:00"
}

application/xml, text/xml

Sample:
<StatisticsDateRangeParamsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Spicerhaart.Services.Statistics">
  <EndDate>2024-09-03T18:49:57.0112051+00:00</EndDate>
  <StartDate>2024-09-03T18:49:57.0112051+00:00</StartDate>
</StatisticsDateRangeParamsModel>

Response Information

Resource Description

Collection of StatisticsDateRangeModel
NameDescriptionTypeAdditional information
Data

Collection of StatisticsDateRangeDataModel

None.

Date

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Date": "2024-09-03T18:49:57.0268297+00:00",
    "Data": [
      {
        "PropertyReference": "sample string 1",
        "PropertyViews": 2,
        "BrochuresDownloaded": 3,
        "ViewingRequests": 4
      },
      {
        "PropertyReference": "sample string 1",
        "PropertyViews": 2,
        "BrochuresDownloaded": 3,
        "ViewingRequests": 4
      }
    ]
  },
  {
    "Date": "2024-09-03T18:49:57.0268297+00:00",
    "Data": [
      {
        "PropertyReference": "sample string 1",
        "PropertyViews": 2,
        "BrochuresDownloaded": 3,
        "ViewingRequests": 4
      },
      {
        "PropertyReference": "sample string 1",
        "PropertyViews": 2,
        "BrochuresDownloaded": 3,
        "ViewingRequests": 4
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfStatisticsDateRangeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Spicerhaart.Services.Statistics">
  <StatisticsDateRangeModel>
    <Data>
      <StatisticsDateRangeDataModel>
        <BrochuresDownloaded>3</BrochuresDownloaded>
        <PropertyReference>sample string 1</PropertyReference>
        <PropertyViews>2</PropertyViews>
        <ViewingRequests>4</ViewingRequests>
      </StatisticsDateRangeDataModel>
      <StatisticsDateRangeDataModel>
        <BrochuresDownloaded>3</BrochuresDownloaded>
        <PropertyReference>sample string 1</PropertyReference>
        <PropertyViews>2</PropertyViews>
        <ViewingRequests>4</ViewingRequests>
      </StatisticsDateRangeDataModel>
    </Data>
    <Date>2024-09-03T18:49:57.0268297+00:00</Date>
  </StatisticsDateRangeModel>
  <StatisticsDateRangeModel>
    <Data>
      <StatisticsDateRangeDataModel>
        <BrochuresDownloaded>3</BrochuresDownloaded>
        <PropertyReference>sample string 1</PropertyReference>
        <PropertyViews>2</PropertyViews>
        <ViewingRequests>4</ViewingRequests>
      </StatisticsDateRangeDataModel>
      <StatisticsDateRangeDataModel>
        <BrochuresDownloaded>3</BrochuresDownloaded>
        <PropertyReference>sample string 1</PropertyReference>
        <PropertyViews>2</PropertyViews>
        <ViewingRequests>4</ViewingRequests>
      </StatisticsDateRangeDataModel>
    </Data>
    <Date>2024-09-03T18:49:57.0268297+00:00</Date>
  </StatisticsDateRangeModel>
</ArrayOfStatisticsDateRangeModel>