---
title: "Get the search and display unix timestamp ranges for relative times based on the device with a timezone in the min utc offset"
method: GET
path: "/orgs/{orgId}/reports/deviceTimeZoneDependentRelativeTimeRanges"
tags: ["orgs/reports"]
---

# Get the search and display unix timestamp ranges for relative times based on the device with a timezone in the min utc offset

`GET /orgs/{orgId}/reports/deviceTimeZoneDependentRelativeTimeRanges`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-occupancyReport:w,o{params.orgId}-occupancyReport:r,o{params.orgId}-rpt:r,o{params.orgId}-rpt:w,o:w,o:r,s-o:w,s-o:r<br/><br/>__Endpoint name__: getDeviceTimeZoneDependentRelativeTimeRanges

## Path parameters

- `orgId` integer, required

## Query parameters

- `siteIds` integer[]
- `zoneIds` integer[]
- `referenceTime` string, date

## Response `200`

Successful

- object
  - `totalCount` integer
  - `filteredCount` integer
  - `cursors` object
    - `nextCursor` integer, nullable
    - `hasNextPage` boolean
  - `data` object[]
    - `relativeTime` 'today' | 'thisWeek' | 'thisMonth' | 'thisQuarter' | 'thisYear' | 'yesterday' | 'lastFullWeek' | 'lastFullMonth' | 'lastFullQuarter' | 'last6FullMonths' | 'last12FullMonths', required
    - `deviceMinUtcOffsetTimeZoneId` string, required
    - `displayStartDateUnix` integer, required
    - `displayEndDateUnix` integer, required
    - `searchStartDateUnix` integer, required
    - `searchEndDateUnix` integer, required
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

[API](https://skmtc.net/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.net/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/revisions/d8a888c114fa/schema)
