---
title: View Location By Id
slug: view-location-by-id
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2023-01-26T14:46:57.000Z
---

This call returns the data for a specific location given its Id

## Return

This call returns a location object, full resolved to the list of doctors associated with that location.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/practice/location/:location_id",
  "name": "API",
  "method": "GET",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "location_id",
        "type": "Number",
        "children": [],
        "description": "The id for the location"
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"location_id\": 12345,\n    \"location_name\": \"Main Office\",\n    \"city\": \"Chicago\",\n    \"region_id\": \"IL\",\n    \"country_id\": \"US\",\n    \"address\": [\n        \"Street Address\",\n        \"Office Suite\"\n    ],\n    \"postcode\": \"\",\n    \"telephone\": \"\",\n    \"doctors\":[{\n        \"doctor_id\": 321,\n        \"doctor_name\": \"Dr. Wasserman\",\n        \"email\": \"drwass@example.com\",\n        \"first_name\": \"Jim\",\n        \"last_name\": \"Wasserman\",\n        \"telephone\":\"\"\n    }]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "LHVvurBLV3O1dJZkyhQCQ",
        "code": "curl --location -g --request GET 'https://{{api_host}}/rest/{{scope}}/V1/practice/location/12345' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' ",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "LHVvurBLV3O1dJZkyhQCQ"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Path Parameter",
    "value": "pathParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "iX0nZCxFb6SCjj5lbCMLq"
}
```
:::

