DTM docs
HomeDor Traffic MinerMetagraphDTM AppMarketingAPI
API
API
  • Overview
  • Authentication
    • Basic Auth
    • Manually Creating Basic Auth Headers
  • Response Format
    • Successful Responses
    • Error Responses
  • Pagination
  • Datetimes
    • Datetime Formats
    • Datetimes Grouped by Local Time Zone
  • Rate Limiting
  • Syncing Data
    • Asynchronous Data
    • Querying by Update Timestamp
  • Data Validity
    • Validity
    • Completeness
  • Endpoints
    • Organizations
      • GET /organizations
      • GET /organizations/{org_id}
    • Locations
      • GET /locations
      • GET /locations/{location_id}
      • GET /locations/{location_id}/devices
      • POST /locations
      • DELETE /locations/{location_id}
    • Devices
      • GET /devices
      • GET /devices/{serial_number}
      • PUT /devices/{serial_number}
      • POST /devices/{serial_number}/install
      • POST /devices/{serial_number}/uninstall
      • GET /uninstalled-devices
    • Foot Traffic
      • GET /foot-traffic/locations
      • GET /foot-traffic/devices/{serial_number}
    • Schemas
      • Organization
      • Location
      • Address
      • Device
      • LocationMetric
      • Foot Traffic
Powered by GitBook
On this page
  1. Datetimes

Datetimes Grouped by Local Time Zone

Metrics returned from the API are sometimes aggregated across multiple locations and multiple timezones. To make this data easy to compare, metric date-times are grouped based on the time zone in which they were recorded. The results returned do not include time zone information because the data could represent multiple time zones.

For example:

Location 1 is in PST and records a foot traffic event at 2pm PST (10pm UTC). Location 2 is located in EST and records a foot traffic event at 2pm EST (7pm UTC).

If a request is made with the following parameters:

Parameter
Value

datetime_start

2019-01-01T14:00:00

datetime_end

2019-01-01T15:00:00

interval

hour

Since both events were recorded during the same hour, relative to the time zone of the location where the sensor was installed, the foot traffic events recorded at each location will be included for a total count of 2 foot traffic events.

 curl "https://api.getdor.com/v2/team-metrics?datetime_start=2019-01-01T14:00:00&datetime_end=2019-01-01T15:00:00&interval=hour" \
    -u tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH;

PreviousDatetime FormatsNextRate Limiting

Last updated 1 year ago