---
title: "Get saved coordinates by location ID"
method: GET
path: "/locations/{id}"
tags: ["Locations"]
---

# Get saved coordinates by location ID

`GET /locations/{id}`

## Request

- Base URL: `https://api.purplegrain.com/api/v1`
- URL: `https://api.purplegrain.com/api/v1/locations/{id}`
- Auth: none declared

Retrieve an existing PurpleGrain location using its location ID. Returns latitude (lat), longitude (lon) and accuracy. Use the location ID associated with an address, city or other resource; this is a saved-coordinate lookup, not an address search. It does not change data.

## Path parameters

- `id` string, required

## Response `200`

Successful.

- LocationsShowResponseAttributes
  - `data` LocationModelAttributes: Location in attributes-adapter shape (Accept application/json); fields at top level.
    - `id` string
    - `type` string
    - `accuracy` number, nullable
    - `lat` number
    - `lon` number

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/purplegrain/apis/purple-grain-api.md) · [All operations](https://skmtc.dev/purplegrain/apis/purple-grain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/purplegrain/apis/purple-grain-api/revisions/a9136f78e9fb?raw)
