---
title: "Get location for a device"
method: GET
path: "/devices/{id}/location"
tags: ["Device"]
---

# Get location for a device

`GET /devices/{id}/location`

Get the location info for a specific device.

## Path parameters

- `id` integer, required

## Response `200`

OK

- XiqDeviceLocation — Device location info
  - `location_id` integer — The assigned location ID, it must NOT be BUILDING type
  - `create_time` string, date-time, required — The timestamp when the device assigned to the location
  - `update_time` string, date-time, required — The timestamp when the location info was last updated
  - `org_id` integer — The organization identifier, valid when enabling HIQ feature
  - `parent_id` integer — The parent location ID
  - `location_name` string, required — The location name
  - `location_unique_name` string, required — The unique location name
  - `location_type` string, required — The location type
  - `location_address` string — The address for the location
  - `x` number, double — The horizontal value in the floor map
  - `y` number, double — The vertical value in the floor map
  - `latitude` number, double — The latitude in the geography
  - `longitude` number, double — The longitude in the geography

---

[API](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api.md) · [All operations](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extremecloudiq/extremecloud-iq-api/versions/5ff7ab84e8e8/schema)
