---
title: "Get last locations of all friends"
method: GET
path: "/friends"
---

# Get last locations of all friends

`GET /friends`

Get the last known location of all friends for the current user

## Headers

- `authorization` string, required

## Response `200`

List of friends' last locations

- object[]
  - `id` integer — The ID of the friend
  - `name` string — The name of the friend
  - `avatar` string — The URL of the avatar image of the friend
  - `location` object
    - `latitude` string — The latitude of the friend's last known location
    - `longitude` string — The longitude of the friend's last known location
    - `timestamp` string, date-time — The date and time the friend's last known location was recorded

## Other responses

- `401` — Unauthorized request
- `500` — Internal server error

---

[API](https://skmtc.net/01-edu/apis/friend-tracker-api.md) · [All operations](https://skmtc.net/01-edu/apis/friend-tracker-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/01-edu/friend-tracker-api/versions/0a952c2d887c/schema)
